fix: launch the VIctory executable reported by Cargo #315
No reviewers
Labels
No labels
accessibility
bloqué : binaire console
bug
chargeur
console-dll
cpu
documentation
duplicate
enhancement
good first issue
gpu
help wanted
invalid
performance
question
runtime-gdk
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/LooperSalty--AnyXboxX!315
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-315"
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?
@mauroalvare on GitHub · 2026-11-26 02:30 UTC · original
mauroalvare:codex/launcher-cargo-artifact→main· +106 −8 · 5 files · 3 commits · openChange
A successful Cargo build can leave
anyxboxx runlooking forvictory.exein the wrong directory.CARGO_BUILD_TARGET_DIRchanges the output root andCARGO_BUILD_TARGETadds a target-triple component.Use the executable from Cargo's
compiler-artifactmessage for warm, precompile, and run. The build must report exactly one VIctory binary, and the reported path must exist. Cargo diagnostics stay on stderr, and the launcher reads paths directly from UTF-8 JSON. Cargo artifact messagesVerification
Rebased on
c41c224.cargo build --locked --offline -j 5 --release -p anyxboxxpassed.python -m pytest -q -rs tests/test_lanceur_victory.py tests/test_anyxboxx_run.pypassed all 31 tests with the release launcher. The fixture exercises paths containing spaces and accents, decoy library artifacts, and zero or multiple binary artifacts.python -m ruff check --select W605,F,E9 PrototypeScarlett tests toolspassed.For an end-to-end check with Cargo 1.98.1,
anyxboxx run --warmbuilt a temporary Rust crate namedvictorywithCARGO_BUILD_TARGET=x86_64-pc-windows-msvcand aCARGO_BUILD_TARGET_DIRpath containing spaces and an accent. Both warm and run reached the reported executable in release and diag, including Cargo cache hits. The inputs were synthetic.Investigation, implementation and verification were assisted by OpenAI Codex.
@LooperSalty on GitHub · 2026-11-26 14:01 UTC · original
This PR now conflicts with main in
tests/test_lanceur_victory.py(other launcher PRs changed the same test module). Please rebase on main, keep the tests of both sides, runpython -m pytest tests/test_lanceur_victory.pyand force-push your branch.🤖 Generated with Claude Code
042bcf1dedto0f0fd50063@mauroalvare on GitHub · 2026-11-26 18:25 UTC · original
I rebased and moved the fix to
anyxboxx run. Warm and launch now use the single executable reported by Cargo, with a clear error if Cargo reports zero or multiple matches.All 31 launcher tests passed. I also verified release and diag with real Cargo, a custom output directory containing a space and an accent, and an explicit target triple. Both cold builds and cache hits launched the synthetic executable.
The latest CI run passed.
0f0fd50063to4e041b756e4e041b756eto9c36f0fd2cView 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.