Repository navigation
test(chat): guard the amd-gaia dependency floor like the email agent (follow-up to #2169) - #2175
kovtcharov wants to merge 1 commit into
Conversation
PR #2169 raised the amd-gaia floor to 0.22.0 for both the email and chat agents (both import gaia.agents.registry.get_embedding_model_for_device, first shipped in 0.22.0), but only the email agent got a regression test pinning the floor to the symbol. The chat floor could silently regress below 0.22.0 and re-introduce the fresh-install ImportError (#2112) with green CI. Mirrors test_dependency_floor.py into the chat package: the import chain works, the pyproject floor covers the symbol, and the gaia-agent.yaml manifest floors stay in lock-step with pyproject. Also hardens _floor_tuple to normalize shortened version strings (e.g. "0.22").
|
Verdict: Approve ✅ This adds a regression test that pins the chat agent's I verified the test's assumptions against the real tree and they all hold, so this is safe to merge. 🔍 Technical detailsVerified against the checked-out tree:
🟢 Minor (non-blocking): the chat pyproject regex Strengths
|
|
Closing as a duplicate of #2174 (same file, same three checks — two parallel tasks picked up the same #2169 follow-up). One piece worth porting to #2174: this version's floor regexes tolerate an optional extras suffix ( |
Closes the reviewer's 🟡 from #2169: that PR raised the
amd-gaiafloor to 0.22.0 for both the email and chat agents (both importget_embedding_model_for_device, which first shipped in 0.22.0), but only the email agent got a regression test pinning the floor. Before: the chat floor could silently regress below 0.22.0 and re-introduce the fresh-install ImportError (#2112) with green CI. After: lowering the floor — or drift betweenpyproject.tomland thegaia-agent.yamlmanifest — failstest_chat_agent.ymlCI immediately.Also applies the reviewer-suggested
_floor_tuplehardening (shortened versions like0.22normalize to(0, 22, 0)).Test plan
pytest hub/agents/python/chat/tests/test_dependency_floor.py -v— 3 passedpython util/lint.py --all— all checks passhub/agents/python/chat/tests/invocation)