CI: suppress pass notices when the runner reports no failure names (DRAFT-139) #1323
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1323"
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?
Imported from ubiquitarianism/leonida. Originally posted by fin-github on 2026-11-24T21:51:51Z.
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)
Imported from ubiquitarianism/leonida. Originally posted by whoalin1 on 2026-11-24T23:45:06Z.
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.4a50cafc7: prints the same error PLUS a bogus::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).
Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-11-28T19:27:47Z.
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
7daa4a4a5in GitHub Actions: no new failure.AI-assisted (Claude Code, Claude Opus 5.5)
Imported from ubiquitarianism/leonida. Originally posted by OreoFR on 2026-11-28T21:48:48Z.
Verified by OreoFR
4a54aedcb+ PR head320f422f2python -I tests/test_ci_expected_failures.pyAI-assisted (Claude Code, Claude Opus 5.5).