Repository navigation
test(ai): wire rag once in ai/rag, test with edge fakes - #4245
Merged
Merged
Conversation
Expose repository ingest helpers as public functions in ai/rag/ingest. Refactor tests/ai/rag/test_rag_ingest.py to use public helper names, fake runners, and fake telemetry collectors. Eliminate monkeypatch and mock usage across the module. Closes #1329
dan-petty
marked this pull request as ready for review
November 9, 2026 16:56
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Issue #1329 migrates the
ai/rag/andai/library/tests onto shared edge fakes and moves RAG wiring intoai/rag/. Earlier changes #3850, #3862 and #4002 delivered the RAG component wiring, migrated 25 test files to edge fakes, and moved library and command tests to CLI fixtures. This change completes the remaining acceptance criteria of #1329: it makes the internal ingest functions public, removes private imports fromtest_rag_ingest.py, and replaces monkeypatch calls with edge fakes and runners.Closes #1329
Change:
openspec/changes/archive/2026-11-09-1329-wire-rag-once-in-ai-rag/