Skip to content

test(ai): wire rag once in ai/rag, test with edge fakes - #4245

Merged
dan-petty merged 1 commit into
mainfrom
test/1329-wire-rag-once-in-ai-rag
Nov 9, 2026
Merged

dan-petty merged 1 commit into
mainfrom
test/1329-wire-rag-once-in-ai-rag

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

Issue #1329 migrates the ai/rag/ and ai/library/ tests onto shared edge fakes and moves RAG wiring into ai/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 from test_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/

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 dan-petty added type/test Type test: a new or changed test scope/ai AI review pipeline, personas, prompts, LLM client, or RAG labels Nov 9, 2026
@dan-petty
dan-petty marked this pull request as ready for review November 9, 2026 16:56
@dan-petty
dan-petty merged commit c771418 into main Nov 9, 2026
26 checks passed
@dan-petty
dan-petty deleted the test/1329-wire-rag-once-in-ai-rag branch November 9, 2026 16:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope/ai AI review pipeline, personas, prompts, LLM client, or RAG type/test Type test: a new or changed test

Projects

None yet

Development

Successfully merging this pull request may close these issues.

test(ai): Wire rag once in ai/rag, test with edge fakes

1 participant