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

Stacked on #2388; only commit 82bc450 belongs to this PR. Once #2388 merges, this branch will be rebased onto main.

The description checker accepted a smoke baseline from any historical ancestor of main, including runs marked with uncommitted changes. When several baselines matched the PR run, it silently selected the first one.

Fixes #2226.

What is in it

  • .github/workflows/pr-check.yml: pass the pull request's exact base SHA to the description checker.
  • scripts/pr_check.py: require the baseline smoke block to name that exact base revision instead of accepting any ancestor of main.
  • Reject baseline blocks marked with uncommitted changes.
  • Reject multiple base-revision blocks for the same title and duration instead of selecting the first.
  • Remove the now-unnecessary GitHub comparison request used to identify ancestors.
  • scripts/test_pr_check.py: cover exact-base acceptance, old-baseline rejection, dirty baselines and ambiguous matching baselines.

Tested

  • Python 3.12.14 on Linux: python -I -m unittest discover -s scripts -p "test_*.py" -v — 30 passed, 0 failed.
  • git diff --check: passed.
  • Windows 11, Python 3, NVIDIA GeForce RTX 5070 12 GB (driver 621.35, wave32), DXC 1.8.2502.11 / Windows SDK 10.0.26100.0, exact head 82bc450: focused checker suite — 18 passed, 0 failed.
  • On that RTX 5070, .\scripts\test.ps1: 1215 passed, 5 failed, 26 ignored. The reported pre-existing GPU failures were four DXIL fuzz-test E_OUTOFMEMORY failures and the bridged-mask barrier assertion.
  • Windows 11 build 26100.9711, Python 3.14.3, exact head 82bc4503a6d5: 38 generated CLI cases all returned the expected status and diagnostic. Coverage included block ordering, unrelated historical blocks, old/dirty/duplicate baselines, duration mismatches, and the 80%-frames/125%-memory boundaries.
  • Windows 11, NVIDIA GeForce RTX 3060 Ti, with this branch merged into then-current main: cargo test -p xcl --lib reported 1038 passed, 1 failed under parallel scheduling; the failing test passed on a single-threaded rerun (1039 passed, 0 failed). The intermittent 0xc0000005 parallel-suite failure is tracked separately in Test suite: parallel cargo test intermittently dies with 0xc0000005 (hle::d3d12x queue_tests × list_x race) #1978.

Regression run

  • Not required: this PR changes only the PR-description workflow, checker and its tests, not the XCL runtime.

Not tested

AI use

  • OpenAI Codex with GPT-5 implemented the exact-base workflow plumbing, baseline validation and regression tests, ran the Linux Python suite, reviewed the diff and drafted this description.

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.

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