Skip to content

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

Open
wileyGray wants to merge 2 commits into
xcl-dev:mainfrom
wileyGray:codex/d3d12-triage-baseline
Open

wileyGray wants to merge 2 commits into
xcl-dev:mainfrom
wileyGray:codex/d3d12-triage-baseline

Conversation

@wileyGray

@wileyGray wileyGray commented Nov 24, 2026 •

Copy link
Copy Markdown

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 D3D12.X: the sparse state is replaced outside its lock #443's fix for D3D12.X: replacing the sparse state deadlocks when the old state still holds placed buffers #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)
@wileyGray
wileyGray force-pushed the codex/d3d12-triage-baseline branch from c2ec45f to 61abda9 Compare November 24, 2026 17:00
@wileyGray
wileyGray marked this pull request as ready for review November 24, 2026 17:01
@ivall ivall added the off-goal Does not bear on the current goal (world loading); waits until it is reached label Nov 24, 2026
@chaseb64

Copy link
Copy Markdown

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

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.

3 participants