Skip to content

test: fix two stale expectations failing main's chat and unit jobs - #4844

Merged
kovtcharov-amd merged 2 commits into
amd:mainfrom
kovtcharov:kalin/fix-summary-test-kwargs
Oct 6, 2026
Merged

kovtcharov-amd merged 2 commits into
amd:mainfrom
kovtcharov:kalin/fix-summary-test-kwargs

Conversation

@kovtcharov

@kovtcharov kovtcharov commented Oct 6, 2026 •

Copy link
Copy Markdown
Contributor

Two stale test expectations are failing required jobs on main, so every open PR shows red for reasons unrelated to its own change. Both were caused by merges that each passed alone:

Test plan

  • pytest hub/agents/chat/python/tests/ — 68 passed (1 failed before)
  • pytest tests/unit/cli/test_cli_docs_drift.py tests/unit/test_gaia_home_ratchet.py — 5 passed (1 failed before)
  • Test Chat Agent and Unit Tests green on main after merge

Main's Test Chat Agent job fails: amd#4827 made summarize_document pass max_tokens=SUMMARY_MAX_TOKENS, and test_summarize_document_sends_full_text_to_llm still expected only no_history.
@github-actions

github-actions Bot commented Oct 6, 2026

Copy link
Copy Markdown
Contributor

Verdict: Approve

This fixes a stale test that has been failing the Test Chat Agent job on main. #4827 made document summaries request a larger output limit so they stop getting cut off mid-sentence, and this test still expected the old call arguments. It now expects the limit too, and it reads the value from the same constant the tool uses, so it won't go stale if someone retunes the limit. Nothing blocks merging.

Real-world evidence

N/A: this PR only changes a test. The CI evidence stage left no bundle, so the verdict rests on static review alone. I couldn't run pytest on this runner because it isn't installed here. The author's test plan reports 68 passed in the chat agent's test suite.

🔍 Technical details

Issues found: none.

  • I checked the assertion against _summary_text in src/gaia/agents/tools/rag_tools.py:39-52. It sends no_history=True and max_tokens=SUMMARY_MAX_TOKENS, plus whatever no_thinking_kwargs(...) returns. The exact-dict equality assumes the test's model gets no extra thinking kwargs. That held in the author's run. If the fixture's model ever becomes a thinking model, the assertion will fail loudly, which is the right outcome.

Strengths

  • The test imports SUMMARY_MAX_TOKENS instead of hardcoding 8192, so it stays tied to the tool's real contract.
  • The fix is to the test only. The production call was already correct, and the PR leaves it alone.

test_allowlist_has_no_stale_entries fails on main: amd#4767 documented gaia email autonomy status, which was still listed as undocumented.
@kovtcharov kovtcharov changed the title test(chat): expect the summary call's output limit test: fix two stale expectations failing main's chat and unit jobs Oct 6, 2026
@github-actions github-actions Bot added the tests Test changes label Oct 6, 2026
@kovtcharov-amd
kovtcharov-amd added this pull request to the merge queue Oct 6, 2026
Merged via the queue into amd:main with commit c33bd94 Oct 6, 2026
@kovtcharov-amd
kovtcharov-amd deleted the kalin/fix-summary-test-kwargs branch October 6, 2026 01:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

tests Test changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants