Run the locally built xcl.exe in PowerShell examples #647

Open
TurGangS wants to merge 1 commit from upstream-pr/652 into main
TurGangS commented 2026-11-24 02:53:52 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by TurGangS on 2026-11-24T02:53:52Z.


After a release build, PowerShell can't find bare xcl on a fresh checkout. The examples can call the executable Cargo just built.

What is in it

  • README.md uses the checkout-relative executable path in all five examples and shows valid PowerShell arguments for run and disasm.

Tested

  • Windows build 26300.9974, i9-14900KF, RTX 4070 Ti (32.0.16.1088), Rust 1.88.0. All five examples parsed in PowerShell. The release executable printed its version and inspected itself successfully.
  • cargo test --release --offline --workspace --no-fail-fast -- --test-threads=4: 680 passed, 0 failed, 41 ignored. Two included passes reported SKIPPED (no wave64): gpu_geometry_wave32_prefix_count_over_a_mask and gpu_wave32_program_in_wave64_hardware.
  • Debug: scripts/test.ps1 stopped after 639 library tests passed, 1 failed and 21 were ignored. xmem_virtual_query_marks_cpu_readable_memory also failed alone in debug and passed in release. A repeat debug library run stalled and was stopped; the remaining targets finished with 40 passed and 20 ignored.

Regression run

  • Documentation only.

Not tested

  • Retail game data and other GPUs.

AI use

  • OpenAI Codex (GPT-6) found the issue, edited the examples, ran the checks and drafted this description.
<!-- greyfinch-sync:ivall/xcl:issue:5465189500 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/652). Originally posted by [TurGangS](https://github.com/TurGangS) on 2026-11-24T02:53:52Z. --- After a release build, PowerShell can't find bare `xcl` on a fresh checkout. The examples can call the executable Cargo just built. **What is in it** - README.md uses the checkout-relative executable path in all five examples and shows valid PowerShell arguments for run and disasm. **Tested** - Windows build 26300.9974, i9-14900KF, RTX 4070 Ti (32.0.16.1088), Rust 1.88.0. All five examples parsed in PowerShell. The release executable printed its version and inspected itself successfully. - `cargo test --release --offline --workspace --no-fail-fast -- --test-threads=4`: 680 passed, 0 failed, 41 ignored. Two included passes reported SKIPPED (no wave64): gpu_geometry_wave32_prefix_count_over_a_mask and gpu_wave32_program_in_wave64_hardware. - Debug: scripts/test.ps1 stopped after 639 library tests passed, 1 failed and 21 were ignored. xmem_virtual_query_marks_cpu_readable_memory also failed alone in debug and passed in release. A repeat debug library run stalled and was stopped; the remaining targets finished with 40 passed and 20 ignored. **Regression run** - Documentation only. **Not tested** - Retail game data and other GPUs. **AI use** - OpenAI Codex (GPT-6) found the issue, edited the examples, ran the checks and drafted this description.
fladit123 commented 2026-11-24 03:57:23 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by fladit123 on 2026-11-24T03:57:23Z.

Review: APPROVED


Independent documentation validation on Windows 11 Pro build 26300.

Tested

  • Exact PR head: 8f737a82a7b7bbf812c09e68aa0c9e5f458d36cf
  • Windows PowerShell 5.1.26100.10068
  • PowerShell 7.6.10

Extracted all five CLI examples directly from README.md on the parent and PR head, then checked them using System.Management.Automation.Language.Parser.ParseInput.

Configuration PS 5.1 PS 7.6.10
Original README 4/5 4/5
Updated README 5/5 5/5

The original disasm example fails on both shells because the < operator is reserved for future use. All five updated examples parse successfully.

The checkout-relative executable paths and CLI arguments are consistent with the documented command interface in main.rs.

The worktree remained clean. No runtime changes.

Not tested: actual execution of the five commands, Rust workspace tests or retail titles. This review is scoped to documentation and PowerShell syntax.

No blocking findings.

AI use: ChatGPT (GPT-6.2) assisted with documentation review, parser validation and reporting. All validation commands were executed locally by me.

<!-- greyfinch-sync:ivall/xcl:review:6033429463 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/652#pullrequestreview-6033429463). Originally posted by [fladit123](https://github.com/fladit123) on 2026-11-24T03:57:23Z. **Review:** APPROVED --- Independent documentation validation on Windows 11 Pro build 26300. **Tested** - Exact PR head: `8f737a82a7b7bbf812c09e68aa0c9e5f458d36cf` - Windows PowerShell 5.1.26100.10068 - PowerShell 7.6.10 Extracted all five CLI examples directly from README.md on the parent and PR head, then checked them using `System.Management.Automation.Language.Parser.ParseInput`. | Configuration | PS 5.1 | PS 7.6.10 | |---|---|---| | Original README | 4/5 | 4/5 | | Updated README | 5/5 | 5/5 | The original disasm example fails on both shells because the `<` operator is reserved for future use. All five updated examples parse successfully. The checkout-relative executable paths and CLI arguments are consistent with the documented command interface in main.rs. The worktree remained clean. No runtime changes. **Not tested:** actual execution of the five commands, Rust workspace tests or retail titles. This review is scoped to documentation and PowerShell syntax. No blocking findings. **AI use:** ChatGPT (GPT-6.2) assisted with documentation review, parser validation and reporting. All validation commands were executed locally by me.
DavidM1911 commented 2026-11-25 13:05:09 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-25T12:31:39Z.


Verification on RTX 3060 Ti (Windows 11): merge conflict with current main — needs a rebase before it can be tested.

<!-- greyfinch-sync:ivall/xcl:comment:7162494580 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/652#issuecomment-7162494580). Originally posted by [DavidM1911](https://github.com/DavidM1911) on 2026-11-25T12:31:39Z. --- Verification on RTX 3060 Ti (Windows 11): **merge conflict with current `main`** — needs a rebase before it can be tested.
github-actions[bot] commented 2026-11-29 07:42:44 +00:00 (Migrated from github.com)

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


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:7252642798 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/652#issuecomment-7252642798). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-11-29T07:42:44Z. --- 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:53:26 +00:00 (Migrated from github.com)

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


Triage (#1607) – head 8f737a8

No open or merged PR makes the same change. #980 rewrites the README as a whole and does not make this fix. Main's quick-start already uses target\release\xcl.exe, but the command block still uses bare xcl.
The PR conflicts with main: the block now has more xcl shaders lines (--precompile, --export-hlsl, --measure-pso), which would also need the path. No problems found in the diff.
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:7300166315 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/652#issuecomment-7300166315). Originally posted by [Foniass](https://github.com/Foniass) on 2026-12-01T03:53:26Z. --- **Triage (#1607)** – head 8f737a8 No open or merged PR makes the same change. #980 rewrites the README as a whole and does not make this fix. Main's quick-start already uses `target\release\xcl.exe`, but the command block still uses bare `xcl`. The PR conflicts with main: the block now has more `xcl shaders` lines (`--precompile`, `--export-hlsl`, `--measure-pso`), which would also need the path. No problems found in the diff. 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/652:upstream-pr/652'
git switch 'upstream-pr/652'

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/652'
git switch 'upstream-pr/652'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/652'
git switch 'upstream-pr/652'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/652'
git switch 'main'
git merge --squash 'upstream-pr/652'
git switch 'main'
git merge --ff-only 'upstream-pr/652'
git switch 'main'
git merge 'upstream-pr/652'
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!647
No description provided.