Scripts: require a successful regression-run exit #533

Closed
IISKII1 wants to merge 1 commit from upstream-pr/538 into main
IISKII1 commented 2026-11-24 01:32:55 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by IISKII1 on 2026-11-24T01:32:55Z.


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.
<!-- greyfinch-sync:ivall/xcl:issue:5464376089 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/538). Originally posted by [IISKII1](https://github.com/IISKII1) on 2026-11-24T01:32:55Z. --- 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.
futurepro62 commented 2026-11-24 07:05:36 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by futurepro62 on 2026-11-24T02:32:21Z.


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.
<!-- greyfinch-sync:ivall/xcl:comment:7120242388 --> Imported from [ivall/xcl](https://github.com/ivall/xcl/pull/538#issuecomment-7120242388). Originally posted by [futurepro62](https://github.com/futurepro62) on 2026-11-24T02:32:21Z. --- 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.
throny commented 2026-11-24 23:08:18 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by throny on 2026-11-24T22:26:14Z.


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.

<!-- greyfinch-sync:ivall/xcl:comment:7146227635 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/538#issuecomment-7146227635). Originally posted by [throny](https://github.com/throny) on 2026-11-24T22:26:14Z. --- <!-- 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.
DavidM1911 commented 2026-11-25 14:10:05 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-25T13:43:18Z.


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!

<!-- greyfinch-sync:ivall/xcl:comment:7164191780 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/538#issuecomment-7164191780). Originally posted by [DavidM1911](https://github.com/DavidM1911) on 2026-11-25T13:43:18Z. --- 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!
github-actions[bot] commented 2026-11-29 07:43:35 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by github-actions[bot] on 2026-11-29T07:43:35Z.


Nothing has happened on this PR for 3 days, so it is marked stale and will be closed in 4 days. A push or a comment takes the mark off: rebase it onto main if it conflicts, and say in one line what it still fixes. If it only waits for a maintainer, a comment saying so is enough.

<!-- greyfinch-sync:ivall/xcl:comment:7252651602 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/538#issuecomment-7252651602). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-11-29T07:43:35Z. --- Nothing has happened on this PR for 3 days, so it is marked `stale` and will be closed in 4 days. A push or a comment takes the mark off: rebase it onto `main` if it conflicts, and say in one line what it still fixes. If it only waits for a maintainer, a comment saying so is enough.
Foniass commented 2026-12-01 03:40:34 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T03:40:34Z.


Triage (#1607) – head 52e4f76

#536 made the same change (refuse a PR smoke block whose exit is not 0x0) and is closed. #2219 also refuses a non-zero or missing PR exit, as part of a wider check that the PR's block has every field in smoke.ps1's form; the two edit the same lines in check(), so one will need a rebase after the other. Main still only refuses killed. No problems found in the diff.
Recommendation: keep open.

AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.

<!-- greyfinch-sync:ivall/xcl:comment:7299949721 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/538#issuecomment-7299949721). Originally posted by [Foniass](https://github.com/Foniass) on 2026-12-01T03:40:34Z. --- **Triage (#1607)** – head 52e4f76 #536 made the same change (refuse a PR smoke block whose exit is not 0x0) and is closed. #2219 also refuses a non-zero or missing PR exit, as part of a wider check that the PR's block has every field in smoke.ps1's form; the two edit the same lines in `check()`, so one will need a rebase after the other. Main still only refuses `killed`. No problems found in the diff. Recommendation: keep open. AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.
throny commented 2026-12-02 10:18:08 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by throny on 2026-12-02T10:18:08Z.


Closing as a duplicate of #2219: #1607 group D175, checked by Foniass and Decodere, who both read the diffs and suggest keeping #2219. If something here is not in #2219, say so and reopen it, or ask and I will.

AI use: Claude Code (Claude Opus 5.5) ran the closing script.

<!-- greyfinch-sync:ivall/xcl:comment:7342267311 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/538#issuecomment-7342267311). Originally posted by [throny](https://github.com/throny) on 2026-12-02T10:18:08Z. --- Closing as a duplicate of #2219: #1607 group D175, checked by Foniass and Decodere, who both read the diffs and suggest keeping #2219. If something here is not in #2219, say so and reopen it, or ask and I will. AI use: Claude Code (Claude Opus 5.5) ran the closing script.

Pull request closed

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
xcl-dev/xcl!533
No description provided.