CI: suppress pass notices when the runner reports no failure names (DRAFT-139) #1323

Merged
fin-github merged 1 commit from upstream-pr/1323 into main 2026-11-28 19:27:50 +00:00
fin-github commented 2026-11-24 21:51:51 +00:00 (Migrated from github.com)

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/9871 onto main with 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.

  • Before, on upstream/main at 4a50cafc7 with the draft test only, python -I tests/test_ci_expected_failures.py -v ran 14 tests with one failure. The runner failure emitted an extra pass notice.
  • After the cherry-pick, python -I tests/test_ci_expected_failures.py -v passed all 14 tests.
  • python -I scripts/check_no_game_data.py scripts/ci_expected_failures.py tests/test_ci_expected_failures.py and git diff upstream/main --check exited 0.

GPUs tested: no GPU

AI-assisted (Codex)

<!-- greyfinch-sync:ubiquitarianism/leonida:issue:5480939395 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/1323). Originally posted by [fin-github](https://github.com/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/9871` onto `main` with 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. - Before, on `upstream/main` at `4a50cafc7` with the draft test only, `python -I tests/test_ci_expected_failures.py -v` ran 14 tests with one failure. The runner failure emitted an extra pass notice. - After the cherry-pick, `python -I tests/test_ci_expected_failures.py -v` passed all 14 tests. - `python -I scripts/check_no_game_data.py scripts/ci_expected_failures.py tests/test_ci_expected_failures.py` and `git diff upstream/main --check` exited 0. GPUs tested: no GPU AI-assisted (Codex)
whoalin1 commented 2026-11-24 23:45:06 +00:00 (Migrated from github.com)

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 — clean
  • py -3.14 -I tests/test_ci_expected_failures.py: Ran 14 tests, OK
  • Manual repro: empty FAILED_LIST + exit status 2 + expected ps_ssharp:
    • On this head: prints only ::error::the test runner exited with 2 without naming a failed test, exit 1 — no pass notice.
    • On merge base 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).
  • Regression checks on this head: status 0 + empty list still prints the ::notice:: for genuinely passed expected tests (exit 0); status 1 + ps_ssharp in the list still prints ::warning:: (exit 0); signal-status path untouched.

The early return 1, lines before 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).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7147753393 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/1323#issuecomment-7147753393). Originally posted by [whoalin1](https://github.com/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` — clean - `py -3.14 -I tests/test_ci_expected_failures.py`: Ran 14 tests, OK - Manual repro: empty FAILED_LIST + exit status 2 + expected `ps_ssharp`: - On this head: prints only `::error::the test runner exited with 2 without naming a failed test`, exit 1 — no pass notice. - On merge base 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). - Regression checks on this head: status 0 + empty list still prints the `::notice::` for genuinely passed expected tests (exit 0); status 1 + `ps_ssharp` in the list still prints `::warning::` (exit 0); signal-status path untouched. The early `return 1, lines` before 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).
MoonEyes commented 2026-11-28 19:27:47 +00:00 (Migrated from github.com)

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 7daa4a4a5 in GitHub Actions: no new failure.
AI-assisted (Claude Code, Claude Opus 5.5)

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7244562150 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/1323#issuecomment-7244562150). Originally posted by [MoonEyes](https://github.com/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 7daa4a4a5 in GitHub Actions: no new failure. AI-assisted (Claude Code, Claude Opus 5.5)
OreoFR commented 2026-11-28 21:48:48 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by OreoFR on 2026-11-28T21:48:48Z.


Verified by OreoFR

  • Base: main 4a54aedcb + PR head 320f422f2
  • Test: python -I tests/test_ci_expected_failures.py
  • Red on main: 1 failure (test_runner_failure_without_names_fails, extra notice after the error)
  • Green with the PR: 14 OK
  • Verdict: READY (clean merge with main)
  • Machine: RTX 4070 Laptop 8 GB, NVIDIA 621.40, Intel Core Ultra 7 155H, Windows 11

AI-assisted (Claude Code, Claude Opus 5.5).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7246292289 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/1323#issuecomment-7246292289). Originally posted by [OreoFR](https://github.com/OreoFR) on 2026-11-28T21:48:48Z. --- **Verified by OreoFR** - Base: main `4a54aedcb` + PR head `320f422f2` - Test: `python -I tests/test_ci_expected_failures.py` - Red on main: 1 failure (test_runner_failure_without_names_fails, extra notice after the error) - Green with the PR: 14 OK - Verdict: READY (clean merge with main) - Machine: RTX 4070 Laptop 8 GB, NVIDIA 621.40, Intel Core Ultra 7 155H, Windows 11 AI-assisted (Claude Code, Claude Opus 5.5).
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
ProjectLeonida/mandy!1323
No description provided.