tools: count Device::slot133 placements by outcome #1690

Merged
tedin7 merged 2 commits from upstream-pr/1697 into main 2026-11-24 17:44:25 +00:00
tedin7 commented 2026-11-24 17:19:44 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-24T17:19:44Z.


Handled Device::slot133(CreatePlacedResourceX?) lines end in aliased|not aliased gpuva=... (buffers) or not aliased [...] (textures), not in the HRESULT, so triage_run.py counted every one as an unhandled slot. In the #870 report that was 3,406 of 3,554 events. The ABI note on slot 133 (placed resource at a title address, handled in d3d12_xs_device.cpp) traces this to the classifier, not to a gap in the stand-in.

Change:

  • tools/startup/triage_run.py: a slot 133 line with -> 0x00000000 is counted in a new table by outcome (aliased, not_aliased) and no longer counts as unhandled. A line with any other HRESULT, or the "not committed -> E_INVALIDARG" line, is counted as failed and still counts as an unhandled Device::slot133 event. The table only appears when there are slot 133 lines, and it holds fixed tokens only (no addresses, no GPU addresses).
  • tests/startup_triage_run_check.py: a log with an aliased success, a not-aliased success, a failure 0x80070057, a texture success, an uncommitted address and one unrelated unhandled slot. Expected: outcomes 1 / 2 / 2, unhandled 2 (slot 133 failures) + 1 (other slot). Control: with the slot 133 rules switched off, the same log counts all five slot 133 lines as unhandled.
  • docs/startup-runtime.md: one paragraph in the triage section.

Verification:

  • Linux (python3 -I -B):
    • python3 -I -B tests/startup_triage_run_check.py: 0 failed.
    • python3 -I -B tests/docs_links_check.py: 17 Markdown files, 364 links, passed.
    • python3 -I -B tests/bidi_controls_check.py: 1287 files, passed.
    • git diff --check origin/main...HEAD: clean.
    • Mutation check (if norm_hr == "0x00000000": -> if True:): tests/startup_triage_run_check.py fails (exit 1, 3 failed), plus 5 single-change mutations (rule removed, failed HRESULT counted as success, failure not counted as an outcome, not-aliased merged into aliased, uncommitted-address rule removed) each fail with exit 1.
    • git merge-tree against #1598: 0 conflicts.
  • Windows Server 2025 (Build 26100, MSVC 14.44.35207 + D3D12 WARP) at commit df97a04bd8dbc57cbef85ead9d6f6d7c051aa80e:
    • Debug (--preset dev): ctest --preset dev -R '^startup_triage_run$' --parallel 4 --no-tests=error --output-on-failure -> 1/1 passed (0.26s).
    • Release /O2 (--preset release): ctest --preset release -R '^startup_triage_run$' --parallel 4 --no-tests=error --output-on-failure -> 1/1 passed (0.29s).

Not covered: no raw #870 log, so the real aliased / not-aliased / failed split is not known yet; this PR makes it countable.

AI-assisted; commands listed were executed locally.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:6587456293 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/1697). Originally posted by [tedin7](https://github.com/tedin7) on 2026-11-24T17:19:44Z. --- Handled `Device::slot133(CreatePlacedResourceX?)` lines end in `aliased|not aliased gpuva=...` (buffers) or `not aliased [...]` (textures), not in the HRESULT, so `triage_run.py` counted every one as an unhandled slot. In the #870 report that was 3,406 of 3,554 events. The ABI note on slot 133 (placed resource at a title address, handled in `d3d12_xs_device.cpp`) traces this to the classifier, not to a gap in the stand-in. Change: - `tools/startup/triage_run.py`: a slot 133 line with `-> 0x00000000` is counted in a new table by outcome (`aliased`, `not_aliased`) and no longer counts as unhandled. A line with any other HRESULT, or the "not committed -> E_INVALIDARG" line, is counted as `failed` and still counts as an unhandled `Device::slot133` event. The table only appears when there are slot 133 lines, and it holds fixed tokens only (no addresses, no GPU addresses). - `tests/startup_triage_run_check.py`: a log with an aliased success, a not-aliased success, a failure `0x80070057`, a texture success, an uncommitted address and one unrelated unhandled slot. Expected: outcomes 1 / 2 / 2, unhandled 2 (slot 133 failures) + 1 (other slot). Control: with the slot 133 rules switched off, the same log counts all five slot 133 lines as unhandled. - `docs/startup-runtime.md`: one paragraph in the triage section. Verification: - Linux (`python3 -I -B`): - `python3 -I -B tests/startup_triage_run_check.py`: 0 failed. - `python3 -I -B tests/docs_links_check.py`: 17 Markdown files, 364 links, passed. - `python3 -I -B tests/bidi_controls_check.py`: 1287 files, passed. - `git diff --check origin/main...HEAD`: clean. - Mutation check (`if norm_hr == "0x00000000":` -> `if True:`): `tests/startup_triage_run_check.py` fails (exit 1, 3 failed), plus 5 single-change mutations (rule removed, failed HRESULT counted as success, failure not counted as an outcome, not-aliased merged into aliased, uncommitted-address rule removed) each fail with exit 1. - `git merge-tree` against `#1598`: 0 conflicts. - Windows Server 2025 (Build 26100, MSVC 14.44.35207 + D3D12 WARP) at commit `df97a04bd8dbc57cbef85ead9d6f6d7c051aa80e`: - Debug (`--preset dev`): `ctest --preset dev -R '^startup_triage_run$' --parallel 4 --no-tests=error --output-on-failure` -> **1/1 passed** (`0.26s`). - Release `/O2` (`--preset release`): `ctest --preset release -R '^startup_triage_run$' --parallel 4 --no-tests=error --output-on-failure` -> **1/1 passed** (`0.29s`). Not covered: no raw #870 log, so the real aliased / not-aliased / failed split is not known yet; this PR makes it countable. AI-assisted; commands listed were executed locally.
upstream-sync closed this pull request 2026-11-24 18:02:36 +00:00
chatgpt-codex-connector[bot commented 2026-11-24 18:02:58 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by chatgpt-codex-connector[bot] on 2026-11-24T17:34:15Z.


Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-24T17:37:20.804937Z df97a04 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7139391156 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/1697#issuecomment-7139391156). Originally posted by [chatgpt-codex-connector[bot]](https://github.com/chatgpt-codex-connector%5Bbot%5D) on 2026-11-24T17:34:15Z. --- <!-- codex-pull-request-review-summary --> <!-- codex-review-state:v1 {"code_review":{"commit_sha":"df97a04bd8dbc57cbef85ead9d6f6d7c051aa80e","has_any_findings":false,"has_unresolved_findings":false,"status":"completed"},"security_review":{"commit_sha":null,"has_any_findings":null,"has_unresolved_findings":null,"status":null}} --> <details> <summary><strong>Codex Review Summary</strong>: ✅ Completed</summary> This comment shows the latest Codex review activity on this pull request. | Review | Status | Commit | Review trigger | | --- | --- | --- | --- | | 📝 **Code Review** | ✅ **Completed** <relative-time datetime="2026-11-24T17:37:20.804937Z">2026-11-24T17:37:20.804937Z</relative-time> | `df97a04` | Draft marked ready | <details> <summary>ℹ️ About Codex in GitHub</summary> <br/> [Your team has set up Codex to review pull requests in this repo](https://chatgpt.com/codex/cloud/settings/general). Reviews are triggered when you - Open a pull request for review - Mark a draft as ready - Comment "@codex review" or "@codex security review". Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. </details> </details>
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
R0Y00/Xbox2Windows!1690
No description provided.