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

Open
wileyGray wants to merge 2 commits from upstream-pr/566 into main
wileyGray commented 2026-11-24 01:54:03 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by wileyGray on 2026-11-24T01:54:03Z.


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.
<!-- greyfinch-sync:ivall/xcl:issue:5464581831 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/566). Originally posted by [wileyGray](https://github.com/wileyGray) on 2026-11-24T01:54:03Z. --- 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.
chaseb64 commented 2026-11-25 06:05:49 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by chaseb64 on 2026-11-25T05:26:15Z.


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

<!-- greyfinch-sync:ivall/xcl:comment:7153769459 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/566#issuecomment-7153769459). Originally posted by [chaseb64](https://github.com/chaseb64) on 2026-11-25T05:26:15Z. --- 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).
DavidM1911 commented 2026-11-25 14:09:57 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-25T13:18:37Z.


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!

<!-- greyfinch-sync:ivall/xcl:comment:7163590820 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/566#issuecomment-7163590820). Originally posted by [DavidM1911](https://github.com/DavidM1911) on 2026-11-25T13:18:37Z. --- 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!
RavenCurseBurg commented 2026-11-25 17:07:36 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by RavenCurseBurg on 2026-11-25T17:06:04Z.


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.

<!-- greyfinch-sync:ivall/xcl:comment:7169004484 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/566#issuecomment-7169004484). Originally posted by [RavenCurseBurg](https://github.com/RavenCurseBurg) on 2026-11-25T17:06:04Z. --- 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.
github-actions[bot] commented 2026-11-29 07:44:00 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by github-actions[bot] on 2026-11-29T07:44:00Z.


Nothing has happened on this PR for 3 days, so it is marked stale and will be closed in 4 days. A push or a comment takes the mark off: rebase it onto main if it conflicts, and say in one line what it still fixes. If it only waits for a maintainer, a comment saying so is enough.

<!-- greyfinch-sync:ivall/xcl:comment:7252656049 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/566#issuecomment-7252656049). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-11-29T07:44:00Z. --- Nothing has happened on this PR for 3 days, so it is marked `stale` and will be closed in 4 days. A push or a comment takes the mark off: rebase it onto `main` if it conflicts, and say in one line what it still fixes. If it only waits for a maintainer, a comment saying so is enough.
Foniass commented 2026-12-01 03:43:46 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T03:43:46Z.


Triage (#1607) – head 61abda9

Stacked on #557: only the top commit (--baseline / --fail-on-new) belongs here, so the shared lines with #557 are not a duplicate.
It inherits #557's SLOT regex gap: main's D3D12.X stub names ID3D12PipelineState(console)::#i, ID3D12GraphicsCommandList(console)::#i and (stand-in) do not match and add a warning. Here that matters more: compare raises on any baseline with a warning, so --baseline fails (exit 2) for every report that contains a console-list stub.
Recommendation: keep open.

AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.

<!-- greyfinch-sync:ivall/xcl:comment:7300004221 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/566#issuecomment-7300004221). Originally posted by [Foniass](https://github.com/Foniass) on 2026-12-01T03:43:46Z. --- **Triage (#1607)** – head 61abda9 Stacked on #557: only the top commit (`--baseline` / `--fail-on-new`) belongs here, so the shared lines with #557 are not a duplicate. It inherits #557's `SLOT` regex gap: main's D3D12.X stub names `ID3D12PipelineState(console)::#i`, `ID3D12GraphicsCommandList(console)::#i` and `(stand-in)` do not match and add a warning. Here that matters more: `compare` raises on any baseline with a warning, so `--baseline` fails (exit 2) for every report that contains a console-list stub. Recommendation: keep open. AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/566:upstream-pr/566'
git switch 'upstream-pr/566'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'upstream-pr/566'
git switch 'upstream-pr/566'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/566'
git switch 'upstream-pr/566'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/566'
git switch 'main'
git merge --squash 'upstream-pr/566'
git switch 'main'
git merge --ff-only 'upstream-pr/566'
git switch 'main'
git merge 'upstream-pr/566'
git push origin 'main'
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
xcl-dev/xcl!561
No description provided.