Skip to content

test(ai): library and rag tests run on edge fakes - #4030

Merged
dan-petty merged 4 commits into
mainfrom
test/1329-library-and-command-tests-on-edge-fakes
Nov 7, 2026
Merged

dan-petty merged 4 commits into
mainfrom
test/1329-library-and-command-tests-on-edge-fakes

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

Library and rag command tests now double only the process edges. They use the shared fakes for HTTP, the model and the store, and no longer patch private names of the code under test. The tests keep their old checks and gain checks of aliased imports and dry-run output. This removes test accommodations as the tracker #1307 asks.

Closes #4002

Change: openspec/changes/archive/2026-11-07-4002-library-and-command-tests-on-edge-fakes/

@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 7, 2026
@dan-petty

Copy link
Copy Markdown
Owner Author

Test and check results:

  • Focused run after the merge of origin/main: tests/ai/library, tests/ai/rag, tests/commands/test_ai_cmd.py and tests/invariants: 1012 passed.
  • Full local devops ci before the last small test commit: all checks pass. The test row took 13m 46s, over the 5-minute budget on this loaded host (other agents ran at the same time).
  • Review findings fixed: dry-run output check, alias import case, simpler __init__ assertion.
  • Skipped: the _try_retrieve_rag_context alias in src/devops_cli/commands/ai.py. It belongs to test(cli): Use edge fakes and real git; drop test rebind hooks #1333, not to this change.

@dan-petty
dan-petty marked this pull request as ready for review November 7, 2026 18:07
@dan-petty
dan-petty merged commit d6c2297 into main Nov 7, 2026
24 checks passed
@dan-petty
dan-petty deleted the test/1329-library-and-command-tests-on-edge-fakes branch November 7, 2026 18:08
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): library and rag command tests run on edge fakes

1 participant