Scripts: require complete successful smoke runs #2388

Open
github-bot wants to merge 1 commit from github-bot/gh-2388 into main AGit
Owner

@⁠mokkamokacaffe on GitHub · 2026-11-25 17:41 UTC · original
mokkamokacaffe:scripts/require-complete-smoke-blocks → main · +49 −12 · 2 files · 1 commits · draft

The PR checker treated omitted or malformed safety fields as clean values. Removing a crash, device-removal, exit or peak-commit line could therefore turn a failing runtime regression run into an accepted one.

Fixes #2213.

What is in it

  • scripts/pr_check.py: require the PR's smoke block to contain device removals, crashes, exit and peak commit.
  • Parse crash and device-removal counters as complete decimal values.
  • Require the generated peak commit: <number> MB form and reject n/a or malformed values.
  • Require exit: 0x0; killed, crashing and otherwise nonzero exits fail the check.
  • scripts/test_pr_check.py: cover every missing field and malformed counter, memory and exit value.

Tested

  • Python 3.12.14 on Linux: python -I -m unittest discover -s scripts -p "test_*.py" -v — 27 passed, 0 failed.
  • git diff --check: passed.
  • Windows 11, Miniconda 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 8968118: python -m unittest discover -s scripts -t scripts -p "test_pr_check.py" -v — 15 passed, 0 failed in 0.054 s.
  • On that Windows machine, .\scripts\test.ps1: 1215 passed, 5 failed, 26 ignored. The reported pre-existing GPU failures were fuzz_validate_and_gpu_0..3 (CreateComputePipelineState: E_OUTOFMEMORY) and a_bridged_mask_write_where_one_half_is_elsewhere_meets_no_barrier. Reported skips: 13 no-wave64, 3 unsupported wave32 per-lane VOP3-modifier cases, and 1 driver-cache test requiring Windows Developer Mode.
  • 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 scripts/pr_check.py and scripts/test_pr_check.py, not the XCL runtime.

Not tested

  • An all-green workspace test run; the Windows run retained five reported pre-existing GPU failures.
  • A live GitHub Actions pull_request_target execution of the changed checker (the workflow uses the checker from main).
  • AMD or Intel GPUs, other Python versions, and PowerShell variants outside the reported Windows environment.
  • Interaction with the still-open multi-block validation PR #1884; a small rebase may be required if it merges first.

AI use

  • OpenAI Codex with GPT-5 implemented the strict smoke-field validation and regression fixtures, ran the Linux Python suite, reviewed the diff and drafted this description.
**@⁠mokkamokacaffe** on GitHub · 2026-11-25 17:41 UTC · [original](https://github.com/xcl-dev/xcl/pull/2388) `mokkamokacaffe:scripts/require-complete-smoke-blocks` → `main` · +49 −12 · 2 files · 1 commits · draft The PR checker treated omitted or malformed safety fields as clean values. Removing a crash, device-removal, exit or peak-commit line could therefore turn a failing runtime regression run into an accepted one. Fixes #2213. **What is in it** - `scripts/pr_check.py`: require the PR's smoke block to contain `device removals`, `crashes`, `exit` and `peak commit`. - Parse crash and device-removal counters as complete decimal values. - Require the generated `peak commit: <number> MB` form and reject `n/a` or malformed values. - Require `exit: 0x0`; killed, crashing and otherwise nonzero exits fail the check. - `scripts/test_pr_check.py`: cover every missing field and malformed counter, memory and exit value. **Tested** - Python 3.12.14 on Linux: `python -I -m unittest discover -s scripts -p "test_*.py" -v` — **27 passed, 0 failed**. - `git diff --check`: passed. - Windows 11, Miniconda 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 `8968118`: `python -m unittest discover -s scripts -t scripts -p "test_pr_check.py" -v` — **15 passed, 0 failed** in 0.054 s. - On that Windows machine, `.\scripts\test.ps1`: **1215 passed, 5 failed, 26 ignored**. The reported pre-existing GPU failures were `fuzz_validate_and_gpu_0..3` (`CreateComputePipelineState`: `E_OUTOFMEMORY`) and `a_bridged_mask_write_where_one_half_is_elsewhere_meets_no_barrier`. Reported skips: 13 no-wave64, 3 unsupported wave32 per-lane VOP3-modifier cases, and 1 driver-cache test requiring Windows Developer Mode. - 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 `scripts/pr_check.py` and `scripts/test_pr_check.py`, not the XCL runtime. **Not tested** - An all-green workspace test run; the Windows run retained five reported pre-existing GPU failures. - A live GitHub Actions `pull_request_target` execution of the changed checker (the workflow uses the checker from `main`). - AMD or Intel GPUs, other Python versions, and PowerShell variants outside the reported Windows environment. - Interaction with the still-open multi-block validation PR #1884; a small rebase may be required if it merges first. **AI use** - OpenAI Codex with GPT-5 implemented the strict smoke-field validation and regression fixtures, 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)
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 05:29:49 +00:00
Author
Owner

@⁠FIJI1299 on GitHub · 2026-11-25 17:50 UTC · original

Tested commit 8968118 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): 15 passed, 0 failed (0.054s).
  • 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 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 needs Windows Developer Mode: 0x887A002D).
