Scripts: require the current smoke baseline #2406

Open
github-bot wants to merge 2 commits from github-bot/gh-2406 into main AGit
Owner

@⁠mokkamokacaffe on GitHub · 2026-11-25 17:54 UTC · original
mokkamokacaffe:scripts/exact-smoke-baseline → main · +104 −46 · 3 files · 2 commits · draft

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 #1978.

Regression run

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

Not tested

  • A live pull_request_target execution of this changed workflow on GitHub Actions.
  • AMD or Intel GPUs.
  • The branch must be rebased after #2388 merges.
  • PR #1884 also changes the smoke-checking area and may require a small conflict resolution if it merges first.

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.
**@⁠mokkamokacaffe** on GitHub · 2026-11-25 17:54 UTC · [original](https://github.com/xcl-dev/xcl/pull/2406) `mokkamokacaffe:scripts/exact-smoke-baseline` → `main` · +104 −46 · 3 files · 2 commits · draft 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 #1978. **Regression run** - Not required: this PR changes only the PR-description workflow, checker and its tests, not the XCL runtime. **Not tested** - A live `pull_request_target` execution of this changed workflow on GitHub Actions. - AMD or Intel GPUs. - The branch must be rebased after #2388 merges. - PR #1884 also changes the smoke-checking area and may require a small conflict resolution if it merges first. **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 #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 #2226\n\nAssisted-by: OpenAI Codex (GPT-5)
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 05:29:58 +00:00
Author
Owner

@⁠FIJI1299 on GitHub · 2026-11-25 18:02 UTC · original

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).
**@⁠FIJI1299** on GitHub · 2026-11-25 18:02 UTC · [original](https://github.com/xcl-dev/xcl/pull/2406#issuecomment-7170349527) 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`).
Author
Owner

@⁠RavenCurseBurg on GitHub · 2026-11-25 18:06 UTC · original · edited 2026-11-25 18:12 UTC

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.

**@⁠RavenCurseBurg** on GitHub · 2026-11-25 18:06 UTC · [original](https://github.com/xcl-dev/xcl/pull/2406#issuecomment-7170450143) · edited 2026-11-25 18:12 UTC 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](https://github.com/RavenCurseBurg/xcl/commit/d2377b8f3c3afbcc5ab099070a0ba391e94de51c) 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.
Author
Owner

@⁠DavidM1911 on GitHub · 2026-11-25 19:28 UTC · original

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

  • cargo test -p xcl --lib: 1038 passed, 1 failed in one parallel run; the failing test passes on a single-threaded rerun (1039/0). Intermittent single-test flake / 0xc0000005 abort under parallel scheduling — tracked in #1978; clean on single-threaded rerun.

Thanks!

**@⁠DavidM1911** on GitHub · 2026-11-25 19:28 UTC · [original](https://github.com/xcl-dev/xcl/pull/2406#issuecomment-7172335599) Verification on RTX 3060 Ti (Windows 11), branch merged with current `main`: - `cargo test -p xcl --lib`: 1038 passed, 1 failed in one parallel run; the failing test passes on a single-threaded rerun (1039/0). Intermittent single-test flake / 0xc0000005 abort under parallel scheduling — tracked in #1978; clean on single-threaded rerun. Thanks!
Author
Owner

@⁠throny on GitHub · 2026-11-26 00:58 UTC · original

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.

**@⁠throny** on GitHub · 2026-11-26 00:58 UTC · [original](https://github.com/xcl-dev/xcl/pull/2406#issuecomment-7179299485) <!-- xcl-1607-hint:D117 --> 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.
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/2406/head:github-bot/gh-2406'
git switch 'github-bot/gh-2406'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-2406'
git switch 'github-bot/gh-2406'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-2406'
git switch 'github-bot/gh-2406'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-2406'
git switch 'main'
git merge --squash 'github-bot/gh-2406'
git switch 'main'
git merge --ff-only 'github-bot/gh-2406'
git switch 'main'
git merge 'github-bot/gh-2406'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.