Scripts: require a successful regression-run exit #538

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

@⁠IISKII1 on GitHub · 2026-11-24 01:32 UTC · original
IISKII1:codex/require-successful-smoke-exit → main · +59 −0 · 2 files · 1 commits · open

A runtime PR's smoke block with exit: 0xc0000005 and crashes: 0 was accepted: the checker only rejected exits beginning with killed. Missing or malformed exits also passed. Require the PR run to report hexadecimal zero, matching scripts/smoke.ps1's output. A failing main baseline remains allowed.

What is in it

  • scripts/pr_check.py: reject nonzero, absent or malformed PR exit codes; retain the timeout diagnostic.
  • scripts/test_pr_check_smoke_exit.py: six tests for valid exits, failures without logged crashes, missing/malformed exits, timeout, failing baselines and nonruntime changes.

Tested

  • Windows 10 Pro build 19045, Radeon RX 7700 XT driver 32.0.22021.1009, Rust 1.94.0 MSVC, VS 2022, DXC 1.8.2502.11; debug.
  • Based on main 508a0c74d7c0625d6d2de8d24494e69dc2e1926f, with the uncommitted patch applied.
  • python -B -m unittest discover -s scripts -p test_pr_check_smoke_exit.py -v: six tests pass after the fix. Before the fix, eight subcases fail across the nonzero and missing/malformed test methods.
  • scripts/test.ps1: build succeeds; 680 passed, 0 failed, 41 ignored; exit 0. GPU skips: 84 no GPU, 2 no wave64 (Windows 10/Agility limitation; not GPU coverage).
  • git diff --check: passes.

Not tested

  • Live GitHub Actions execution; the checker's Python entry point is exercised locally through check().
  • No retail title or sample files; scripts only, no runtime change. No recompiler GPU coverage for the skipped cases above.

AI use

  • Codex (GPT-6) found and reproduced the bug, wrote the correction and tests, ran the checks, and drafted this description.
