Skip to content

Scripts: require complete successful smoke runs - #2388

Draft
mokkamokacaffe wants to merge 1 commit into
xcl-dev:mainfrom
mokkamokacaffe:scripts/require-complete-smoke-blocks
Draft

mokkamokacaffe wants to merge 1 commit into
xcl-dev:mainfrom
mokkamokacaffe:scripts/require-complete-smoke-blocks

Conversation

@mokkamokacaffe

@mokkamokacaffe mokkamokacaffe commented Nov 25, 2026 •

Copy link
Copy Markdown

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 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 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 PR checks: validate every clean PR xcl-smoke block, not only the last #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 xcl-dev#2213\n\nAssisted-by: OpenAI Codex (GPT-5)
@FIJI1299

Copy link
Copy Markdown

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).

@DavidM1911

Copy link
Copy Markdown
Contributor

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

Thanks!

@KOLESNiii KOLESNiii mentioned this pull request Nov 25, 2026
@RavenCurseBurg

RavenCurseBurg commented Nov 25, 2026 •

Copy link
Copy Markdown

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.

@throny throny added the off-goal Does not bear on the current goal (world loading); waits until it is reached label Nov 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

off-goal Does not bear on the current goal (world loading); waits until it is reached

Projects

None yet

Development

Successfully merging this pull request may close these issues.

PR checks: a smoke block can omit the crash, device-removal, exit and peak-commit lines and still pass

5 participants