CI: suppress pass notices when the runner reports no failure names (DRAFT-139) #1323
No reviewers
No assignees
Labels
No labels
bug
dependencies
documentation
enhancement
missing claim
needs rebase
needs-triage
question
ready-for-agent
submodules
No project
No milestone
Dependencies
No dependencies set
Notifications
1 participant
Due date
No due date set.
Reference
leonida/mandy!1323
Loading…
Reference in a new issue
No description provided.
Delete branch "codex/draft-139"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Pull request successfully merged and closed
Claimed in the coordination issue as: DRAFT-139 (https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7145467171)
Supersedes draft #139. Cherry-picked maxence468's commit from
old-pr/9871ontomainwith its original authorship.What and why
When a runner exits unsuccessfully and supplies an empty failure list, CI reports the runner error and stops evaluating the list. Previously it also printed a pass notice for every expected failure, even though it could not tell which tests ran. The regression confirms that an unnamed runner failure emits only the error.
Tested
Windows 11 (build 26200.9974), Python 3.14.4.
upstream/mainat4a50cafc7with the draft test only,python -I tests/test_ci_expected_failures.py -vran 14 tests with one failure. The runner failure emitted an extra pass notice.python -I tests/test_ci_expected_failures.py -vpassed all 14 tests.python -I scripts/check_no_game_data.py scripts/ci_expected_failures.py tests/test_ci_expected_failures.pyandgit diff upstream/main --checkexited 0.GPUs tested: no GPU
AI-assisted (Codex)
Independent verification (overnight shift, CPU/tooling only, no game data).
Commands run on head 320f422f (Git Bash, py -3.14):
py -3.14 -m compileall -q scripts/ci_expected_failures.py tests/test_ci_expected_failures.py— cleanpy -3.14 -I tests/test_ci_expected_failures.py: Ran 14 tests, OKps_ssharp:::error::the test runner exited with 2 without naming a failed test, exit 1 — no pass notice.::notice::ps_ssharp passed: drop it from the expected failures— confirming the bug (a crashed run was telling CI to shrink the expected-failures list).::notice::for genuinely passed expected tests (exit 0); status 1 +ps_ssharpin the list still prints::warning::(exit 0); signal-status path untouched.The early
return 1, linesbefore the expected-name loop is the minimal correct fix; exit-code semantics for every other path are unchanged.Verdict: verified, correct.
AI-assisted verification (Devin).
Red/green: tests/test_ci_expected_failures.py fails on main (a spurious pass notice after a runner error with no failure names) and passes with the PR merged, on GitHub Actions Linux and natively on Windows.
Targeted batch (PR tests, tests importing the changed modules, docs tests, translator when touched) merged on main 7daa4a4a5 in GitHub Actions: no new failure.
AI-assisted (Claude Code, Claude Opus 5.5)
Verified by OreoFR
4a54aedcb+ PR head320f422f2python -I tests/test_ci_expected_failures.pyAI-assisted (Claude Code, Claude Opus 5.5).