Scripts: add a developer launcher with saved presets #1490
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/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?
Imported from ivall/xcl. Originally posted by S33G on 2026-11-24T16:59:53Z.
The 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.
Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-24T18:53:39Z.
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!
Imported from ivall/xcl. Originally posted by RavenCurseBurg on 2026-11-25T21:07:36Z.
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.Imported from ivall/xcl. Originally posted by S33G on 2026-11-25T23:46:34Z.
This is super cool! nice idea
Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-26T05:40:24Z.
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
Imported from ivall/xcl. Originally posted by luckyteagirl on 2026-11-26T10:48:12Z.
Review: COMMENTED
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.
Imported from ivall/xcl. Originally posted by github-actions[bot] on 2026-12-01T02:34:12Z.
Nothing has happened on this PR for 3 days, so it is marked
staleand will be closed in 4 days. A push or a comment takes the mark off: rebase it ontomainif it conflicts, and say in one line what it still fixes. If it only waits for a maintainer, a comment saying so is enough.Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T05:56:14Z.
Triage (#1607) – head
c5bcd72No open or merged PR adds a GUI developer launcher; #1399 adds .env-based run/precompile scripts, which is a different tool.
No functional problems found in scripts/xcl-launcher.ps1. Scope: the PR also edits AGENTS.md (agent instructions), which the launcher does not need, and the hard-coded option catalog in scripts/xcl-launcher-options.ps1 will drift from the runtime's env vars as they change.
Recommendation: keep open.
AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.
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.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.