Scripts: reject smoke comparisons with zero baseline frames #1486

Open
alpz1000 wants to merge 2 commits from upstream-pr/1496 into main
alpz1000 commented 2026-11-24 16:56:15 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by alpz1000 on 2026-11-24T16:56:15Z.


What is in it

The regression check rejects a pair of smoke runs when both show zero frames. Such a pair cannot demonstrate that the PR preserved displayed frames.

If main shows zero frames and the PR shows frames, the pair remains valid. This allows a fix for a crash before the first frame, as noted in review.

This addresses the zero-frame pair reported in issue #717.

Tested

  • Added checks for the zero-frame pair and for a PR that displays frames when main does not.
  • python -m unittest discover -s scripts: 18 passed on Windows.
  • git diff --check passed.

Not tested

Retail launches. This change affects the PR checker and its unit tests.

AI use

OpenAI Codex (GPT-6) implemented the change, ran the tests, and drafted this description.

<!-- greyfinch-sync:ivall/xcl:issue:5476611448 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1496). Originally posted by [alpz1000](https://github.com/alpz1000) on 2026-11-24T16:56:15Z. --- **What is in it** The regression check rejects a pair of smoke runs when both show zero frames. Such a pair cannot demonstrate that the PR preserved displayed frames. If main shows zero frames and the PR shows frames, the pair remains valid. This allows a fix for a crash before the first frame, as noted in review. This addresses the zero-frame pair reported in [issue #717](https://github.com/xcl-dev/xcl/issues/717#issuecomment-7137992661). **Tested** - Added checks for the zero-frame pair and for a PR that displays frames when main does not. - `python -m unittest discover -s scripts`: 18 passed on Windows. - `git diff --check` passed. **Not tested** Retail launches. This change affects the PR checker and its unit tests. **AI use** OpenAI Codex (GPT-6) implemented the change, ran the tests, and drafted this description.
gut0to commented 2026-11-24 18:52:53 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by gut0to on 2026-11-24T18:52:53Z.

Review: COMMENTED


The focused comparison tests are useful. CONTRIBUTING.md also requires the full workspace GPU suite, with pass/fail/ignored counts and skipped-test names; this description reports only the Python tests. Please add the full-suite result before merge. AI-assisted review; I checked the Tested section against the guide.

<!-- greyfinch-sync:ivall/xcl:review:6045382705 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1496#pullrequestreview-6045382705). Originally posted by [gut0to](https://github.com/gut0to) on 2026-11-24T18:52:53Z. **Review:** COMMENTED --- The focused comparison tests are useful. CONTRIBUTING.md also requires the full workspace GPU suite, with pass/fail/ignored counts and skipped-test names; this description reports only the Python tests. Please add the full-suite result before merge. AI-assisted review; I checked the Tested section against the guide.
OrangeCrane1738 commented 2026-11-24 19:07:20 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by OrangeCrane1738 on 2026-11-24T18:13:07Z.


One case this refuses that CONTRIBUTING.md allows: a PR that fixes a crash where main dies before its first frame ("the main run may [crash]: a PR that fixes a crash shows it there"). On a PC without Gaming Services, main fail-fasts about 1 s in with frames shown: 0 (the runs in #717), while #235's head shows 977 frames, so this check would ask for a main run that can't be made. The new test asserts exactly that case (pr_frames=100) as a failure. Refusing only when both blocks show 0 frames would still catch the dead pair from #717 and let a fix like #235 through.

AI use: Claude Opus 5.5 (in the Claude app) read the diff and drafted this; I checked it against CONTRIBUTING.md.

<!-- greyfinch-sync:ivall/xcl:comment:7140328399 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1496#issuecomment-7140328399). Originally posted by [OrangeCrane1738](https://github.com/OrangeCrane1738) on 2026-11-24T18:13:07Z. --- One case this refuses that CONTRIBUTING.md allows: a PR that fixes a crash where `main` dies before its first frame ("the `main` run may [crash]: a PR that fixes a crash shows it there"). On a PC without Gaming Services, `main` fail-fasts about 1 s in with `frames shown: 0` (the runs in #717), while #235's head shows 977 frames, so this check would ask for a `main` run that can't be made. The new test asserts exactly that case (`pr_frames=100`) as a failure. Refusing only when both blocks show 0 frames would still catch the dead pair from #717 and let a fix like #235 through. AI use: Claude Opus 5.5 (in the Claude app) read the diff and drafted this; I checked it against CONTRIBUTING.md.
DavidM1911 commented 2026-11-24 19:07:45 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-24T18:53:35Z.


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

  • cargo test -p xcl --lib: all passed, 0 failed, ~21 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:7141298958 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1496#issuecomment-7141298958). Originally posted by [DavidM1911](https://github.com/DavidM1911) on 2026-11-24T18:53:35Z. --- Verification on RTX 3060 Ti (Windows 11), branch merged with current `main`: - `cargo test -p xcl --lib`: all passed, 0 failed, ~21 ignored. (Intermittent single-test flake / 0xc0000005 abort under parallel scheduling; clean on single-threaded rerun — same flake seen on unmodified `main`.) Thanks!
DavidM1911 commented 2026-11-26 06:06:44 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-26T05:40:22Z.


Re-verification on RTX 3060 Ti (Windows 11), new head merged with current main:

  • cargo test -p xcl --lib: 1 failure under parallel scheduling; clean on --test-threads=1 rerun (1305 passed, 0 failed, 27 ignored, 82s). Intermittent single-test flake — tracked in #1978.

Thanks!

— Devin

<!-- greyfinch-sync:ivall/xcl:comment:7183699657 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1496#issuecomment-7183699657). Originally posted by [DavidM1911](https://github.com/DavidM1911) on 2026-11-26T05:40:22Z. --- Re-verification on RTX 3060 Ti (Windows 11), new head merged with current `main`: - `cargo test -p xcl --lib`: 1 failure under parallel scheduling; clean on `--test-threads=1` rerun (**1305 passed, 0 failed, 27 ignored**, 82s). Intermittent single-test flake — tracked in #1978. Thanks! — Devin
github-actions[bot] commented 2026-12-01 02:32:50 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by github-actions[bot] on 2026-12-01T02:32:50Z.


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:7298733149 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1496#issuecomment-7298733149). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-12-01T02:32:50Z. --- 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 05:55:58 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T05:55:58Z.


Triage (#1607) – head d96114c

No open or merged PR makes the same change to scripts/pr_check.py.
The title says comparisons with zero baseline frames are rejected, but the code rejects only when both runs show zero frames; a main run with 0 frames and a PR run with frames still passes (and the second test asserts that). Consider making the title match.
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:7302292256 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1496#issuecomment-7302292256). Originally posted by [Foniass](https://github.com/Foniass) on 2026-12-01T05:55:58Z. --- **Triage (#1607)** – head d96114c No open or merged PR makes the same change to scripts/pr_check.py. The title says comparisons with zero baseline frames are rejected, but the code rejects only when both runs show zero frames; a main run with 0 frames and a PR run with frames still passes (and the second test asserts that). Consider making the title match. 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/1496:upstream-pr/1496'
git switch 'upstream-pr/1496'

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