PR checks: accept main's smoke run that crashed before its end (#1506) #1740

Open
DarkPanda69 wants to merge 1 commit from upstream-pr/1750 into main
DarkPanda69 commented 2026-11-24 20:14:13 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by DarkPanda69 on 2026-11-24T20:14:13Z.


Since #1133, field_problems also checks main's xcl-smoke block, and smoke.ps1 writes none logged (the run did not reach its end) as frames shown when the run crashes. CONTRIBUTING.md allows main's run to crash ("a PR that fixes a crash shows it there"), but such a PR was refused for a non-numeric frames shown. Fixes #1506.

What is in it

  • scripts/pr_check.py: field_problems takes may_crash, set only where main's block is checked; with it, a frames shown starting with smoke.ps1's none logged is not reported. The PR's block is checked as before.
  • scripts/test_pr_check.py: a main block that crashed (crashes: 1, exit: 0xc0000005, the none logged line) next to a clean PR block passes; a PR block with the none logged line still fails.

Tested

  • python -B -m unittest discover -s scripts -p 'test_*.py', Python 3.12.10, Windows 11 Pro 26200: 18 passed. With pr_check.py from main and the new tests, test_main_run_that_crashed_before_its_end_passes fails with the message from the issue.
  • cargo build --workspace, then cargo test --workspace --no-fail-fast -- --test-threads=4 on this commit (c08ce4e, on main b9b6ea6), debug, Rust 1.100.0, AMD RX 9070 XT (driver 32.0.32029.2010), Ryzen 7 5800X, Windows 11 Pro 26200: 889 passed, 0 failed, 42 ignored. 2 SKIPPED: pso_measurement_compiles_an_exact_synthetic_record (cannot disable the driver cache) and heap_window_out_of_memory_falls_back_to_the_switch_form (no heap windows). The change is Python-only, so this only shows the tree still builds and passes.

Not tested

  • The PR checks workflow on GitHub's runner.
  • Together with #1112, which adds a similar "main crashed" condition for the peak-commit limit.

AI use

  • Claude Code (Claude Opus 5.5): wrote the change, the tests and this description, and ran the commands above.

🤖 Generated with Claude Code

