Repository navigation
test(cli): fail a command that hangs with the model server down - #7542
Conversation
The CLI contract let a command that retries a dead model server past the 25 s limit pass, so it missed the rc18 bug it names as its example: with the health check removed, `gaia download --list` retries each model for ~2 s, is stopped at the limit, and the exit-code check is skipped. A command that finishes with the server up must now also finish with it down. Servers that outlast the limit in both runs are still exempt.
|
Verdict: Approve This closes the gap that let Real-world evidenceN/A: this PR only changes tests, so no evidence bundle was produced. The verdict rests on reading the code and on the author's test plan, which reports that the check fails with the 🔍 Technical detailsIssues found
Strengths
|
The CLI contract test from #7342 misses the rc18 bug it was written to catch. With the health check removed again,
gaia download --listretries each model against the dead server, is stopped at the 25 s limit, and the test skips the exit-code check and passes. Now a command that finishes with the server up must also finish with it down. Servers that are still running at the limit in both runs stay exempt.Test plan
download --list:test_model_server_contract[download --list]fails with this change and passed without itpytest tests/integration/test_cli_contract.py -n 4gives 150 passed, 10 xfailed. The 2 local failures (agent status,agent health) come from stale editable installs on the test PC, as noted on test(cli): hold every gaia command to a contract, from the parser #7342