Skip to content

Scripts: require the current smoke baseline - #2406

Draft
mokkamokacaffe wants to merge 2 commits into
xcl-dev:mainfrom
mokkamokacaffe:scripts/exact-smoke-baseline
Draft

mokkamokacaffe wants to merge 2 commits into
xcl-dev:mainfrom
mokkamokacaffe:scripts/exact-smoke-baseline

Conversation

@mokkamokacaffe

@mokkamokacaffe mokkamokacaffe commented Nov 25, 2026 •

Copy link
Copy Markdown

Fixes #2226 by requiring a runtime PR’s smoke baseline to come from the base commit recorded in the pull request event. If that base moves, the contributor needs a clean run on the new base for the same title and duration.

What is in it

Tested

  • Linux, Python 3.12.14. The original run of python -I -m unittest discover -s scripts -p "test_*.py" -v reported 30 passed, 0 failed. git diff --check passed.
  • @RavenCurseBurg tested exact head 82bc4503a6d56f3ef88bc731c22f823d02150880 on Windows 11 with Python 3.14.3. All 38 local CLI cases returned the expected status and diagnostic. Against a synthetic baseline of 100 frames and 1,000 MB, 80 frames and 1,250 MB passed. Lowering the count to 79 or raising memory to 1,251 MB failed. The cases also covered stale, dirty, duplicate and mismatched baselines. CLI report
  • @FIJI1299 reported 18 passed, 0 failed in the checker suite on the exact head under Windows 11. On an RTX 5070 (driver 621.35), the Rust library suite reported 1,215 passed, 5 failed, 26 ignored. The tester identified four DXIL fuzz-test out-of-memory failures and one bridged-mask assertion as pre-existing. Reported GPU skips were 13 for wave64, 3 for wave32 VOP3 modifiers and 1 requiring Windows Developer Mode. Windows report
  • @DavidM1911 tested the branch merged with then-current main on Windows 11 and an RTX 3060 Ti. The parallel library run reported 1,038 passed, 1 failed. The single-threaded rerun reported 1,039 passed, 0 failed. The tester linked the intermittent failure to Test suite: parallel cargo test intermittently dies with 0xc0000005 (hle::d3d12x queue_tests × list_x race) #1978. Merged-tree report

Regression run

A paired retail xcl-smoke run is exempt under the PR template. This diff changes the description workflow, its Python checker and its tests.

Not tested

AI use

OpenAI Codex with GPT-5 implemented the baseline check and regression tests and ran the original Linux checks. OpenAI Codex (GPT-6) prepared this description update from the diff and the linked contributor reports.

The PR checker treated missing or malformed crash, device-removal, exit, and peak-commit lines as clean values. Require the generated safety fields, parse counters and memory strictly, and accept only a successful 0x0 exit for the PR run.\n\nFixes xcl-dev#2213\n\nAssisted-by: OpenAI Codex (GPT-5)
The description check accepted any ancestor of main, including old or dirty runs, and silently selected the first of several matching baselines. Pass the PR's exact base SHA into the checker, require a clean block from that revision, and reject ambiguous same-title/time baselines.\n\nFixes xcl-dev#2226\n\nAssisted-by: OpenAI Codex (GPT-5)
@FIJI1299

Copy link
Copy Markdown

Tested commit 82bc450 on Windows:

Environment

  • OS: Windows 11
  • Python: Miniconda Python 3
  • GPU: NVIDIA GeForce RTX 5070 (12 GB VRAM, driver 621.35, wave32)
  • DXC: 1.8.2502.11 (Windows SDK 10.0.26100.0)

Results

  • PR checker unit tests (python -m unittest discover -s scripts -t scripts -p "test_pr_check.py" -v): 18 passed, 0 failed (0.006s), including test_main_block_must_be_the_exact_pr_base, test_main_block_must_come_from_a_clean_checkout, and test_several_matching_main_blocks_are_ambiguous.
  • Full library test suite (.\scripts\test.ps1): 1215 passed, 5 failed, 26 ignored — the 5 failures are pre-existing gpu::* issues on this adapter (E_OUTOFMEMORY 0x8007000E on fuzz_validate_and_gpu_0..3 with this driver, and a_bridged_mask_write_where_one_half_is_elsewhere_meets_no_barrier).
  • GPU tests skipped: 13 (no wave64), 3 (wave32 unsupported VOP3 modifiers), 1 (driver cache disable requires Windows Developer Mode: 0x887A002D).

@RavenCurseBurg

RavenCurseBurg commented Nov 25, 2026 •

Copy link
Copy Markdown

Tested 82bc4503a6d56f3ef88bc731c22f823d02150880 with Python 3.14.3 on Windows 11 (build 26100.9711).

  • Ran 38 local CLI invocations with generated descriptions and a runtime-file TSV, using HEAD 82bc4503a6d5 and fixture BASE 89681182b554 (its parent). Every exit status and expected diagnostic matched. The checker selected the matching title and duration in every block order, including descriptions with an unrelated title, duration or historical revision. An old-only or dirty baseline, duplicate matching baselines, and a mismatched duration all failed. The 80-frame / 1250 MB boundary against a 100-frame / 1000 MB baseline passed. At 79 frames or 1251 MB it failed.
  • The workflow sources BASE from github.event.pull_request.base.sha and passes it to the checker. The CLI usage already shows the flag. The contributor guide still allows “a commit of main” and the PR template just says “from main.” The two-file wording update spells out which baseline to run again when the base moves. All 18 checker tests, including the template tests, passed before and after that edit.

These are synthetic local CLI checks. No hosted workflow, retail game, Rust suite or GPU workload ran. OpenAI Codex (GPT-6) ran the checks and prepared the documentation change and report.

@DavidM1911

Copy link
Copy Markdown
Contributor

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

Thanks!

@throny

throny commented Nov 26, 2026

Copy link
Copy Markdown
Collaborator

Two contributors checked independently and found that #2230 solves the same problem (for #2226) in a different way: #1607, group D117. You may want to compare them with the other author and agree on one, or say in the PR why both are needed.

This is a hint from the community triage in #1607, not a maintainer decision.

AI use: Claude Code (Claude Opus 5.5), posted by a script from the #1607 table.

@mokkamokacaffe

Copy link
Copy Markdown
Author

Thanks @throny for flagging the overlap, and @RavenCurseBurg for testing both checkers on the same Git history.

The case that separates them is a contributor who already has a clean smoke run from one commit behind the PR base. #2230 accepts that baseline and reports its age. #2406 requires a run from the base SHA recorded in the PR event, so the contributor has to rerun it.

I’m keeping this as a draft pending one maintainer decision on #2226: should an older clean baseline be accepted with its age visible, or should the check require the recorded PR base? If the former is preferred, I’m happy to close this in favor of #2230.

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.

PR checks: the main smoke baseline can be an old or dirty commit, not current main

5 participants