release: v1 pipeline: Mandy Setup (our installer, launcher look, Git + Rust + Build Tools), draft releases (RELEASE-V1-CI-INSTALLER) #3346
Closed
leonida/mandy
OreoFR wants to merge 11 commits from
github-pr/3346 into main
pull from: github-pr/3346
merge into: leonida:main
leonida:main
leonida:github-pr/3295
leonida:beta
leonida:docs/changelog-3483-3500
leonida:github-pr/3294
leonida:github-pr/2975
leonida:github-pr/2815
leonida:feat/gate-driver-start
leonida:feat/skip-pipelines-release
leonida:perf/lazy-compare
leonida:perf/mwaitx-wait
leonida:test/prio-ceiling-main
leonida:fix/ab-cpu-stdout
leonida:fix/gate-old-crashes
leonida:diag/ab-cpu
leonida:test/main-0312
leonida:github-pr/3291
leonida:diag/indirect-clamp-census
leonida:feat/barrier-enhanced
leonida:perf/texture-frame-ceiling
leonida:perf/dstorage-threads
leonida:fix/console-queue-dma-tables
leonida:fix/port-descriptors-record-parts
leonida:fix/frame-waits-fence
leonida:fix/console-sampler-words
leonida:fix/graphics-userdata-spill
leonida:fix/xg-reserved-layout-rotation
leonida:fix/barrier-console-flags
leonida:fix/switches-wait-test-child
leonida:test/list-value-waits
leonida:test/lot-gxdk-0412
leonida:fix/bvh-compacted-size
leonida:docs/i18n-quickstarts
leonida:feat/native-pipeline-slots
leonida:fix/clippy-leonida-gpu
leonida:fix/list-value-producers
leonida:fix/descriptor-page-straddle
leonida:fix/xmem-low-window
leonida:fix/ffx-jitter-never-zero
leonida:fix/run-stdout-closed
leonida:github-pr/2892
leonida:github-pr/2896
leonida:feat/warm-save-every
leonida:github-pr/2980
leonida:github-pr/2994
leonida:github-pr/3005
leonida:github-pr/3010
leonida:github-pr/3136
leonida:github-pr/3303
leonida:github-pr/3220
leonida:github-pr/3143
leonida:github-pr/3330
leonida:github-pr/3226
leonida:github-pr/3187
leonida:carry/3395
leonida:github-pr/2946
leonida:github-pr/2947
leonida:github-pr/2945
leonida:github-pr/2983
leonida:github-pr/3001
leonida:github-pr/3372
leonida:github-pr/3128
leonida:github-pr/3296
leonida:github-pr/2588
leonida:github-pr/3119
leonida:github-pr/3378
leonida:fix/crash-diagnostics
leonida:feat/dlss-mip-bias
leonida:fix/retired-out-of-order
leonida:fix/dxr-postbuild-barrier
leonida:fix/amd-relay-default
leonida:fix/removed-report-wait
leonida:feat/heap-twin
leonida:feat/vram-margin
leonida:github-pr/2472
leonida:github-pr/3123
leonida:github-pr/3088
leonida:assets/annonce-v1
leonida:github-pr/2794
leonida:github-pr/3300
leonida:github-pr/3304
leonida:github-pr/3308
leonida:github-pr/3367
leonida:github-pr/3369
leonida:fix/launcher-dlss-diagnostics
leonida:github-pr/3269
leonida:github-pr/2957
leonida:github-pr/3205
leonida:fix/crash-zero-guard
leonida:github-pr/3185
leonida:github-pr/3099
leonida:github-pr/3104
leonida:github-pr/3348
leonida:github-pr/3379
leonida:github-pr/3377
leonida:perf/darner-title-priority-ceiling
leonida:github-pr/3376
leonida:gh-readonly-queue/main/pr-3311-b5c45b663dbc5a9c3532bb3f307e5f81b32faefa
leonida:gh-readonly-queue/main/pr-3088-af22e7847ff5808f72d1a1881c24be2fafd20b54
leonida:gh-readonly-queue/main/pr-3123-7f3fa026a94c6646e89244f28e1ce22290361867
leonida:github-pr/3373
leonida:github-pr/3368
leonida:github-pr/3198
leonida:gh-readonly-queue/main/pr-3354-637baa0b77ba47222e7280b17c1a59c6a1781d57
leonida:gh-readonly-queue/main/pr-3365-d7a0e0196a43834813014b4bd3aa5502a8263b14
leonida:gh-readonly-queue/main/pr-3361-5dfe8bbd05ed12fb2f2e1718d9af77a7c5f46fd8
leonida:gh-readonly-queue/main/pr-3366-8da9148204e9d12c585efa9ac2b7cc1ab08c7682
leonida:github-pr/3375
leonida:github-pr/2958
leonida:github-pr/3151
leonida:github-pr/3307
leonida:github-pr/3278
leonida:github-pr/3374
leonida:fix/runtime-test-conservative-fixtures
leonida:github-pr/3366
leonida:ci/shard-semantic-linux
leonida:github-pr/3354
leonida:docs/fg-limit-fps-switch
leonida:github-pr/3365
leonida:fix/read-file-hard-link
leonida:github-pr/3364
leonida:fix/book-slot-heap-never-read
leonida:github-pr/3361
leonida:github-pr/3263
leonida:github-pr/3360
leonida:github-pr/3353
leonida:github-pr/3331
leonida:fix/alias-later-queued-submissions
leonida:github-pr/3352
leonida:github-pr/3228
leonida:github-pr/3349
leonida:claude/gallant-sagan-aamatr
leonida:github-pr/3200
leonida:github-pr/3132
leonida:github-pr/3323
leonida:github-pr/3332
leonida:github-pr/3340
leonida:github-pr/3311
leonida:github-pr/3334
leonida:github-pr/3297
leonida:github-pr/3256
leonida:github-pr/2567
leonida:github-pr/2851
leonida:d3d12/agility-sdk-621
leonida:github-pr/3164
leonida:github-pr/3114
leonida:github-pr/3050
leonida:github-pr/3113
leonida:github-pr/3326
leonida:github-pr/3144
leonida:github-pr/2642
leonida:github-pr/3072
leonida:github-pr/2789
leonida:github-pr/2643
leonida:github-pr/3009
leonida:github-pr/3035
leonida:github-pr/3031
leonida:github-pr/2686
leonida:github-pr/2834
leonida:github-pr/3321
leonida:github-pr/3325
leonida:github-pr/3290
leonida:github-pr/3324
leonida:github-pr/3130
leonida:claude/fervent-curie-m19lnr
leonida:github-pr/3309
leonida:github-pr/3305
leonida:github-pr/3306
leonida:github-pr/3302
leonida:github-pr/3301
leonida:github-pr/3345
leonida:github-pr/3211
leonida:github-pr/3027
leonida:github-pr/3286
leonida:github-pr/3235
leonida:github-pr/3265
leonida:github-pr/3275
leonida:codex/skip-no-hit-ray-passes
leonida:github-pr/2823
leonida:github-pr/2911
leonida:github-pr/3262
leonida:github-pr/3125
leonida:github-pr/3206
leonida:github-pr/3250
leonida:github-pr/3238
leonida:github-pr/3188
leonida:github-pr/2952
leonida:github-pr/3217
leonida:github-pr/3168
leonida:t3/preserve-fsr-sdk-restart-path
leonida:t3/propagate-host-failure-hresult
leonida:github-pr/3209
leonida:t3/launcher-custom-parameters
leonida:github-pr/3207
leonida:github-pr/3183
leonida:github-pr/3160
leonida:github-pr/3201
leonida:ci/less-to-run
leonida:github-pr/2930
leonida:github-pr/2797
leonida:github-pr/2999
leonida:perf/native-compute-shader-forms
leonida:github-pr/3191
leonida:github-pr/3011
leonida:github-pr/3019
leonida:github-pr/2996
leonida:gh-readonly-queue/main/pr-2789-45dc41f95c1cd0dcc29c2c50582e0e9af8a77259
leonida:claude/blissful-franklin-ukp7ag
leonida:github-pr/3141
leonida:github-pr/3156
leonida:github-pr/3150
leonida:github-pr/3153
leonida:github-pr/3163
leonida:github-pr/3142
leonida:github-pr/3139
leonida:github-pr/2841
leonida:github-pr/3069
leonida:github-pr/3098
leonida:github-pr/3107
leonida:github-pr/3071
leonida:github-pr/2774
leonida:github-pr/2889
leonida:github-pr/3075
leonida:github-pr/2661
leonida:github-pr/3064
leonida:github-pr/3054
leonida:github-pr/3049
leonida:github-pr/2855
leonida:github-pr/2943
leonida:github-pr/3016
leonida:github-pr/2887
leonida:github-pr/3006
leonida:github-pr/3003
leonida:github-pr/2993
leonida:notes/card-time-and-plant-flicker
leonida:github-pr/2989
leonida:feat/vulkan-rs
leonida:github-pr/2985
leonida:github-pr/2951
leonida:github-pr/2982
leonida:github-pr/752
leonida:github-pr/792
leonida:github-pr/2877
leonida:github-pr/2654
leonida:github-pr/2893
leonida:github-pr/2948
leonida:github-pr/2944
leonida:github-pr/2919
leonida:github-pr/2915
leonida:archive/ci/less-to-run/20261202T1121Z
leonida:github-pr/2800
leonida:github-pr/2822
leonida:github-pr/2833
leonida:github-pr/2840
leonida:github-pr/2831
leonida:github-pr/2832
leonida:github-pr/2801
leonida:github-pr/2890
leonida:github-pr/2891
leonida:github-pr/2664
leonida:github-pr/2807
leonida:rt-call-trace
leonida:github-pr/2755
leonida:perf/ahead-split
leonida:github-pr/2587
leonida:github-pr/2698
leonida:github-pr/2609
leonida:github-pr/3219
leonida:docs/readme-runtime-proposal
leonida:github-pr/2017
leonida:github-pr/1741
leonida:github-pr/1667
leonida:codex/coord-claim-check-20261124-7e48
No reviewers
Assignees
Clear assignees
No assignees
Labels
Clear labels
bug
Something isn't working
dependencies
Pull requests that update a dependency file
documentation
Improvements or additions to documentation
enhancement
New feature or request
missing claim
Needs a claim in #14
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
No labels
bug
dependencies
documentation
enhancement
missing claim
needs rebase
needs-triage
question
ready-for-agent
submodules
Projects
Clear projects
No items
No project
Milestone
Clear milestone
No items
No milestone
Dependencies
No dependencies set
Notifications
2 participants
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".
No due date set.
Reference
leonida/mandy!3346
Loading…
Reference in a new issue
No description provided.
Delete branch "github-pr/3346"
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?
Pull request closed
Please reopen this pull request to perform a merge.
Item: RELEASE-V1-CI-INSTALLER (claimed in #3312). Pairs with #3348 (LAUNCHER-EXE-PREBUILT). Depends on: #3348 for
tools/mandy_deps.py(see below).What this does
A tag
v*(or a manual run with an existing tag) builds Mandy Setup and attaches it to a draft release. A maintainer reads the draft and publishes it; the workflow never publishes.The one asset is
Mandy-Setup-<tag>.exe. No runtime is released: the launcher buildsleonida.exeon the player's PC, with DLSS on NVIDIA cards (NVIDIA's DLSS library may not be redistributed), so the runtime always matches the code on the PC.Mandy Setup: our own installer, in the launcher's look
tools/mandy_setup.py, frozen with PyInstaller (--onefile) around the frozen launcher (zipped inside). Inno Setup is gone. It is one window in the launcher's colours, fonts and gradient pill, translated like the launcher (en, fr, es, pt, de):Install folder:
%LOCALAPPDATA%\Programs\Mandywith a Change button. Per user, no administrator rights for Mandy itself.Desktop shortcut: ticked by default. Mandy always goes in the Start menu. Both shortcuts carry Mandy's icon and the launcher's AppUserModelID (
ProjectLeonida.Mandy). An existingMandy.lnkthat starts something else is left alone.What this PC needs, found live: Git (new: Update Mandy and the first-run clone need it), Rust and the C++ Build Tools. Each is installed with winget, without a console window, and its output goes to a "Show details" log. Only the Build Tools ask Windows for admin rights. A tool that does not install is shown in red and does not fail the install: the launcher offers it again.
Installed-apps entry:
HKCU\Software\Microsoft\Windows\CurrentVersion\Uninstall\Mandy. Its uninstall (Mandy-Setup.exe --uninstall) removes:It never touches the game folder.
Launch Mandy at the end, with the PATH the newly installed tools added.
Preview:
python -I tools/mandy_setup.py --preview(with--preview-missingand--preview-start) shows the window with a pretend install that changes nothing.Shared with the launcher:
tools/mandy_deps.pyThe probes (Git, cargo, vswhere with
-prerelease), the winget plan, the shortcut writer (with AppUserModelID) andpng_to_icocome from #3348's shared module, so the Setup and the launcher look in the same places and install the same packages.The file is copied as is from #3348's head
bd465fb02, identical byte for byte. That keeps this PR's CI green on its own, and the identical file merges away whichever PR lands first. The release icon is now made withpng_to_ico(standard library), so Pillow is no longer installed in CI. Both PyInstaller bundles carrytools/mandy_deps.py.Checks
packaging/windows/check_release_assets.pyruns on the installer and every file of the frozen launcher before the draft is created: no game-data format, no SDK library (DLSS, Streamline, FidelityFX, Agility).Tested
tests/test_mandy_setup.py: 27 tests, 1 skipped (APP_ID equality with the launcher, skipped until #3348 is in). They cover:tests/test_release_pipeline.py: 19 OK. Also OK:test_leonida_launcher,test_docs_links,test_docs_cli_flags,test_text_write_line_endings,check_no_game_data.The installer is unsigned: SmartScreen shows "More info → Run anyway" (see
packaging/windows/README.md).AI-assisted (oreofr-agent).
🤖 Generated with Claude Code
Without winget (official installers)
When winget is absent (debloated Windows, LTSC, no Store), Git, Rust and the C++ Build Tools are installed from their official installers instead: Git for Windows' latest 64-bit installer (GitHub API),
rustup-init.exeandvs_BuildTools.exe(run elevated). Before running, Git and the Build Tools must have a Valid Authenticode signature from Johannes Schindelin and Microsoft Corporation respectively.rustup-init.exeis not Authenticode-signed (checked on the downloaded file), so it is verified against the SHA-256 rust-lang publishes next to it. A refused file is deleted and not run. Shared code intools/mandy_deps.py(byte-identical in #3346 and #3348). Tests mock the network, the signature check and the runner.All 28 release-pipeline tests passed on
8bff45c4. I found one tool-discovery mismatch in the new DLSS task.CargoPresentinpackaging/windows/mandy.iss:120only checks%USERPROFILE%\.cargo\bin\cargo.exe. After #3342, the build also accepts Cargo onPATHor in%CARGO_HOME%\bin. With a synthetic Cargo stub only in a custom Cargo home, the checked-in build script onacb0657e2reached Cargo while the installer’s file check was false. Since the task is preselected on NVIDIA systems, this sends an already usable Rust setup through the winget install path. Could the installer recognize the custom Cargo home andPATHbefore attempting that install?The installer’s
vswherecall also omits-prerelease, which the build-tool preflight in #3187 uses for Visual Studio Preview/Insiders. Aligning the probes would avoid offering the Build Tools again for a layout that the build preflight accepts. I exercised the Cargo decision with a local stub and checked thevswherearguments from source.AI-assisted with OpenAI Codex.
Thanks, both fixed in ef10f31987c187d609bade03d00f72fda1963025.
CargoPresentnow probes wherebuild-nvidia.ps1finds cargo (#3342):FileSearch('cargo.exe', GetEnv('PATH')), then%CARGO_HOME%\bin\cargo.exe, then%USERPROFILE%\.cargo\bin\cargo.exe.vswheretakes-prerelease, as the build preflight in #3187 does.tests/test_release_pipeline.py(BuildTools.test_each_tool_is_skipped_when_present); 27 tests OK.The same commit also follows OreoFR's change of plan:
Mandy-Setup-<tag>.exe. The runtime is always built on the PC, with DLSS on NVIDIA cards.🤖 Addressed by Claude Code
Test of the release pipeline on a fork (RTX 4070 Laptop, Windows 11). Tags
v0.0.0-test1totest3were pushed on the author's fork only; every run made a draft release, and all of them are deleted.b22d7e832) publishes onlyMandy-Setup-<tag>.exe, 11.4 MB. The first run'sleonida.exesha256 matched its.sha256file andbuild-info.json./SILENTwith a log:mandy.pngpath, and one AppUserModelID shared by the shortcuts and the window.AI-assisted (oreofr-agent).
Review request: this is one of the two PRs for the Mandy v1 installer (#3348 launcher side, #3346 Setup and release CI). @merzleckeier and @fiestorra, could you take a look when you have time? You already reviewed the earlier pieces (#3310 is folded into #3348).
What changed since your last look is in the PR body. The shared
tools/mandy_deps.pyis byte-identical in both PRs. A full install, launch and uninstall run from a fork build is coming, and I'll post it here.AI-assisted (oreofr-agent).
I reviewed #3346 at
7eece312together with #3348 at8d01e4caandmainat717b9023. The merge is clean and both heads carry the samemandy_deps.pyblob. I found two install/uninstall blockers and a Linux test failure.tools/mandy_setup.py:866accepts an existing folder namedMandy. Installation keeps unrelated files in it, butuninstall_targetsat line 489 hands that entire tree tormtree, even with “Also delete my Mandy folder” unchecked. In a temporary fixture, a file present before installation survived the install and was deleted on uninstall. Restrict removal to installer-owned files, or reject an existing nonempty folder unless it is a verified installation.uninstall_mainignores the failed paths returned byuninstall(), deletes the Installed Apps entry, and returns 0. I simulated a file-in-use error: the install directory remained, the registry deletion was called, and the command returned 0. The interactive worker also clears the entry on partial failure. Keeping the registration until removal succeeds would let the user retry from Installed Apps.test_ours_is_replaceduppercases a temporary POSIX path, but the code deliberately uses the host’s case rules. The adjacent uninstall fixture already changes path case only on Windows. The installer suite had 42 passes and one failure.All 19 release-pipeline tests passed. The combined launcher suite still reports the Windows-PATH failure from my #3348 review. I used temporary files and stubbed Windows integration. The frozen installer was not run. Review assisted by OpenAI Codex.
Revisión pedida: aplica limpia y sus cinco suites pasan, y el dato que más importa de la pareja está confirmado
Medido sobre el
mainde ahora (717b90233):Y la afirmación de la PR que se puede comprobar en un comando, comprobada:
tools/mandy_deps.pyes byte-idéntico entre#3346y#3348—Lo que eso implica para el orden de fusión, y es lo único que le falta a la pareja: las dos PRs añaden ese fichero, así que la segunda que se fusione va a chocar en él aunque el contenido sea el mismo. Lo comprobé:
#3346y luego#3348da conflicto enmandy_deps.py(además delauncher.mdy los cuatroi18n), y el bloque es el mismodark_title_barque las dos añaden. La resolución es descartar el lado duplicado, porque es literalmente el mismo blob — pero hay que hacerlo, y es el paso que puede parecer un conflicto real y no lo es.Lo que no he verificado: que
Mandy-Setup-<tag>.exese construya y se adjunte al release (necesita un tagv*y Actions) ni el instalador en sí (es un.exede Windows y aquí no hay nada que lo ejecute con un usuario real). Lo que sí: que aplica sobre elmainde hoy, que sus tests pasan, y que el fichero compartido con#3348es el mismo.I checked the merge-order concern with two sequential Git merges from
717b9023. Both #3346 (7eece312) then #3348 (8d01e4ca) and the reverse order succeeded without conflicts and produced the same tree93f32e0e. Both retainedmandy_deps.pyat blob70531ab9. This checks the PR heads as they would be merged. Individual cherry-picks can have different intermediate states. AI-assisted with OpenAI Codex.Follow-up on #3346
3dfd5fceand #334845b0b6df, tested together on09273248. The two merge orders produce the same tree8f2e7295. All 56 Setup tests and all 19 release-pipeline tests passed on Linux, including the shortcut case comparison.os.makedirsintools/mandy_deps.py:260raisesPermissionErroroutside the direct-install error handling. The worker emits only thestartevent, then exits without a failure or completion event. Reporting a local-file failure through the existing dependency status path would let the UI finish and offer retry.ask_build_toolsprompt withfind_winget()returningNone. The banner already explains the direct-installer path; using that information in the PLAY prompt would make the two offers agree.Both uninstall cases in my earlier review still reproduce on the new Setup head. The existing Linux PATH fixture also still fails in the combined launcher suite. This follow-up used temporary files and a simulated filesystem error. I did not download or run the Windows installers. AI-assisted with OpenAI Codex.
Closing: superseded by #3382, a revised version of the same 12 files.