**@⁠FIJI1299** on GitHub · 2026-11-25 17:50 UTC · [original](https://github.com/xcl-dev/xcl/pull/2388#issuecomment-7170070230) Tested commit `8968118` 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`):** **15 passed, 0 failed** (`0.054s`). * **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` 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 needs Windows Developer Mode: `0x887A002D`).
Author
Owner

@⁠DavidM1911 on GitHub · 2026-11-25 19:27 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:27 UTC · [original](https://github.com/xcl-dev/xcl/pull/2388#issuecomment-7172333714) 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

@⁠RavenCurseBurg on GitHub · 2026-11-25 23:36 UTC · original · edited 2026-11-25 23:42 UTC

I tested the interaction listed under Not tested. Merging #1884 at 4056361fac7402a32575a595992813a5b7d7914d into this PR at 89681182b554706b112ab4e89a3d81a9fbc8a837 produced one content conflict in scripts/pr_check.py. The test file merged automatically.

Tested merge with both original parents. It applies this PR’s strict checks to each PR smoke block inside #1884’s loop and retains #1884’s title/duration matching. The added regression puts an incomplete run before and after a valid run. Each parent on its own failed that regression; the combined version passed.

On Windows 11, Core i7-13700, Python 3.14.3, python -B -m unittest discover -s scripts -p "test_*.py" passed 27/27 on this PR and 30/30 on the merge. I also ran the merged scripts/pr_check.py --local --body BODY --head HEAD --files FILES with two titles with different baselines and both orders of main and PR blocks. All 28 cases matched: four clean descriptions passed; each of the other 24 reported its one expected field, exit, frame or memory problem. All inputs were synthetic. Live GitHub Actions and retail smoke runs were outside this check. OpenAI Codex (GPT-6) resolved the conflict, added the fixture and ran the tests.

**@⁠RavenCurseBurg** on GitHub · 2026-11-25 23:36 UTC · [original](https://github.com/xcl-dev/xcl/pull/2388#issuecomment-7177802104) · edited 2026-11-25 23:42 UTC I tested the interaction listed under **Not tested**. Merging #1884 at `4056361fac7402a32575a595992813a5b7d7914d` into this PR at `89681182b554706b112ab4e89a3d81a9fbc8a837` produced one content conflict in `scripts/pr_check.py`. The test file merged automatically. [Tested merge with both original parents](https://github.com/RavenCurseBurg/xcl/commit/2c8ed50ae1c534ed93c62556d08c027c039dfeed). It applies this PR’s strict checks to each PR smoke block inside #1884’s loop and retains #1884’s title/duration matching. The added regression puts an incomplete run before and after a valid run. Each parent on its own failed that regression; the combined version passed. On Windows 11, Core i7-13700, Python 3.14.3, `python -B -m unittest discover -s scripts -p "test_*.py"` passed 27/27 on this PR and 30/30 on the merge. I also ran the merged `scripts/pr_check.py --local --body BODY --head HEAD --files FILES` with two titles with different baselines and both orders of main and PR blocks. All 28 cases matched: four clean descriptions passed; each of the other 24 reported its one expected field, exit, frame or memory problem. All inputs were synthetic. Live GitHub Actions and retail smoke runs were outside this check. OpenAI Codex (GPT-6) resolved the conflict, added the fixture and ran the tests.
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/2388/head:github-bot/gh-2388'
git switch 'github-bot/gh-2388'

Merge

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