release: v1 pipeline: Mandy Setup (our installer, launcher look, Git + Rust + Build Tools), draft releases (RELEASE-V1-CI-INSTALLER) #3346

Open
OreoFR wants to merge 11 commits from upstream-pr/3346 into main
OreoFR commented 2026-12-03 15:00:47 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by OreoFR on 2026-12-03T15:00:47Z.


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 builds leonida.exe on 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\Mandy with 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 existing Mandy.lnk that 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:

    • the install folder;
    • our shortcuts;
    • the entry itself;
    • the launcher's own folder (repo, settings), only when that box is ticked.

    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-missing and --preview-start) shows the window with a pretend install that changes nothing.

Shared with the launcher: tools/mandy_deps.py

The probes (Git, cargo, vswhere with -prerelease), the winget plan, the shortcut writer (with AppUserModelID) and png_to_ico come 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 with png_to_ico (standard library), so Pillow is no longer installed in CI. Both PyInstaller bundles carry tools/mandy_deps.py.

Checks

packaging/windows/check_release_assets.py runs 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:
    • the shared probes and that a broken probe counts as "not found";
    • the install plan;
    • winget failures not failing the install;
    • zip extraction (including a path-traversal refusal);
    • the registry values;
    • shortcut placement: ours replaced, someone else's kept, the uninstall taking only ours;
    • the icon from png;
    • the palette matching the launcher;
    • every text in every language.
  • 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 window rendered in preview on Windows 11 (fr), in three states: tools present, tools missing, pretend install finished.
  • Not run here: the frozen build and a real install. A fork test build follows; earlier fork builds of the Inno version installed cleanly on an RTX 4070 PC.

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.exe and vs_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.exe is 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 in tools/mandy_deps.py (byte-identical in #3346 and #3348). Tests mock the network, the signature check and the runner.

<!-- greyfinch-sync:ubiquitarianism/leonida:issue:5629039828 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3346). Originally posted by [OreoFR](https://github.com/OreoFR) on 2026-12-03T15:00:47Z. --- **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 builds `leonida.exe` on 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\Mandy` with 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 existing `Mandy.lnk` that 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: - the install folder; - our shortcuts; - the entry itself; - the launcher's own folder (repo, settings), only when that box is ticked. 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-missing` and `--preview-start`) shows the window with a pretend install that changes nothing. ## Shared with the launcher: `tools/mandy_deps.py` The probes (Git, cargo, vswhere with `-prerelease`), the winget plan, the shortcut writer (with AppUserModelID) and `png_to_ico` come 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 with `png_to_ico` (standard library), so Pillow is no longer installed in CI. Both PyInstaller bundles carry `tools/mandy_deps.py`. ## Checks `packaging/windows/check_release_assets.py` runs 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: - the shared probes and that a broken probe counts as "not found"; - the install plan; - winget failures not failing the install; - zip extraction (including a path-traversal refusal); - the registry values; - shortcut placement: ours replaced, someone else's kept, the uninstall taking only ours; - the icon from png; - the palette matching the launcher; - every text in every language. - `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 window rendered in preview on Windows 11 (fr), in three states: tools present, tools missing, pretend install finished. - **Not run here:** the frozen build and a real install. A fork test build follows; earlier fork builds of the Inno version installed cleanly on an RTX 4070 PC. The installer is unsigned: SmartScreen shows "More info → Run anyway" (see `packaging/windows/README.md`). AI-assisted (oreofr-agent). 🤖 Generated with [Claude Code](https://claude.com/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.exe` and `vs_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.exe` is 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 in `tools/mandy_deps.py` (byte-identical in #3346 and #3348). Tests mock the network, the signature check and the runner.
merzleckeier commented 2026-12-03 15:07:52 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by merzleckeier on 2026-12-03T15:07:52Z.


All 28 release-pipeline tests passed on 8bff45c4. I found one tool-discovery mismatch in the new DLSS task. CargoPresent in packaging/windows/mandy.iss:120 only checks %USERPROFILE%\.cargo\bin\cargo.exe. After #3342, the build also accepts Cargo on PATH or in %CARGO_HOME%\bin. With a synthetic Cargo stub only in a custom Cargo home, the checked-in build script on acb0657e2 reached 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 and PATH before attempting that install?

The installer’s vswhere call 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 the vswhere arguments from source.

AI-assisted with OpenAI Codex.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7382613905 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3346#issuecomment-7382613905). Originally posted by [merzleckeier](https://github.com/merzleckeier) on 2026-12-03T15:07:52Z. --- All 28 release-pipeline tests passed on `8bff45c4`. I found one tool-discovery mismatch in the new DLSS task. `CargoPresent` in `packaging/windows/mandy.iss:120` only checks `%USERPROFILE%\.cargo\bin\cargo.exe`. After #3342, the build also accepts Cargo on `PATH` or in `%CARGO_HOME%\bin`. With a synthetic Cargo stub only in a custom Cargo home, the checked-in build script on `acb0657e2` reached 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 and `PATH` before attempting that install? The installer’s `vswhere` call 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 the `vswhere` arguments from source. AI-assisted with OpenAI Codex.
OreoFR commented 2026-12-03 15:40:41 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by OreoFR on 2026-12-03T15:40:41Z.


Thanks, both fixed in ef10f31987.

  • CargoPresent now probes where build-nvidia.ps1 finds cargo (#3342): FileSearch('cargo.exe', GetEnv('PATH')), then %CARGO_HOME%\bin\cargo.exe, then %USERPROFILE%\.cargo\bin\cargo.exe.
  • vswhere takes -prerelease, as the build preflight in #3187 does.
  • Both are pinned in 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:

  • The release now holds only Mandy-Setup-<tag>.exe. The runtime is always built on the PC, with DLSS on NVIDIA cards.
  • The build tools are a fixed step for every card and in silent installs. The NVIDIA-only task is gone; WMI's card list is only logged.

🤖 Addressed by Claude Code

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7383547889 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3346#issuecomment-7383547889). Originally posted by [OreoFR](https://github.com/OreoFR) on 2026-12-03T15:40:41Z. --- Thanks, both fixed in ef10f31987c187d609bade03d00f72fda1963025. - `CargoPresent` now probes where `build-nvidia.ps1` finds cargo (#3342): `FileSearch('cargo.exe', GetEnv('PATH'))`, then `%CARGO_HOME%\bin\cargo.exe`, then `%USERPROFILE%\.cargo\bin\cargo.exe`. - `vswhere` takes `-prerelease`, as the build preflight in #3187 does. - Both are pinned in `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: - The release now holds only `Mandy-Setup-<tag>.exe`. The runtime is always built on the PC, with DLSS on NVIDIA cards. - The build tools are a fixed step for every card and in silent installs. The NVIDIA-only task is gone; WMI's card list is only logged. _🤖 Addressed by [Claude Code](https://claude.com/claude-code)_
OreoFR commented 2026-12-03 15:49:06 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by OreoFR on 2026-12-03T15:49:06Z.


Test of the release pipeline on a fork (RTX 4070 Laptop, Windows 11). Tags v0.0.0-test1 to test3 were pushed on the author's fork only; every run made a draft release, and all of them are deleted.

  • Workflow: green on all three runs. The last run (with #3348 at b22d7e832) publishes only Mandy-Setup-<tag>.exe, 11.4 MB. The first run's leonida.exe sha256 matched its .sha256 file and build-info.json.
  • Installer, /SILENT with a log:
    • per-user install, no administrator rights;
    • the log reads "NVIDIA GPU detected: yes";
    • the build-tools step ran, and Rust and the C++ Build Tools were skipped as already present, so winget installed nothing;
    • Setup.exe, Mandy.exe, the desktop and Start-menu shortcuts and the uninstall entry all carry the Mandy icon.
  • Fixed during the test, in both PRs: the bundled mandy.png path, and one AppUserModelID shared by the shortcuts and the window.
  • Uninstall: removes the folder, both shortcuts and the uninstall entry.
  • Launcher: Mandy.exe starts from the installed copy and opens a window titled "Mandy".
  • Not tested:
    • the interactive Setup task page;
    • the launcher's first-run page, Help page and PLAY with the local DLSS build, because UI control of the window was not available in this run.

AI-assisted (oreofr-agent).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7383783243 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3346#issuecomment-7383783243). Originally posted by [OreoFR](https://github.com/OreoFR) on 2026-12-03T15:49:06Z. --- **Test of the release pipeline on a fork** (RTX 4070 Laptop, Windows 11). Tags `v0.0.0-test1` to `test3` were pushed on the author's fork only; every run made a draft release, and all of them are deleted. - **Workflow:** green on all three runs. The last run (with #3348 at `b22d7e832`) publishes only `Mandy-Setup-<tag>.exe`, 11.4 MB. The first run's `leonida.exe` sha256 matched its `.sha256` file and `build-info.json`. - **Installer, `/SILENT` with a log:** - per-user install, no administrator rights; - the log reads "NVIDIA GPU detected: yes"; - the build-tools step ran, and Rust and the C++ Build Tools were skipped as already present, so winget installed nothing; - Setup.exe, Mandy.exe, the desktop and Start-menu shortcuts and the uninstall entry all carry the Mandy icon. - **Fixed during the test, in both PRs:** the bundled `mandy.png` path, and one AppUserModelID shared by the shortcuts and the window. - **Uninstall:** removes the folder, both shortcuts and the uninstall entry. - **Launcher:** Mandy.exe starts from the installed copy and opens a window titled "Mandy". - **Not tested:** - the interactive Setup task page; - the launcher's first-run page, Help page and PLAY with the local DLSS build, because UI control of the window was not available in this run. _AI-assisted (oreofr-agent)._
OreoFR commented 2026-12-03 16:47:01 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by OreoFR on 2026-12-03T16:47:01Z.


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.py is 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).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7385440258 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3346#issuecomment-7385440258). Originally posted by [OreoFR](https://github.com/OreoFR) on 2026-12-03T16:47:01Z. --- 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.py` is 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)._
merzleckeier commented 2026-12-03 16:55:13 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by merzleckeier on 2026-12-03T16:55:13Z.


I reviewed #3346 at 7eece312 together with #3348 at 8d01e4ca and main at 717b9023. The merge is clean and both heads carry the same mandy_deps.py blob. I found two install/uninstall blockers and a Linux test failure.

  1. Uninstall removes unrelated files in an accepted install folder. tools/mandy_setup.py:866 accepts an existing folder named Mandy. Installation keeps unrelated files in it, but uninstall_targets at line 489 hands that entire tree to rmtree, 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.
  2. Quiet uninstall reports success on partial failure. At line 615, uninstall_main ignores the failed paths returned by uninstall(), 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.
  3. The shortcut test fails on Linux. test_ours_is_replaced uppercases 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.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7385666656 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3346#issuecomment-7385666656). Originally posted by [merzleckeier](https://github.com/merzleckeier) on 2026-12-03T16:55:13Z. --- I reviewed #3346 at `7eece312` together with #3348 at `8d01e4ca` and `main` at `717b9023`. The merge is clean and both heads carry the same `mandy_deps.py` blob. I found two install/uninstall blockers and a Linux test failure. 1. **Uninstall removes unrelated files in an accepted install folder.** `tools/mandy_setup.py:866` accepts an existing folder named `Mandy`. Installation keeps unrelated files in it, but `uninstall_targets` at line 489 hands that entire tree to `rmtree`, 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. 2. **Quiet uninstall reports success on partial failure.** At line 615, `uninstall_main` ignores the failed paths returned by `uninstall()`, 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. 3. **The shortcut test fails on Linux.** `test_ours_is_replaced` uppercases 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](https://github.com/ProjectLeonida/mandy/pull/3348#issuecomment-7384823119). I used temporary files and stubbed Windows integration. The frozen installer was not run. Review assisted by OpenAI Codex.
fiestorra commented 2026-12-03 16:57:16 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by fiestorra on 2026-12-03T16:57:16Z.


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 main de ahora (717b90233):

8 commits · cherry-pick del rango: exit 0, sin conflicto
12 files changed, +2788/−1

tests/test_mandy_setup.py        42 passed, 1 skipped
tests/test_release_pipeline.py   19 passed
tests/test_leonida_launcher.py  144 passed
tests/test_win_launchers.py      14 passed, 6 subtests
tests/test_bug_report_info.py    32 passed, 21 subtests

Y la afirmación de la PR que se puede comprobar en un comando, comprobada: tools/mandy_deps.py es byte-idéntico entre #3346 y #3348 —

#3346  70531ab9d1b2336d2f166c4e233c0260c79d49e5
#3348  70531ab9d1b2336d2f166c4e233c0260c79d49e5
idénticos: True

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é: #3346 y luego #3348 da conflicto en mandy_deps.py (además de launcher.md y los cuatro i18n), y el bloque es el mismo dark_title_bar que 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>.exe se construya y se adjunte al release (necesita un tag v* y Actions) ni el instalador en sí (es un .exe de Windows y aquí no hay nada que lo ejecute con un usuario real). Lo que sí: que aplica sobre el main de hoy, que sus tests pasan, y que el fichero compartido con #3348 es el mismo.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7385722383 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3346#issuecomment-7385722383). Originally posted by [fiestorra](https://github.com/fiestorra) on 2026-12-03T16:57:16Z. --- ## 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 `main` de ahora (`717b90233`)**: ``` 8 commits · cherry-pick del rango: exit 0, sin conflicto 12 files changed, +2788/−1 tests/test_mandy_setup.py 42 passed, 1 skipped tests/test_release_pipeline.py 19 passed tests/test_leonida_launcher.py 144 passed tests/test_win_launchers.py 14 passed, 6 subtests tests/test_bug_report_info.py 32 passed, 21 subtests ``` **Y la afirmación de la PR que se puede comprobar en un comando, comprobada**: **`tools/mandy_deps.py` es byte-idéntico entre `#3346` y `#3348`** — ``` #3346 70531ab9d1b2336d2f166c4e233c0260c79d49e5 #3348 70531ab9d1b2336d2f166c4e233c0260c79d49e5 idénticos: True ``` **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é: `#3346` y luego `#3348` da conflicto en `mandy_deps.py` (además de `launcher.md` y los cuatro `i18n`), y el bloque es el mismo `dark_title_bar` que 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>.exe` se construya y se adjunte al *release*** (**necesita un tag `v*` y Actions**) **ni el instalador en sí** (**es un `.exe` de Windows y aquí no hay nada que lo ejecute con un usuario real**). **Lo que sí: que aplica sobre el `main` de hoy, que sus tests pasan, y que el fichero compartido con `#3348` es el mismo.**
merzleckeier commented 2026-12-03 16:58:51 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by merzleckeier on 2026-12-03T16:58:51Z.


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 tree 93f32e0e. Both retained mandy_deps.py at blob 70531ab9. This checks the PR heads as they would be merged. Individual cherry-picks can have different intermediate states. AI-assisted with OpenAI Codex.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7385765010 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3346#issuecomment-7385765010). Originally posted by [merzleckeier](https://github.com/merzleckeier) on 2026-12-03T16:58:51Z. --- 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 tree `93f32e0e`. Both retained `mandy_deps.py` at blob `70531ab9`. This checks the PR heads as they would be merged. Individual cherry-picks can have different intermediate states. AI-assisted with OpenAI Codex.
merzleckeier commented 2026-12-03 17:27:31 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by merzleckeier on 2026-12-03T17:27:31Z.


Follow-up on #3346 3dfd5fce and #3348 45b0b6df, tested together on 09273248. The two merge orders produce the same tree 8f2e7295. All 56 Setup tests and all 19 release-pipeline tests passed on Linux, including the shortcut case comparison.

  • The new direct-install route stalls when Setup cannot create its temporary directory. I simulated an unavailable temp directory in the real Setup worker with no winget. os.makedirs in tools/mandy_deps.py:260 raises PermissionError outside the direct-install error handling. The worker emits only the start event, 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.
  • PLAY still says the build tools will be installed with winget when winget is absent. I captured the actual ask_build_tools prompt with find_winget() returning None. 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.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7386541610 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3346#issuecomment-7386541610). Originally posted by [merzleckeier](https://github.com/merzleckeier) on 2026-12-03T17:27:31Z. --- Follow-up on #3346 `3dfd5fce` and #3348 `45b0b6df`, tested together on `09273248`. The two merge orders produce the same tree `8f2e7295`. All 56 Setup tests and all 19 release-pipeline tests passed on Linux, including the shortcut case comparison. - **The new direct-install route stalls when Setup cannot create its temporary directory.** I simulated an unavailable temp directory in the real Setup worker with no winget. `os.makedirs` in `tools/mandy_deps.py:260` raises `PermissionError` outside the direct-install error handling. The worker emits only the `start` event, 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. - **PLAY still says the build tools will be installed with winget when winget is absent.** I captured the actual `ask_build_tools` prompt with `find_winget()` returning `None`. 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.
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/3346:upstream-pr/3346'
git switch 'upstream-pr/3346'

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.

git switch 'main'
git merge --no-ff 'upstream-pr/3346'
git switch 'upstream-pr/3346'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/3346'
git switch 'upstream-pr/3346'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/3346'
git switch 'main'
git merge --squash 'upstream-pr/3346'
git switch 'main'
git merge --ff-only 'upstream-pr/3346'
git switch 'main'
git merge 'upstream-pr/3346'
git push origin 'main'
Sign in to join this conversation.
No reviewers
No labels
No milestone
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.

Reference
ProjectLeonida/mandy!3346
No description provided.