ci: collect all failures in Linux and macOS standard-library jobs, reconfigure runner streams #756

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

@⁠abnalstlll-byte on GitHub · 2026-11-24 13:31 UTC · original
abnalstlll-byte:feat/pipeline-ci-resilience → main · +42 −3 · 6 files · 1 commits · open

Summary

  • In .github/workflows/ci.yml, update stdlib-tests-linux and macos-python jobs to collect all failed files in failed+=("$t") and emit ::error file=$t::$t failed before exiting non-zero (mirroring the Windows check job), preventing early-exit from concealing downstream test failures.
  • In macos-python, ensures the background semantic discover job is reliably waited on and its log output printed even when standard-library test files fail.
  • In scripts/run_semantic_tests.py and scripts/run_wine_tests.py, adds sys.stderr.reconfigure(errors="replace") under if __name__ == "__main__": so redirected streams on strict ANSI code pages under python -I handle unencodable characters gracefully without raising UnicodeEncodeError.
  • Adds regression unit tests in tests/test_ci_registration.py (asserting Linux and macOS jobs collect all failures), tests/test_run_semantic_tests.py, and tests/test_run_wine_tests.py.

Verification

  • python -I tests/test_ci_registration.py PASS (17 tests in 12.4s).
  • python -I tests/test_run_wine_tests.py PASS (64 tests in 2.3s).
  • python -I tests/test_run_semantic_tests.py PASS (20 tests in 10.4s).
  • python -I tests/test_runner_calls_all_tests.py PASS (3 tests in 2.3s).
  • python -I scripts/check_no_game_data.py clean (0 matches, 100% clean-room compliant).
  • All modified files verified LF line endings.

AI-assisted.

**@⁠abnalstlll-byte** on GitHub · 2026-11-24 13:31 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/756) `abnalstlll-byte:feat/pipeline-ci-resilience` → `main` · +42 −3 · 6 files · 1 commits · open ### Summary - In `.github/workflows/ci.yml`, update `stdlib-tests-linux` and `macos-python` jobs to collect all failed files in `failed+=("$t")` and emit `::error file=$t::$t failed` before exiting non-zero (mirroring the Windows `check` job), preventing early-exit from concealing downstream test failures. - In `macos-python`, ensures the background `semantic` discover job is reliably waited on and its log output printed even when standard-library test files fail. - In `scripts/run_semantic_tests.py` and `scripts/run_wine_tests.py`, adds `sys.stderr.reconfigure(errors="replace")` under `if __name__ == "__main__":` so redirected streams on strict ANSI code pages under `python -I` handle unencodable characters gracefully without raising `UnicodeEncodeError`. - Adds regression unit tests in `tests/test_ci_registration.py` (asserting Linux and macOS jobs collect all failures), `tests/test_run_semantic_tests.py`, and `tests/test_run_wine_tests.py`. ### Verification - `python -I tests/test_ci_registration.py` PASS (17 tests in 12.4s). - `python -I tests/test_run_wine_tests.py` PASS (64 tests in 2.3s). - `python -I tests/test_run_semantic_tests.py` PASS (20 tests in 10.4s). - `python -I tests/test_runner_calls_all_tests.py` PASS (3 tests in 2.3s). - `python -I scripts/check_no_game_data.py` clean (0 matches, 100% clean-room compliant). - All modified files verified LF line endings. AI-assisted.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 09:19:43 +00:00
Author
Owner

@⁠KernelSmoker on GitHub · 2026-11-24 13:39 UTC · original · reviewed

Independent Linux verification of PR head b1fdeea259ba5bb8c1cb204eceaab2954f0fc08c on base 2d73c242fddfe26d57b52ee150704e6c3b23cff4: tests/test_ci_registration.py passed 15/15, tests/test_run_semantic_tests.py 19/19, and tests/test_run_wine_tests.py 63/63. py_compile for the changed Python files and git diff --check also passed. The semantic-runner unit suite intentionally launches a failing fixture to test failure reporting; the suite itself passed.

No GPU or game data used. At the latest hosted-check refresh, label, Linux GPU tools, Windows, macOS, jactionlint, no-game-data, and change-scope checks were still queued. AI-assisted independent verification.

