Skip to content

Scripts: reject smoke comparisons with zero baseline frames - #1496

Open
alpz1000 wants to merge 2 commits into
xcl-dev:mainfrom
alpz1000:scripts/reject-zero-frame-smoke
Open

alpz1000 wants to merge 2 commits into
xcl-dev:mainfrom
alpz1000:scripts/reject-zero-frame-smoke

Conversation

@alpz1000

@alpz1000 alpz1000 commented Nov 24, 2026 •

Copy link
Copy Markdown

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.

@OrangeCrane1738

Copy link
Copy Markdown

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.

@gut0to gut0to left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@DavidM1911

Copy link
Copy Markdown
Contributor

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants