PR checks: a PR that fixes a crash is refused when main's run crashed before its end #1496

Open
opened 2026-11-24 17:04:17 +00:00 by Conrage · 1 comment
Conrage commented 2026-11-24 17:04:17 +00:00 (Migrated from github.com)
Contributor

Imported from ivall/xcl. Originally posted by Conrage on 2026-11-24T17:04:17Z.


Since 1d83fd1 (#1133), field_problems also checks the main smoke block, and a frames shown that is not a number is reported:

github.com/ivall/xcl@b7aa9f3/scripts/pr_check.py (L61-L68)
github.com/ivall/xcl@b7aa9f3/scripts/pr_check.py (L150-L153)

But scripts/smoke.ps1 writes exactly that when the run doesn't reach its end, which is what a crash on main looks like:

github.com/ivall/xcl@b7aa9f3/scripts/smoke.ps1 (L54)

frames shown: none logged (the run did not reach its end)

CONTRIBUTING allows this case ("the main run may: a PR that fixes a crash shows it there"), but a crash-fix PR can no longer pass.

Repro (run locally): a main block with crashes: 1, exit: 0xc0000005 and the frames shown line above, plus a clean PR block of the same title and time, for a PR touching crates/xcl/src/vfs.rs:

  • before 1d83fd1 (930e8b4): check() returns []
  • on b7aa9f3: ['the main regression run (`xcl-smoke` block of commit 1111111aaaa) has a non-numeric `frames shown`: none logged (the run did not reach its end)']

Expected: a main block whose run crashed or didn't end (its crashes/exit show it, or frames shown is smoke.ps1's "none logged" text) is not refused for a non-numeric frames shown. The PR's own block should keep the check.

Suggested fix: skip the SMOKE_NUMBERS check of frames shown for the main block when it is smoke.ps1's "none logged" text. #1112 adds a similar "main crashed" condition for the peak-commit limit and could share it.

Not tested: check() was run locally on both commits; no real smoke run.

AI use: found, checked and written up by Claude Code (Claude Opus 5.5) at my request.

<!-- greyfinch-sync:ivall/xcl:issue:6587174255 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/issues/1506). Originally posted by [Conrage](https://github.com/Conrage) on 2026-11-24T17:04:17Z. --- Since 1d83fd1 (#1133), `field_problems` also checks the main smoke block, and a `frames shown` that is not a number is reported: https://github.com/ivall/xcl/blob/b7aa9f3/scripts/pr_check.py#L61-L68 https://github.com/ivall/xcl/blob/b7aa9f3/scripts/pr_check.py#L150-L153 But `scripts/smoke.ps1` writes exactly that when the run doesn't reach its end, which is what a crash on main looks like: https://github.com/ivall/xcl/blob/b7aa9f3/scripts/smoke.ps1#L54 ``` frames shown: none logged (the run did not reach its end) ``` CONTRIBUTING allows this case ("the `main` run may: a PR that fixes a crash shows it there"), but a crash-fix PR can no longer pass. **Repro (run locally):** a main block with `crashes: 1`, `exit: 0xc0000005` and the `frames shown` line above, plus a clean PR block of the same title and time, for a PR touching `crates/xcl/src/vfs.rs`: - before 1d83fd1 (`930e8b4`): `check()` returns `[]` - on `b7aa9f3`: ``['the main regression run (`xcl-smoke` block of commit 1111111aaaa) has a non-numeric `frames shown`: none logged (the run did not reach its end)']`` **Expected:** a main block whose run crashed or didn't end (its `crashes`/`exit` show it, or `frames shown` is smoke.ps1's "none logged" text) is not refused for a non-numeric `frames shown`. The PR's own block should keep the check. **Suggested fix:** skip the `SMOKE_NUMBERS` check of `frames shown` for the main block when it is smoke.ps1's "none logged" text. #1112 adds a similar "main crashed" condition for the peak-commit limit and could share it. **Not tested:** `check()` was run locally on both commits; no real smoke run. **AI use:** found, checked and written up by Claude Code (Claude Opus 5.5) at my request.
DarkPanda69 commented 2026-11-24 18:08:51 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ivall/xcl. Originally posted by DarkPanda69 on 2026-11-24T17:08:27Z.


I'm taking this one. Plan: field_problems accepts smoke.ps1's "none logged" frames shown only for main's block (a may_crash flag set where main's block is checked), so the PR's own block keeps the check. Two tests in test_pr_check.py: a main block that crashed passes (fails on b7aa9f3), and a PR block with the same text still fails. Script-only change; the PR follows.

AI use: Claude Code (Claude Opus 5.5) wrote the fix and the tests.

<!-- greyfinch-sync:ivall/xcl:comment:7138745705 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/issues/1506#issuecomment-7138745705). Originally posted by [DarkPanda69](https://github.com/DarkPanda69) on 2026-11-24T17:08:27Z. --- I'm taking this one. Plan: `field_problems` accepts smoke.ps1's "none logged" `frames shown` only for main's block (a `may_crash` flag set where main's block is checked), so the PR's own block keeps the check. Two tests in `test_pr_check.py`: a main block that crashed passes (fails on `b7aa9f3`), and a PR block with the same text still fails. Script-only change; the PR follows. AI use: Claude Code (Claude Opus 5.5) wrote the fix and the tests.
Sign in to join this conversation.
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#1496
No description provided.