Skip to content

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

Backlog
ufoptg/xcl
#381

Description

@Conrage

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.

Activity

  1. DarkPanda69 commented on Nov 24, 2026

    @DarkPanda69

    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 up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions