Skip to content

test(ai): harness slot tests use the public interface - #3853

Merged
dan-petty merged 2 commits into
mainfrom
test/1330-harness-slot-tests-public-interface
Nov 6, 2026
Merged

dan-petty merged 2 commits into
mainfrom
test/1330-harness-slot-tests-public-interface

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

Two test files of ai/ no longer patch a devops_cli name or import a private one. The status test of devops ai harness status sets the provider and model with the config fixture. The test of the partial tiered status is deleted: no public input makes only one of the two searches fail, so the case has no caller. A new test runs both searches on a missing directory through execute_tiered. The Ollama HTTP 400 test moves to tests/ai/client/test_ai_streaming.py and uses the web fake with the public method chat_messages_stream.

Closes #3764

Change: openspec/changes/archive/2026-11-06-3764-harness-slot-tests-public-interface/

The status test of devops ai harness status reads the model from the config file, not from a patch of load_settings. The partial-status test is deleted because no public input makes one of two searches fail. The Ollama 400 stream test moves to the client tests and runs on the web fake.
@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 6, 2026
@dan-petty

Copy link
Copy Markdown
Owner Author

Test results (local, branch rebased on origin/main 235a807):

  • Focused: tests/ai/harness/test_harness_slots.py, tests/ai/client/test_ai_streaming.py, tests/ai/agents/test_agent.py: 84 passed.
  • Full uv run devops ci: 20034 passed, 2 failed, 1 error. The failures are the two known host failures that fail the same way on origin/main: test_mark_only_commands_under_global_dry_run and the popeye executor contract test (direct). All other checks pass.
  • Test time was over the 5 minute budget on this host (7m 12s) because other agents run in parallel. The slowest tests are not in this change.
  • Follow-up filed for the unreachable partial branch of slots.py: refactor(ai): remove the unreachable partial status of the harness #3852.

@dan-petty
dan-petty marked this pull request as ready for review November 6, 2026 21:36
@dan-petty
dan-petty merged commit 4d4f531 into main Nov 6, 2026
23 checks passed
@dan-petty
dan-petty deleted the test/1330-harness-slot-tests-public-interface branch November 6, 2026 21:39
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): harness slot tests patch no internals

1 participant