Skip to content

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

Open
abnalstlll-byte wants to merge 1 commit into
ProjectLeonida:mainfrom
abnalstlll-byte:feat/pipeline-ci-resilience
Open

abnalstlll-byte wants to merge 1 commit into
ProjectLeonida:mainfrom
abnalstlll-byte:feat/pipeline-ci-resilience

Conversation

@abnalstlll-byte

Copy link
Copy Markdown
Contributor

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.

@KernelSmoker KernelSmoker left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@abnalstlll-byte
abnalstlll-byte force-pushed the feat/pipeline-ci-resilience branch from b1fdeea to f9af30b Compare November 25, 2026 21:52
@abnalstlll-byte

Copy link
Copy Markdown
Contributor Author

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

@EdenBendheim

Copy link
Copy Markdown
Contributor

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.

@MoonEyes

Copy link
Copy Markdown
Collaborator

Hi @abnalstlll-byte, thanks for this pull request.

CONTRIBUTING.md asks contributors to claim their work in the coordination issue ("Coordinating who works on what", currently #1608) before opening a pull request: post claiming: <ID> there, or a one-line description if the item is not listed yet, and put the ID in the pull request. I could not find a claim from you for this one.

The claim matters because "it is claimed in the coordination issue by the pull request's author" is the first item on the maintainers' checklist for a mergeable pull request, and because it lets others see that the work is taken before they write it a second time.

Could you post the claim in #1608 and put its ID (or a link to it) on the pull request's "Claimed in the coordination issue as:" line? If you already claimed it in another form, a link to your comment is enough.

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants