Scripts: compare D3D12.X observations against a baseline #566

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

@⁠wileyGray on GitHub · 2026-11-24 01:54 UTC · original
wileyGray:codex/d3d12-triage-baseline → main · +545 −0 · 5 files · 2 commits · open

Stacked on #557; only the top commit belongs here.

Add --baseline and opt-in --fail-on-new to detect newly observed D3D12.X slot/IID identities. Counts, caller changes and disappearing observations do not imply compatibility changes. An invalid baseline retains current evidence and returns an error.

What is in it

  • Exact slot/canonical IID comparison, preserving current findings.
  • Gate exits: 0 unchanged identities, 1 new identities, 2 incomplete evidence/input errors; incomplete evidence takes precedence.
  • Nine additional regressions (24 total), docs and README usage. Top commit: four files, 161 additions, 8 removals.

Tested

  • Rebased head 61abda9ce0f413db3d6adfa1540700f5b25c3032 on main b7aa9f3. Windows 11 Home build 26300; Intel i9-14900K; NVIDIA RTX 4080 SUPER driver 32.0.16.2114; Rust 1.93.0, DXC 1.9.2609.5, Python 3.13.9; debug build.
  • python -B -m unittest discover -s scripts -p test_triage_d3d12.py -v: 24 passed, 0 failed/skipped.
  • scripts/test.ps1 (build + standard four-thread suite): 770 passed, 0 failed, 41 ignored; synthetic console-title e2e passed.
  • Passing totals include 4 GPU/debug skips and 33 sample-gated early returns, excluded from executed coverage; all XCL_SAMPLE_* unset.
  • Previous parallel initialization stalls did not recur after rebasing onto main, which includes #443's fix for #344.
  • Missing comparison API fails the new tests; invalid-baseline regressions ensure current evidence survives. git diff --check: clean.

Regression run

  • Not required: scripts and documentation only.

Not tested

  • Upstream CI still needs maintainer approval before jobs run.
  • Retail data/gameplay and AMD/Intel adapters.
  • Comparable title/version/workload/backend selection is the caller's responsibility. comparison.complete means no recognized parser warnings, not a final report or complete execution coverage.

AI use

  • Codex (GPT-6; exact variant unavailable) implemented/reviewed the change, wrote tests, ran validation and drafted this description.
**@⁠wileyGray** on GitHub · 2026-11-24 01:54 UTC · [original](https://github.com/xcl-dev/xcl/pull/566) `wileyGray:codex/d3d12-triage-baseline` → `main` · +545 −0 · 5 files · 2 commits · open Stacked on #557; only the top commit belongs here. Add `--baseline` and opt-in `--fail-on-new` to detect newly observed D3D12.X slot/IID identities. Counts, caller changes and disappearing observations do not imply compatibility changes. An invalid baseline retains current evidence and returns an error. **What is in it** - Exact slot/canonical IID comparison, preserving current findings. - Gate exits: 0 unchanged identities, 1 new identities, 2 incomplete evidence/input errors; incomplete evidence takes precedence. - Nine additional regressions (24 total), docs and README usage. Top commit: four files, 161 additions, 8 removals. **Tested** - Rebased head `61abda9ce0f413db3d6adfa1540700f5b25c3032` on main `b7aa9f3`. Windows 11 Home build 26300; Intel i9-14900K; NVIDIA RTX 4080 SUPER driver 32.0.16.2114; Rust 1.93.0, DXC 1.9.2609.5, Python 3.13.9; debug build. - `python -B -m unittest discover -s scripts -p test_triage_d3d12.py -v`: 24 passed, 0 failed/skipped. - `scripts/test.ps1` (build + standard four-thread suite): 770 passed, 0 failed, 41 ignored; synthetic console-title e2e passed. - Passing totals include 4 GPU/debug skips and 33 sample-gated early returns, excluded from executed coverage; all XCL_SAMPLE_* unset. - Previous parallel initialization stalls did not recur after rebasing onto main, which includes #443's fix for #344. - Missing comparison API fails the new tests; invalid-baseline regressions ensure current evidence survives. `git diff --check`: clean. **Regression run** - Not required: scripts and documentation only. **Not tested** - Upstream CI still needs maintainer approval before jobs run. - Retail data/gameplay and AMD/Intel adapters. - Comparable title/version/workload/backend selection is the caller's responsibility. `comparison.complete` means no recognized parser warnings, not a final report or complete execution coverage. **AI use** - Codex (GPT-6; exact variant unavailable) implemented/reviewed the change, wrote tests, ran validation and drafted this description.
Recover unknown-slot and IID evidence from report.json or matching first-call logs. Preserve layout variants and callers without counting log lines as additional calls. Add synthetic regressions and Windows CI coverage.

Assisted-by: Codex (GPT-6; exact variant unavailable)
Identify newly observed slot and IID identities without treating count or caller changes as missing interfaces. Add an opt-in CI gate that rejects incomplete evidence, and preserve current findings if a baseline cannot be used.

Assisted-by: Codex (GPT-6; exact variant unavailable)
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:25:55 +00:00
Author
Owner

@⁠chaseb64 on GitHub · 2026-11-25 05:26 UTC · original

I found two ways malformed input can get a clean --fail-on-new result at 61abda9. A duplicate key can hide an IID, and an unused bare NaN, Infinity or -Infinity is accepted as JSON.

Save this as baseline.json:

{"called_stubs":[],"d3d12":{"unknown_iids":[]}}

Save each of these as current.json in turn:

{"called_stubs":[],"d3d12":{"unknown_iids":["12345678-1234-5678-9abc-123456789abc"],"unknown_iids":[]}}
{"called_stubs":[],"d3d12":{"unknown_iids":[]},"unused":NaN}

Run python3 scripts/triage_d3d12.py current.json --baseline baseline.json --fail-on-new --json for each file. Both runs exit 0 and report comparison.complete: true. The invalid number also reproduces with the files swapped.

I can share the two locally prepared and tested patches. They return exit 2 for malformed input while retaining usable current findings or falling back to the supplied log. All 26 triage tests passed on macOS arm64 and Python 3.9.6. With the #557 correction also applied, all 43 discovered Python tests passed, including 27 triage tests.

AI-assisted using OpenAI Codex (GPT-6.2 Sol and GPT-6.2 Astra for implementation, independent review and verification, and GPT-6 Luna for prior combined validation).

**@⁠chaseb64** on GitHub · 2026-11-25 05:26 UTC · [original](https://github.com/xcl-dev/xcl/pull/566#issuecomment-7153769459) I found two ways malformed input can get a clean `--fail-on-new` result at `61abda9`. A duplicate key can hide an IID, and an unused bare `NaN`, `Infinity` or `-Infinity` is accepted as JSON. Save this as `baseline.json`: ```json {"called_stubs":[],"d3d12":{"unknown_iids":[]}} ``` Save each of these as `current.json` in turn: ```text {"called_stubs":[],"d3d12":{"unknown_iids":["12345678-1234-5678-9abc-123456789abc"],"unknown_iids":[]}} {"called_stubs":[],"d3d12":{"unknown_iids":[]},"unused":NaN} ``` Run `python3 scripts/triage_d3d12.py current.json --baseline baseline.json --fail-on-new --json` for each file. Both runs exit 0 and report `comparison.complete: true`. The invalid number also reproduces with the files swapped. I can share the two locally prepared and tested patches. They return exit 2 for malformed input while retaining usable current findings or falling back to the supplied log. All 26 triage tests passed on macOS arm64 and Python 3.9.6. With the #557 correction also applied, all 43 discovered Python tests passed, including 27 triage tests. AI-assisted using OpenAI Codex (GPT-6.2 Sol and GPT-6.2 Astra for implementation, independent review and verification, and GPT-6 Luna for prior combined validation).
Author
Owner

@⁠DavidM1911 on GitHub · 2026-11-25 13:18 UTC · original

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

  • cargo test -p xcl --lib: all passed, 0 failed, ~26 ignored. (Intermittent single-test flake / 0xc0000005 abort under parallel scheduling — tracked in #1978; clean on single-threaded rerun.)

Thanks!

**@⁠DavidM1911** on GitHub · 2026-11-25 13:18 UTC · [original](https://github.com/xcl-dev/xcl/pull/566#issuecomment-7163590820) Verification on RTX 3060 Ti (Windows 11), branch merged with current `main`: - `cargo test -p xcl --lib`: all passed, 0 failed, ~26 ignored. (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 17:06 UTC · original · edited 2026-11-25 17:10 UTC

Windows CLI check on 61abda9ce0f413db3d6adfa1540700f5b25c3032. python -B -m unittest discover -s scripts -p test_triage_d3d12.py passed all 24 tests.

I also ran nine independent comparisons with python -I scripts/triage_d3d12.py current.json --baseline baseline.json --fail-on-new --json and temporary UTF-8 BOM inputs.

  • An existing slot changed from 4 to 55 calls and changed caller, another slot disappeared, and the same IID was written with different case/braces. Exit 0, no new identities. The current evidence still included the updated count and caller.
  • Across all six orderings of three current records, adding one variant at the same slot index plus one IID gave exit 1 and identical parsed JSON. Two matching log entries added the log as a source without increasing the report count of 2.
  • Removing the gate flag gave exit 0 and the same comparison. Requesting a missing log alongside the new identities gave exit 2, complete: false and a diagnostic, while preserving the new slot in the JSON.

The input hashes stayed unchanged on every invocation. Windows 11 26100.9711, i7-13700, RTX 4060, Python 3.14.3. Synthetic observations only; no title, GPU workload, or Rust suite. OpenAI Codex (GPT-6) ran the checks and prepared this report.

**@⁠RavenCurseBurg** on GitHub · 2026-11-25 17:06 UTC · [original](https://github.com/xcl-dev/xcl/pull/566#issuecomment-7169004484) · edited 2026-11-25 17:10 UTC Windows CLI check on `61abda9ce0f413db3d6adfa1540700f5b25c3032`. `python -B -m unittest discover -s scripts -p test_triage_d3d12.py` passed all 24 tests. I also ran nine independent comparisons with `python -I scripts/triage_d3d12.py current.json --baseline baseline.json --fail-on-new --json` and temporary UTF-8 BOM inputs. - An existing slot changed from 4 to 55 calls and changed caller, another slot disappeared, and the same IID was written with different case/braces. Exit 0, no new identities. The current evidence still included the updated count and caller. - Across all six orderings of three current records, adding one variant at the same slot index plus one IID gave exit 1 and identical parsed JSON. Two matching log entries added the log as a source without increasing the report count of 2. - Removing the gate flag gave exit 0 and the same comparison. Requesting a missing log alongside the new identities gave exit 2, `complete: false` and a diagnostic, while preserving the new slot in the JSON. The input hashes stayed unchanged on every invocation. Windows 11 26100.9711, i7-13700, RTX 4060, Python 3.14.3. Synthetic observations only; no title, GPU workload, or Rust suite. OpenAI Codex (GPT-6) ran the checks and prepared this report.
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/566/head:github-bot/gh-566'
git switch 'github-bot/gh-566'

Merge

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