docs: distinguish local and CI SPIR-V bridge checks #1220

Merged
nanyoudegege merged 1 commit from upstream-pr/1227 into main 2026-11-24 04:38:01 +00:00
nanyoudegege commented 2026-11-24 04:25:35 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by nanyoudegege on 2026-11-24T04:25:35Z.


Problem

The contributor guide calls the SPIR-V bridge checks required alongside the ordinary local pr preset commands. The preset selects them, but a local run can skip them when the tools are missing. Hosted CI installs the pinned tools, sets strict mode and checks the WARP JUnit results.

Change

Explain the difference in CONTRIBUTING.md and point contributors to the pinned tool setup and the strict-mode PowerShell setting. No commands, fixtures, scripts or workflows change.

Verification

At base 4919b51a86aa764135b9bd88b80d5f8fb49a218c, inspected the Windows workflow, CMake registrations and setup script. On cloud Linux, ran python3 -B tests/spirv_window/run_bridge_test.py no-driver.py SPIRV_WINDOW_AS-NOTFOUND SPIRV_WINDOW_VAL-NOTFOUND SPIRV_WINDOW_CROSS-NOTFOUND dxc.exe offscreen.exe warp on a temporary copy using only synthetic missing-path placeholders. It returned 77 with the strict variable unset and 1 with X2W_REQUIRE_SPIRV_TOOLS=1, without invoking the driver. The linked script exists at the base commit and git diff --check passed. No native Windows or GPU tests were run for this docs-only change.

AI-assisted (ChatGPT/Codex).

<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:6574593027 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/1227). Originally posted by [nanyoudegege](https://github.com/nanyoudegege) on 2026-11-24T04:25:35Z. --- ### Problem The contributor guide calls the SPIR-V bridge checks required alongside the ordinary local `pr` preset commands. The preset selects them, but a local run can skip them when the tools are missing. Hosted CI installs the pinned tools, sets strict mode and checks the WARP JUnit results. ### Change Explain the difference in `CONTRIBUTING.md` and point contributors to the pinned tool setup and the strict-mode PowerShell setting. No commands, fixtures, scripts or workflows change. ### Verification At base `4919b51a86aa764135b9bd88b80d5f8fb49a218c`, inspected the Windows workflow, CMake registrations and setup script. On cloud Linux, ran `python3 -B tests/spirv_window/run_bridge_test.py no-driver.py SPIRV_WINDOW_AS-NOTFOUND SPIRV_WINDOW_VAL-NOTFOUND SPIRV_WINDOW_CROSS-NOTFOUND dxc.exe offscreen.exe warp` on a temporary copy using only synthetic missing-path placeholders. It returned 77 with the strict variable unset and 1 with `X2W_REQUIRE_SPIRV_TOOLS=1`, without invoking the driver. The linked script exists at the base commit and `git diff --check` passed. No native Windows or GPU tests were run for this docs-only change. AI-assisted (ChatGPT/Codex).
upstream-sync closed this pull request 2026-11-24 06:47:05 +00:00
tedin7 commented 2026-11-24 06:47:05 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-24T04:38:50Z.

Review: COMMENTED


Reviewed commit 4d1c117f on Linux (x86_64, Python 3.12 with iced-x86 and pefile). Docs-only change; no Windows build/tests were run locally.

Audit

  • CONTRIBUTING.md: accurately distinguishes local ctest --preset pr --no-tests=error runs (where SPIR-V bridge checks can skip if tools are missing) from hosted CI (X2W_REQUIRE_SPIRV_TOOLS: '1' in .github/workflows/windows.yml and tests/spirv_window/run_bridge_test.py).
  • Verified tools/setup-spirv-tools.ps1 exists and the PowerShell instructions (.\tools\setup-spirv-tools.ps1 + $env:X2W_REQUIRE_SPIRV_TOOLS = '1') match the workflow/script behavior.

Checks Run Locally (Linux)

  • /root/.local/share/x2w-rev-venv/bin/python -B tests/docs_links_check.py: passed (self-test passed; 16 Markdown files, 278 links)
  • /root/.local/share/x2w-rev-venv/bin/python -B tests/bidi_controls_check.py: passed (self-test passed; 1034 tracked files)
  • /root/.local/share/x2w-rev-venv/bin/python -B tests/form_coverage_check.py: passed
  • /root/.local/share/x2w-rev-venv/bin/python -B tests/hardware_reports_check.py: 12/12 passed, 0 skipped, 0 failed
  • /root/.local/share/x2w-rev-venv/bin/python -B tests/gpu_report_format_check.py: 10/10 passed, 0 skipped, 0 failed
  • git diff --check HEAD~1..HEAD: passed
<!-- greyfinch-sync:R0Y00/Xbox2Windows:review:6033725693 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/1227#pullrequestreview-6033725693). Originally posted by [tedin7](https://github.com/tedin7) on 2026-11-24T04:38:50Z. **Review:** COMMENTED --- Reviewed commit `4d1c117f` on Linux (`x86_64`, Python 3.12 with `iced-x86` and `pefile`). Docs-only change; no Windows build/tests were run locally. ### Audit - `CONTRIBUTING.md`: accurately distinguishes local `ctest --preset pr --no-tests=error` runs (where SPIR-V bridge checks can skip if tools are missing) from hosted CI (`X2W_REQUIRE_SPIRV_TOOLS: '1'` in `.github/workflows/windows.yml` and `tests/spirv_window/run_bridge_test.py`). - Verified `tools/setup-spirv-tools.ps1` exists and the PowerShell instructions (`.\tools\setup-spirv-tools.ps1` + `$env:X2W_REQUIRE_SPIRV_TOOLS = '1'`) match the workflow/script behavior. ### Checks Run Locally (Linux) - `/root/.local/share/x2w-rev-venv/bin/python -B tests/docs_links_check.py`: passed (self-test passed; 16 Markdown files, 278 links) - `/root/.local/share/x2w-rev-venv/bin/python -B tests/bidi_controls_check.py`: passed (self-test passed; 1034 tracked files) - `/root/.local/share/x2w-rev-venv/bin/python -B tests/form_coverage_check.py`: passed - `/root/.local/share/x2w-rev-venv/bin/python -B tests/hardware_reports_check.py`: 12/12 passed, 0 skipped, 0 failed - `/root/.local/share/x2w-rev-venv/bin/python -B tests/gpu_report_format_check.py`: 10/10 passed, 0 skipped, 0 failed - `git diff --check HEAD~1..HEAD`: passed
chatgpt-codex-connector[bot commented 2026-11-24 06:50:19 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by chatgpt-codex-connector[bot] on 2026-11-24T04:25:45Z.


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-24T04:27:14.214908Z 4d1c117 PR opened
ℹ️ 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:7122010207 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/1227#issuecomment-7122010207). Originally posted by [chatgpt-codex-connector[bot]](https://github.com/chatgpt-codex-connector%5Bbot%5D) on 2026-11-24T04:25:45Z. --- <!-- codex-pull-request-review-summary --> <!-- codex-review-state:v1 {"code_review":{"commit_sha":"4d1c117f557644f977736b06779352c772d3011c","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-24T04:27:14.214908Z">2026-11-24T04:27:14.214908Z</relative-time> | `4d1c117` | PR opened | <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!1220
No description provided.