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

Open
opened 2026-11-26 04:55:52 +00:00 by github-bot · 1 comment
Owner

@⁠Conrage on GitHub · 2026-11-24 17:04 UTC · original

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.

**@⁠Conrage** on GitHub · 2026-11-24 17:04 UTC · [original](https://github.com/xcl-dev/xcl/issues/1506) 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.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:55:52 +00:00
Author
Owner

@⁠DarkPanda69 on GitHub · 2026-11-24 17:08 UTC · original

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.

**@⁠DarkPanda69** on GitHub · 2026-11-24 17:08 UTC · [original](https://github.com/xcl-dev/xcl/issues/1506#issuecomment-7138745705) 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.
This discussion has been locked. Commenting is limited to contributors.
No description provided.