**@⁠IISKII1** on GitHub · 2026-11-24 01:32 UTC · [original](https://github.com/xcl-dev/xcl/pull/538) `IISKII1:codex/require-successful-smoke-exit` → `main` · +59 −0 · 2 files · 1 commits · open A runtime PR's smoke block with `exit: 0xc0000005` and `crashes: 0` was accepted: the checker only rejected exits beginning with `killed`. Missing or malformed exits also passed. Require the PR run to report hexadecimal zero, matching `scripts/smoke.ps1`'s output. A failing main baseline remains allowed. **What is in it** - `scripts/pr_check.py`: reject nonzero, absent or malformed PR exit codes; retain the timeout diagnostic. - `scripts/test_pr_check_smoke_exit.py`: six tests for valid exits, failures without logged crashes, missing/malformed exits, timeout, failing baselines and nonruntime changes. **Tested** - Windows 10 Pro build 19045, Radeon RX 7700 XT driver 32.0.22021.1009, Rust 1.94.0 MSVC, VS 2022, DXC 1.8.2502.11; debug. - Based on main `508a0c74d7c0625d6d2de8d24494e69dc2e1926f`, with the uncommitted patch applied. - `python -B -m unittest discover -s scripts -p test_pr_check_smoke_exit.py -v`: six tests pass after the fix. Before the fix, eight subcases fail across the nonzero and missing/malformed test methods. - `scripts/test.ps1`: build succeeds; 680 passed, 0 failed, 41 ignored; exit 0. GPU skips: 84 no GPU, 2 no wave64 (Windows 10/Agility limitation; not GPU coverage). - `git diff --check`: passes. **Not tested** - Live GitHub Actions execution; the checker's Python entry point is exercised locally through `check()`. - No retail title or sample files; scripts only, no runtime change. No recompiler GPU coverage for the skipped cases above. **AI use** - Codex (GPT-6) found and reproduced the bug, wrote the correction and tests, ran the checks, and drafted this description.
Reject nonzero, missing or malformed PR smoke exit codes rather than
accepting them when the log contains no crash line. Keep failing main
baselines allowed.

Assisted-by: Codex (GPT-6)
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:25:00 +00:00
Author
Owner

@⁠futurepro62 on GitHub · 2026-11-24 02:32 UTC · original

Tested exact head 52e4f76.

Tested

  • Windows 11 Home 26300, Python 3.14.3.
  • cd scripts; python -m unittest test_pr_check_smoke_exit -v on 52e4f76: Ran 6 tests, OK.
  • Control: the same test file against scripts/pr_check.py of the parent commit 508a0c7: FAILED (failures=8) (subtests). So the tests catch what the PR changes.
  • python scripts/pr_check.py --help still runs.

Not tested

  • The PR checks workflow itself on a real PR (only the checker's check() through the unit test), pr_check.py --local.

AI use

  • Claude Code (Claude Opus 5.5) ran the tests and the control and wrote this report. I checked it before posting.
**@⁠futurepro62** on GitHub · 2026-11-24 02:32 UTC · [original](https://github.com/xcl-dev/xcl/pull/538#issuecomment-7120242388) Tested exact head `52e4f76`. **Tested** - Windows 11 Home 26300, Python 3.14.3. - `cd scripts; python -m unittest test_pr_check_smoke_exit -v` on `52e4f76`: Ran 6 tests, OK. - Control: the same test file against `scripts/pr_check.py` of the parent commit `508a0c7`: `FAILED (failures=8)` (subtests). So the tests catch what the PR changes. - `python scripts/pr_check.py --help` still runs. **Not tested** - The `PR checks` workflow itself on a real PR (only the checker's `check()` through the unit test), `pr_check.py --local`. **AI use** - Claude Code (Claude Opus 5.5) ran the tests and the control and wrote this report. I checked it before posting.
Author
Owner

@⁠throny on GitHub · 2026-11-24 22:26 UTC · original

Two contributors checked independently and found that this PR makes the same change as #536: #1607, group D64. They suggest keeping #536. If you agree, closing this PR or joining the other one would save the maintainers a review. If the two differ in a way the checks missed, a note in #1607 helps.

This is a hint from the community triage in #1607, not a maintainer decision.

AI use: Claude Code (Claude Opus 5.5), posted by a script from the #1607 table.

**@⁠throny** on GitHub · 2026-11-24 22:26 UTC · [original](https://github.com/xcl-dev/xcl/pull/538#issuecomment-7146227635) <!-- xcl-1607-hint:D64 --> Two contributors checked independently and found that this PR makes the same change as #536: #1607, group D64. They suggest keeping #536. If you agree, closing this PR or joining the other one would save the maintainers a review. If the two differ in a way the checks missed, a note in #1607 helps. This is a hint from the community triage in #1607, not a maintainer decision. AI use: Claude Code (Claude Opus 5.5), posted by a script from the #1607 table.
Author
Owner

@⁠DavidM1911 on GitHub · 2026-11-25 13:43 UTC · original

Verification on RTX 3060 Ti (Windows 11), branch merged with current main:

  • cargo test -p xcl --lib: all passed, 0 failed, ~26 ignored. (Intermittent single-test flake / 0xc0000005 abort under parallel scheduling — tracked in #1978; clean on single-threaded rerun.)

Thanks!

**@⁠DavidM1911** on GitHub · 2026-11-25 13:43 UTC · [original](https://github.com/xcl-dev/xcl/pull/538#issuecomment-7164191780) Verification on RTX 3060 Ti (Windows 11), branch merged with current `main`: - `cargo test -p xcl --lib`: all passed, 0 failed, ~26 ignored. (Intermittent single-test flake / 0xc0000005 abort under parallel scheduling — tracked in #1978; clean on single-threaded rerun.) Thanks!
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/538/head:github-bot/gh-538'
git switch 'github-bot/gh-538'

Merge

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