Scripts: add a developer launcher with saved presets #1500
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
goal:world-load
good first issue
help wanted
invalid
keep-open
off-goal
question
stale
test-only
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/xcl-dev--xcl!1500
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1500"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@S33G on GitHub · 2026-11-24 16:59 UTC · original
S33G:codex/developer-launcher→main· +495 −0 · 7 files · 2 commits · openThe Windows developer launcher makes debug runs repeatable. Choose an XCL build and an unpacked title on first launch, then reuse those paths and named presets. The launcher runs the existing
xcl runcommand with the selected options.What is in it
-Launch -Preset Debugging -Options @{ XCL_THREAD_DUMP_AT = '15,45' }.Tested
2fb898don Ryzen 9 7900X3D, GeForce RTX 3090, NVIDIA 610.88, Windows 11 build 26100.9974, Rust 1.100.0 MSVC.cargo build --workspace --release --locked --offline --target-dir <fresh directory>succeeded. The resulting executable reportedxcl 0.1.0.cargo build --workspace --locked --offlinesucceeded.cargo test --workspace --locked --offline -- --test-threads=4 --nocapturereported 770 passed, 0 failed, and 41 ignored. The passed count includes two explicit skips for lack of wave64 hardware,gpu_geometry_wave32_prefix_count_over_a_maskandgpu_wave32_program_in_wave64_hardware.scripts/test-launcher.ps1successfully. It checked quoted paths, child-only options, clearing an option, remembered locations, and custom preset loading. The form loaded 70 runtime options. Its first-launch state, search, and Debugging preset application were checked in Windows PowerShell 5.1.Not tested
AI use
Vibe coded with love.
@DavidM1911 on GitHub · 2026-11-24 18:53 UTC · original
Verification on RTX 3060 Ti (Windows 11), branch merged with current
main:cargo test -p xcl --lib: all passed, 0 failed, ~21 ignored. (Intermittent single-test flake / 0xc0000005 abort under parallel scheduling; clean on single-threaded rerun — same flake seen on unmodifiedmain.)Thanks!
@S33G on GitHub · 2026-11-25 23:46 UTC · original
This is super cool! nice idea
@RavenCurseBurg on GitHub · 2026-11-25 21:07 UTC · original · edited 2026-11-26 11:48 UTC
On
c5bcd7279efc58c32d2e89bb68212e4b34702406, the launcher, option catalog and upstream test are byte-identical to the versions in my previous run. I reran the earlier test-only follow-up (c36418f) against the current launcher and catalog in Windows PowerShell 5.1. Its headless native fixture passed, including failed-child exit propagation and reapplying the saved preset. WinForms was not exercised. Windows 11, Core i7-13700; OpenAI Codex (GPT-6) ran the check.Earlier verification
Tested the headless launcher on
2fb898d1cd5d0dfff65c6401bfcae6af74e3e588. Windows 11 build 26100.9711, Core i7-13700, Windows PowerShell 5.1 and PowerShell 7.6.9. All settings were under a temporaryLOCALAPPDATA.I ran
scripts/xcl-launcher.ps1 -Launch -Preset 'Short trace' -Options @{ XCL_THREAD_DUMP_AT = ''; XCL_TRACE_FAULTS = '1' }against a small executable. Both shells propagated its exit 37 and the child saw the cleared option and the explicit flag. A subsequent-Launchreused those effective values. Reapplying-Preset 'Short trace'restored the saved3,6setting and cleared the flag. Both retries exited 0, the child received the expected path containing brackets and a space, and the caller's variables stayed unchanged.The test-only follow-up adds the failed launch and preset reapplication to the existing fixture.
powershell.exe -NoProfile -ExecutionPolicy Bypass -File scripts/test-launcher.ps1passed. In two disposable copies, the new assertions caught a launcher that hard-coded exit 0 and one that modified the saved preset while applying overrides.Not tested — WinForms, a game launch, the Rust workspace or GPU work. OpenAI Codex (GPT-6) wrote the test and fixtures, ran the checks, and prepared this report.
Follow-up on the data-directory review. I reproduced the mismatch on
c5bcd7279efc58c32d2e89bb68212e4b34702406by putting a directory with the same relative name under both the checkout and the selected executable’s folder. The button callback picked the checkout copy while a native stand-in launched by-Launchresolved the executable-side copy.Candidate 3c6491308 makes the callback resolve the directory from the selected build. In Windows PowerShell 5.1 and PowerShell 7.6.9, the callback and the native child agreed for ordinary relative paths, a parent segment, rooted and drive-relative paths, absolute paths and the default. A missing or invalid executable produced a diagnostic before opening anything for a relative root. Absolute and default roots still worked without an executable selection.
I ran the actual button script block with
Invoke-Itemintercepted and exercised the script’s real process launch with a native path probe. There were 19 passing checks per shell on the candidate.powershell.exe -NoProfile -NonInteractive -File scripts/test-launcher.ps1also passed. Windows 11 build 26100, Core i7-13700. OpenAI Codex (GPT-6) prepared the patch and ran the fixtures. No interactive WinForms session, Explorer window, retail title or GPU test was used.@DavidM1911 on GitHub · 2026-11-26 05:40 UTC · original
Re-verification on RTX 3060 Ti (Windows 11), new head merged with current
main:cargo test -p xcl --lib: all passed, 0 failed, 27 ignored. The earlier merge conflict is resolved.Thanks!
— Devin
@luckyteagirl on GitHub · 2026-11-26 10:48 UTC · original · reviewed
On
c5bcd7279efc58c32d2e89bb68212e4b34702406, a relativeXCL_DATA_ROOTmakes the new Open XCL data... button look in a different place from the launched XCL process.Start-TitlesetsProcessStartInfo.WorkingDirectoryto the selectedxcl.exedirectory withUseShellExecute = $false; XCL'sdata_root()returns the relative env path unchanged. The button instead passes that same relative value toTest-PathandInvoke-Itemin the launcher's PowerShell working directory. For example, when launched from the checkout withxcl.exeundertarget\releaseandXCL_DATA_ROOT=relative-state, XCL usestarget\release\relative-statebut the button checkscheckout\relative-state. Could the button resolve relative data roots against the selected executable's directory (and handle an invalid executable selection) before opening them? I checked the exact-head source and path resolution; I did not exercise the WinForms button end to end.AI use: OpenAI Codex (GPT-6.2 Sol) found the path mismatch; OpenAI Codex (GPT-6.2 Astra) verified it against source and the documented .NET working-directory behavior and wrote this review.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.