<!-- greyfinch-sync:ivall/xcl:issue:5479585046 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1750). Originally posted by [DarkPanda69](https://github.com/DarkPanda69) on 2026-11-24T20:14:13Z. --- Since #1133, `field_problems` also checks main's `xcl-smoke` block, and smoke.ps1 writes `none logged (the run did not reach its end)` as `frames shown` when the run crashes. CONTRIBUTING.md allows main's run to crash ("a PR that fixes a crash shows it there"), but such a PR was refused for a non-numeric `frames shown`. Fixes #1506. **What is in it** - `scripts/pr_check.py`: `field_problems` takes `may_crash`, set only where main's block is checked; with it, a `frames shown` starting with smoke.ps1's `none logged` is not reported. The PR's block is checked as before. - `scripts/test_pr_check.py`: a main block that crashed (`crashes: 1`, `exit: 0xc0000005`, the `none logged` line) next to a clean PR block passes; a PR block with the `none logged` line still fails. **Tested** - `python -B -m unittest discover -s scripts -p 'test_*.py'`, Python 3.12.10, Windows 11 Pro 26200: 18 passed. With `pr_check.py` from `main` and the new tests, `test_main_run_that_crashed_before_its_end_passes` fails with the message from the issue. - `cargo build --workspace`, then `cargo test --workspace --no-fail-fast -- --test-threads=4` on this commit (`c08ce4e`, on `main` `b9b6ea6`), debug, Rust 1.100.0, AMD RX 9070 XT (driver 32.0.32029.2010), Ryzen 7 5800X, Windows 11 Pro 26200: 889 passed, 0 failed, 42 ignored. 2 SKIPPED: `pso_measurement_compiles_an_exact_synthetic_record` (cannot disable the driver cache) and `heap_window_out_of_memory_falls_back_to_the_switch_form` (no heap windows). The change is Python-only, so this only shows the tree still builds and passes. **Not tested** - The `PR checks` workflow on GitHub's runner. - Together with #1112, which adds a similar "main crashed" condition for the peak-commit limit. **AI use** - Claude Code (Claude Opus 5.5): wrote the change, the tests and this description, and ran the commands above. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
futurepro62 commented 2026-11-24 21:29:55 +00:00 (Migrated from github.com)

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


Tested exact head c08ce4e, script tests only, since this PR has no test report yet.

Tested

  • Windows 11 Home 26300, Python 3.14.3 with pytest 9.0.3, Windows PowerShell 5.1.26100.9818 (no PowerShell 7 here).
  • python -m pytest scripts/test_pr_check.py at the head: 15 passed, 23 subtests passed.
  • The PR's test file against current main's script (266b845): 1 failed: SmokeBlockTests::test_main_run_that_crashed_before_its_end_passes. So the new test catches the problem the PR fixes.

Not tested

  • PowerShell 7, the CI workflow itself, a game (no runtime code changed).

AI use

  • Claude Code (Claude Opus 5.5) ran the tests and wrote this report. I checked it before posting.
<!-- greyfinch-sync:ivall/xcl:comment:7144667841 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1750#issuecomment-7144667841). Originally posted by [futurepro62](https://github.com/futurepro62) on 2026-11-24T21:14:32Z. --- Tested exact head `c08ce4e`, script tests only, since this PR has no test report yet. **Tested** - Windows 11 Home 26300, Python 3.14.3 with pytest 9.0.3, Windows PowerShell 5.1.26100.9818 (no PowerShell 7 here). - `python -m pytest scripts/test_pr_check.py` at the head: 15 passed, 23 subtests passed. - The PR's test file against current main's script (`266b845`): 1 failed: `SmokeBlockTests::test_main_run_that_crashed_before_its_end_passes`. So the new test catches the problem the PR fixes. **Not tested** - PowerShell 7, the CI workflow itself, a game (no runtime code changed). **AI use** - Claude Code (Claude Opus 5.5) ran the tests and wrote this report. I checked it before posting.
DavidM1911 commented 2026-11-24 23:08:36 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-24T22:55:40Z.


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

  • cargo test -p xcl --lib: all passed, 0 failed, ~23 ignored. (Intermittent single-test flake / 0xc0000005 abort under parallel scheduling; clean on single-threaded rerun — same flake seen on unmodified main.)

Thanks!

<!-- greyfinch-sync:ivall/xcl:comment:7146807566 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1750#issuecomment-7146807566). Originally posted by [DavidM1911](https://github.com/DavidM1911) on 2026-11-24T22:55:40Z. --- Verification on RTX 3060 Ti (Windows 11), branch merged with current `main`: - `cargo test -p xcl --lib`: all passed, 0 failed, ~23 ignored. (Intermittent single-test flake / 0xc0000005 abort under parallel scheduling; clean on single-threaded rerun — same flake seen on unmodified `main`.) Thanks!
github-actions[bot] commented 2026-11-28 20:18:21 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by github-actions[bot] on 2026-11-28T20:18:21Z.


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:7245188549 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1750#issuecomment-7245188549). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-11-28T20:18:21Z. --- 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 06:39:32 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T06:39:32Z.


Triage (#1607) – head c08ce4e

Fixes #1506, which is still open; field_problems on main still reports main's frames shown: none logged (the run did not reach its end) as non-numeric.
#1112 (skip the peak-commit limit when main crashed) and #2219 (stricter fields for the PR's own block) touch the same function but not this case; #2219 changes the field_problems signature, so whichever lands second needs a rebase.
The exception is limited to main's block and to the frames shown key, and the frames comparison already skips a missing main count. 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:7303123853 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1750#issuecomment-7303123853). Originally posted by [Foniass](https://github.com/Foniass) on 2026-12-01T06:39:32Z. --- **Triage (#1607)** – head c08ce4e Fixes #1506, which is still open; `field_problems` on main still reports main's `frames shown: none logged (the run did not reach its end)` as non-numeric. #1112 (skip the peak-commit limit when main crashed) and #2219 (stricter fields for the PR's own block) touch the same function but not this case; #2219 changes the `field_problems` signature, so whichever lands second needs a rebase. The exception is limited to main's block and to the `frames shown` key, and the frames comparison already skips a missing main count. 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.
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/1750:upstream-pr/1750'
git switch 'upstream-pr/1750'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'upstream-pr/1750'
git switch 'upstream-pr/1750'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/1750'
git switch 'upstream-pr/1750'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/1750'
git switch 'main'
git merge --squash 'upstream-pr/1750'
git switch 'main'
git merge --ff-only 'upstream-pr/1750'
git switch 'main'
git merge 'upstream-pr/1750'
git push origin 'main'
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!1740
No description provided.