Repository navigation
test(relay): fix the stale fake agents in the flagship relay tests - #8371
Conversation
Ten relay tests fail on main the moment they run. Since amd#8025 the flagship sidecar syncs attached documents on every turn (the backend always sends a list), reading agent.indexed_files and agent.rag, which the fake agents lacked. The turn died before process_query, so the tool-history tests that read agent.seen[1] also hit IndexError. - Give _WritingAgent, _ToolAgent and _FollowUpAgent the empty document state a real GaiaAgent starts with. - test_playback_without_sounddevice_names_the_talk_extra expected the wheel install hint, but an editable checkout correctly gets `-e <checkout>[talk]`; pin the wheel branch in the test.
|
Verdict: Approve with suggestions This fixes ten relay tests that have been failing on main without anyone seeing it. It also fixes a speech test that fails on an editable checkout. The fix is right: the fake agents now carry the same empty document state a real agent starts with, and no assertion was loosened. The one thing to know is that these three relay files still run in no CI lane, so they will keep skipping, and could go stale again, until the follow-up lands. The description says why that isn't in this PR. Please file the follow-up as an issue before merge so it doesn't get lost. Real-world evidenceN/A: this PR changes tests only. No evidence bundle was produced, and the verdict rests on static review. I couldn't run the tests here because pytest isn't installed on this runner. The PR's test plan reports 58/58 passing with the flagship installed. 🔍 Technical detailsIssues 🟡 Follow-up: run the flagship relay tool-history, always-allow and follow-up tests in CI. Checked
Strengths
|
|
Filed the CI follow-up the review asked for as #8377. Checked locally: with the flagship importable, these 10 relay tests fail on main and pass on this branch, with nothing else in the four files changing result. |
Ten relay tests have been failing on main since #8025, and CI never noticed because it never runs them. They cover the flagship relaying tool history, "always allow" grants and follow-ups, so a real regression in any of those would also go unseen.
indexed_filesandrag, which the fake agents lacked. The fakes now start with the same empty document state as a real agent. No assertion changed.test_unit.yml, which already installs the flagship. It isn't in this PR because the token used here can't edit workflow files.test_playback_without_sounddevice_names_the_talk_extra, which expected the wheel install hint on an editable checkout.Test plan
pytest tests/unit/test_relay_flagship_tool_history.py tests/unit/test_relay_always_allow.py tests/unit/test_relay_followup.pypasses 58/58 (10 failed before)pytest tests/unit/test_lemonade_speech.pypasses on an editable checkout