**@⁠KernelSmoker** on GitHub · 2026-11-24 13:39 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/756#pullrequestreview-6040190070) · **reviewed** Independent Linux verification of PR head `b1fdeea259ba5bb8c1cb204eceaab2954f0fc08c` on base `2d73c242fddfe26d57b52ee150704e6c3b23cff4`: `tests/test_ci_registration.py` passed 15/15, `tests/test_run_semantic_tests.py` 19/19, and `tests/test_run_wine_tests.py` 63/63. `py_compile` for the changed Python files and `git diff --check` also passed. The semantic-runner unit suite intentionally launches a failing fixture to test failure reporting; the suite itself passed. No GPU or game data used. At the latest hosted-check refresh, label, Linux GPU tools, Windows, macOS, jactionlint, no-game-data, and change-scope checks were still queued. AI-assisted independent verification.
Author
Owner

@⁠abnalstlll-byte on GitHub · 2026-11-25 21:52 UTC · original

Rebased onto latest \main\ (resolving conflict in \ ests/test_run_semantic_tests.py\ with newly merged parallel interrupt test cases).
Verified \ ests/test_ci_registration.py\ (18/18 passed), \ ests/test_run_semantic_tests.py\ (27/27 passed), \scripts/check_no_game_data.py\ (clean), and \git diff --check.

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

**@⁠abnalstlll-byte** on GitHub · 2026-11-25 21:52 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/756#issuecomment-7175655491) Rebased onto latest \main\ (resolving conflict in \ ests/test_run_semantic_tests.py\ with newly merged parallel interrupt test cases). Verified \ ests/test_ci_registration.py\ (18/18 passed), \ ests/test_run_semantic_tests.py\ (27/27 passed), \scripts/check_no_game_data.py\ (clean), and \git diff --check\. AI-assisted (Claude Code, Claude Opus 5.5).
Author
Owner

@⁠EdenBendheim on GitHub · 2026-11-26 05:17 UTC · original

Note

🤖 gpt-6.2-sol responding on behalf of EdenBendheim

Independent macOS 27.3 / Python 3.12.14 verification of head f9af30b85429372daed10312ab1094c4d110708e merged locally with main a73a57e13: CI registration 18/18, semantic-runner tests 27/27, Wine-runner tests 73/73, no-game-data and diff checks passed. CPU-only synthetic fixtures.

One remaining issue directly affects complete failure reporting in both changed steps: each python -I "$t" inherits the file-selection stream from the shell loop.

I ran each actual workflow step on a synthetic tree with three standalone files (fail, pass, fail) and a passing semantic fixture. Both steps correctly reported both failures and the Mac step printed its semantic log. When the first file also calls sys.stdin.read(), both steps instead execute only the first file and silently omit the subsequent pass/fail files.

This is pre-existing, not introduced by your PR; we saw the same issue in the full serial benchmark for #2193. I verified that changing the child invocation to python -I "$t" </dev/null || failed+=("$t") in both loops makes the three-file fixture execute all three and report both failures. A small regression using an stdin-reading test would cover it.

**@⁠EdenBendheim** on GitHub · 2026-11-26 05:17 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/756#issuecomment-7183350039) > [!NOTE] > 🤖 **gpt-6.2-sol responding on behalf of EdenBendheim** Independent macOS 27.3 / Python 3.12.14 verification of head `f9af30b85429372daed10312ab1094c4d110708e` merged locally with main `a73a57e13`: CI registration 18/18, semantic-runner tests 27/27, Wine-runner tests 73/73, no-game-data and diff checks passed. CPU-only synthetic fixtures. One remaining issue directly affects complete failure reporting in both changed steps: each `python -I "$t"` inherits the file-selection stream from the shell loop. I ran each actual workflow step on a synthetic tree with three standalone files (fail, pass, fail) and a passing semantic fixture. Both steps correctly reported both failures and the Mac step printed its semantic log. When the first file also calls `sys.stdin.read()`, both steps instead execute only the first file and silently omit the subsequent pass/fail files. This is pre-existing, not introduced by your PR; we saw the same issue in the full serial benchmark for #2193. I verified that changing the child invocation to `python -I "$t" </dev/null || failed+=("$t")` in both loops makes the three-file fixture execute all three and report both failures. A small regression using an stdin-reading test would cover it.
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/756/head:github-bot/gh-756'
git switch 'github-bot/gh-756'

Merge

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