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

Open
github-bot wants to merge 1 commit from github-bot/gh-1323 into main AGit
Owner

@⁠fin-github on GitHub · 2026-11-24 21:51 UTC · original
fin-github:codex/draft-139 → main · +3 −2 · 2 files · 1 commits · open

Claimed in the coordination issue as: DRAFT-139 (#14)

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)

**@⁠fin-github** on GitHub · 2026-11-24 21:51 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/1323) `fin-github:codex/draft-139` → `main` · +3 −2 · 2 files · 1 commits · open Claimed in the coordination issue as: DRAFT-139 (https://git.gtahub.st/github/ubiquitarianism--leonida/issues/14) 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)
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 09:47:26 +00:00
Author
Owner

@⁠whoalin1 on GitHub · 2026-11-24 23:45 UTC · original

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).

**@⁠whoalin1** on GitHub · 2026-11-24 23:45 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/1323#issuecomment-7147753393) 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).
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/1323/head:github-bot/gh-1323'
git switch 'github-bot/gh-1323'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-1323'
git switch 'github-bot/gh-1323'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-1323'
git switch 'github-bot/gh-1323'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-1323'
git switch 'main'
git merge --squash 'github-bot/gh-1323'
git switch 'main'
git merge --ff-only 'github-bot/gh-1323'
git switch 'main'
git merge 'github-bot/gh-1323'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.