launcher: Update Mandy makes a zip copy a git clone, installing Git when it is missing (LAUNCHER-ZIP-TO-CLONE) #3277
Closed
github-bot
wants to merge 1 commit from
gh-pr/3277/head into gh-pr/3277/base
pull from: gh-pr/3277/head
merge into: github:gh-pr/3277/base
github:main
github:perf/darner-title-priority-ceiling
github:gh-readonly-queue/main/pr-3311-b5c45b663dbc5a9c3532bb3f307e5f81b32faefa
github:gh-readonly-queue/main/pr-3088-af22e7847ff5808f72d1a1881c24be2fafd20b54
github:gh-readonly-queue/main/pr-3123-7f3fa026a94c6646e89244f28e1ce22290361867
github:gh-readonly-queue/main/pr-3354-637baa0b77ba47222e7280b17c1a59c6a1781d57
github:gh-readonly-queue/main/pr-3365-d7a0e0196a43834813014b4bd3aa5502a8263b14
github:gh-readonly-queue/main/pr-3361-5dfe8bbd05ed12fb2f2e1718d9af77a7c5f46fd8
github:gh-readonly-queue/main/pr-3366-8da9148204e9d12c585efa9ac2b7cc1ab08c7682
github:fix/runtime-test-conservative-fixtures
github:ci/shard-semantic-linux
github:docs/fg-limit-fps-switch
github:fix/runtime-test-fixture-paths
github:fix/runtime-test-fixture-readers
github:fix/read-file-hard-link
github:fix/book-slot-heap-never-read
github:fix/depth-resolve-spv-path
github:fix/indirect-unused-batched
github:gh-pr/3358/base
github:fix/xmem-refusal-diagnostics
github:gh-pr/3357/base
github:ci/shorten-ci-time
github:fix/alias-later-queued-submissions
github:claude/gallant-sagan-aamatr
github:gh-pr/3342/base
github:gh-pr/3341/base
github:d3d12/agility-sdk-621
github:gh-pr/3293/base
github:gh-pr/3319/base
github:gh-pr/3318/base
github:gh-pr/3315/base
github:gh-pr/3313/base
github:gh-pr/3314/base
github:claude/fervent-curie-m19lnr
github:gh-pr/3216/base
github:gh-pr/3272/base
github:gh-pr/3276/base
github:gh-pr/3279/base
github:gh-pr/3257/base
github:gh-pr/3258/base
github:gh-pr/3271/base
github:codex/skip-no-hit-ray-passes
github:gh-pr/3230/base
github:gh-pr/3266/base
github:gh-pr/3247/base
github:gh-pr/3246/base
github:gh-pr/3244/base
github:claude/sharp-sagan-1jqnp3
github:t3/preserve-fsr-sdk-restart-path
github:t3/propagate-host-failure-hresult
github:t3/launcher-custom-parameters
github:t3/series-x-2160-startup
github:codex/d3d12-uncapped-simulation
github:ci/less-to-run
github:perf/native-compute-shader-forms
github:claude/blissful-franklin-ukp7ag
github:codex/full-precompile-default
github:gh-pr/3166/base
github:gh-pr/3148/base
github:gh-pr/3138/base
github:gh-pr/3106/base
github:gh-pr/3057/base
github:gh-pr/2756/base
github:gh-pr/2812/base
github:gh-pr/3032/base
github:gh-pr/2992/base
github:notes/card-time-and-plant-flicker
github:gh-pr/2986/base
github:gh-pr/3000/base
github:gh-pr/2966/base
github:gh-pr/2924/base
github:gh-pr/726/base
github:gh-pr/2761/base
github:gh-pr/2663/base
github:gh-pr/2861/base
github:gh-pr/2862/base
github:gh-pr/2820/base
github:gh-pr/2811/base
github:gh-pr/2803/base
github:rt-call-trace
github:gh-pr/2802/base
github:gh-pr/2766/base
github:perf/ahead-split
github:gh-pr/2589/base
github:gh-pr/2699/base
github:gh-pr/2696/base
github:docs/readme-runtime-proposal
github:gh-pr/1346/base
github:codex/coord-claim-check-20261124-7e48
No reviewers
Labels
Clear labels
accessibility
Barrier affecting people with disabilities
area: ci
.github/ workflows and settings
area: d3d12
The D3D12 runtime in d3d12/ (Rust: leonida.exe and its crates)
area: docs
Documentation
area: launcher
The launcher (launcher/)
area: runtime (legacy)
The earlier Vulkan runtime in runtime/
area: shader translator
The shader translator (leonida-shader, tools/rdna2spirv) and its tests
area: tools
tools/ and scripts/
area: viewer
The map viewer (viewer/)
bug
Something isn't working
dependencies
Pull requests that update a dependency file
documentation
Improvements or additions to documentation
duplicate
This issue or pull request already exists
enhancement
New feature or request
good first issue
Good for newcomers
help wanted
Extra attention is needed
invalid
This doesn't seem right
missing claim
Needs a claim in #14
needs in-game run
Changes the code a frame runs through: needs the 300 s in-game gate (docs/game_gate.md)
needs rebase
Conflicts with the base branch: rebase it on main
needs-triage
Needs maintainer evaluation before the next triage state
question
Further information is requested
ready-for-agent
Fully specified and ready for an AFK agent
submodules
Pull requests that update submodules code
wontfix
This will not be worked on
No labels
accessibility
area: ci
area: d3d12
area: docs
area: launcher
area: runtime (legacy)
area: shader translator
area: tools
area: viewer
bug
dependencies
documentation
duplicate
enhancement
good first issue
help wanted
invalid
missing claim
needs in-game run
needs rebase
needs-triage
question
ready-for-agent
submodules
wontfix
Milestone
Clear milestone
No items
No milestone
Assignees
Clear assignees
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.
Dependencies
No dependencies set
Reference
github/ubiquitarianism--leonida!3277
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/3277/head"
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?
@OreoFR on GitHub · 2026-12-03 01:55 UTC · original
OreoFR:feat/launcher-zip-to-clone→main· +449 −37 · 7 files · 1 commits · closed without mergingItem: LAUNCHER-ZIP-TO-CLONE (claimed in #2570). A player who downloaded the repository as a zip ran
--updateand got only "This copy was downloaded as a zip: to update from the launcher, use a git clone". The launcher now does that clone itself, in place, and installs Git first when it is missing.What changes
Zip copies get the Update button. The Updates card shows Update Mandy on a zip copy, like on a clone that is behind. The rail reads "Zip copy: press Update Mandy", with an amber dot.
What
--updatedoes on a zip copy (zip_to_clone):git init,origin=https://github.com/ProjectLeonida/mandy.git(the README's), then a fetch ofmainand a localmainthat follows it.git resetsets the index tomainand leaves the files as they are.%LOCALAPPDATA%\Leonida\zip-copy-backup-<date>-<time>. This covers the zip's older version or the player's own edit, which cannot be told apart.main's version is checked out over the tracked files. Untracked files are not touched:d3d12\target, caches,game_path.txt, anything the player added.d3d12/changed (rebuild_if_changed, shared with thegit pullpath)..gitis removed, so the next start finds a zip copy again, never half a clone.git pull --ff-only.Git missing.
winget install --id Git.Git -e --source winget --silent; Windows may ask for permission. The window passes--install-git, and a console run of--updateasks[y/N].find_gitalso looks where Git for Windows putsgit.exe, since the running launcher's PATH is older than the install._gituses it.Texts are translated in de/es/fr/pt.
docs/launcher.mdhas a paragraph on zip copies.Copies that are already zips still run their old launcher. This reaches players from their next zip download, or their next start once the copy is a clone.
Tested
Windows 11, RTX 4070 Laptop (no GPU involved: launcher only).
python -I tests/test_leonida_launcher.py: 93 tests OK onmaind15e048a7plus this commit. New:find_git(PATH, machine and per-user Git for Windows paths, Linux);install_git(winget command, no winget, Linux, winget that installed nothing);run_updateon a zip copy: not allowed or refused → nothing installed or converted;--install-gitor a yes → installed then converted; failed install → nothing converted; Git present → no install;origin/mainwith@{u}=origin/main. The 3 differing files are backed up with their old contents, new files appear, untracked and ignored files are kept, and a laterrun_updatepulls a new commit;.gitand every file as it was.git archiveof an older main (8a9235d02, what a GitHub zip is) plus ad3d12\targetbuild, agame_path.txtand an edit toREADME.md. Converted with this PC's clone as the origin: code 0, HEAD atmaind15e048a7, 28 files backed up (the README edit among them), 33 updated,git statusshowing onlygame_path.txtas untracked, the build kept, about 110 s.--update <folder> --install-git.tests/test_text_write_line_endings.pyOK;scripts/check_no_game_data.pyon the changed files OK;compileallOK.AI-assisted (oreofr-agent, Claude Code).
🤖 Generated with Claude Code
@fiestorra on GitHub · 2026-12-03 01:57 UTC · original
VERIFY-3277 — Windows nativo: la suite del launcher pasa (93)
58566ba88— 7 files, +449/−37Ran at the head
93 is the count
mainhas (87) plus the six this branch adds, and they run in three seconds because the suite never starts the launcher.What the change is, from its own message: "Update Mandy" makes a zip copy a git clone, installing Git when it is missing — a launcher update path that copies a downloaded zip becomes one that clones, with Git installed if it is not there.
What I did not do, and it is the honest part: I ran the suite and not a control. The change is seven files and +449 lines across the update path, and I did not isolate a line to flip in the time I gave it — so what is verified here is that the launcher's tests pass on this head, not that this test would fail if the clone logic were wrong.
And what makes that gap worth naming: "installing Git when it is missing" is the kind of branch that runs once, on a machine without Git, and never in CI — if the suite has a test that fakes the absence, it is the one that matters and it is in the 93; if it does not, this is a path nothing checks.
If the author can point at the test that covers the install branch, I will run it specifically — and if there is none, that is the follow-up I would ask for, before the path ships to someone whose machine has no Git.
@OreoFR on GitHub · 2026-12-03 01:57 UTC · original
Folded into #3272: the maintainer asked for one PR for the launcher's updates. Same commit (cherry-picked as
de2358e0b), with its tests and its Tested section there.@fiestorra on GitHub · 2026-12-03 01:58 UTC · original
I asked you for that test before looking for it — it is there, four of them, and they pass
No need to answer my last question: I went and found it.
The four, by name:
test_git_is_found_where_git_for_windows_installs_it— the path Git for Windows writes to, found without it being onPATH;test_git_is_installed_with_winget_or_the_way_is_said—GIT_WINGETwhenwingetis there, and a sentence when it is not;test_a_zip_copy_without_git_asks_before_installing— the ask, which is the branch I was worried about;test_the_window_passes_install_git—update_command(…, install_git=True), so the window's choice reaches the command.That is the coverage I asked for, and better than what I described as "the one that matters" — it is four cases, not one.
Two things I got wrong on the way there, both mine and both worth the sentence:
Select-String 'def test_.*(git|Git)'took ten seconds, and I spent a paragraph of the last comment asking you to point at something that was in the diff I had already run.FAILED (errors=1)— which was my invocation, not your tests:python tests/test_leonida_launcher.py SomeTestNamemakesunittesttry to importtests.test_leonida_launcher, which is not a package.pytest -kis the way, and it is fourpassedin a third of a second. I would have reported a false red if I had stopped there, which is exactly the shape of mistake I have been correcting in my own comments all night — the third time tonight that a tool's silence looked like a result.So: this pull request is verified as far as this machine goes — 93 tests, the four Git branches among them — and my reservation from the previous comment is withdrawn.
Pull request closed