[PR #4582] [MERGED] Upgrade pnpm to patched 10.34.5 release #6432

Closed
opened 2026-10-23 04:10:22 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/4582
Author: @SpicyMarinara
Created: 8/4/2026
Status: ✅ Merged
Merged: 8/4/2026
Merged by: @SpicyMarinara

Base: staging ← Head: agent/pnpm-10-34-5


📝 Commits (5)

  • f814e35 Start pnpm 10.34.5 security upgrade
  • 2157c62 Harden pnpm 10.34.5 security upgrade
  • 45bc180 Apply pnpm launcher review fixes
  • 7252cee Preserve data on pnpm handoff failures
  • e9575f6 Merge branch 'staging' into agent/pnpm-10-34-5

📊 Changes

14 files changed (+491 additions, -190 deletions)

View changed files

📝 .github/workflows/prealpha-platform-builds.yml (+1 -1)
📝 CHANGELOG.md (+1 -0)
📝 Dockerfile.lite (+2 -2)
📝 docs/TROUBLESHOOTING.md (+12 -2)
📝 package.json (+2 -2)
📝 packages/server/src/routes/updates.routes.ts (+17 -8)
📝 pnpm-workspace.yaml (+5 -0)
📝 scripts/regressions/launcher-update.regression.mjs (+158 -0)
📝 start-local.bat (+17 -5)
📝 start-termux.sh (+65 -30)
📝 start.bat (+75 -48)
📝 start.sh (+64 -29)
📝 win/installer/install.bat (+58 -50)
📝 win/installer/installer.nsi (+14 -13)

📄 Description

Linked issue

Closes #4581

Why this change

  • Marinara pins pnpm 10.33.2, which is in the affected range of upstream pnpm security advisories fixed by 10.34.5.
  • An already-running old launcher retains its pre-update runner, so its first post-update dependency install must fail closed.
  • The active npm supply-chain incident makes an unchanged frozen lockfile and deterministic package-manager download especially important.

What changed

  • Pin pnpm 10.34.5 across the workspace, launchers, installers, updater commands, containers, and pre-alpha CI.
  • Add the official release SHA-512 digest to the Corepack descriptor and request exact 10.34.5 versions from fallback paths.
  • Reject mismatched global pnpm installations and re-resolve the repository pin after future Git updates.
  • Raise the pnpm engine floor so an already-running 10.33.2 launcher stops before dependency installation; relaunching uses the refreshed launcher and verified pin.
  • Add focused launcher regression coverage, release notes, and troubleshooting guidance.
  • Keep pnpm-lock.yaml unchanged.

Validation

Focused automated proof performed:

  • git diff --check
  • bash syntax checks for start.sh and start-termux.sh
  • launcher update and dotenv regression scripts
  • version-drift and Windows installer layout checks
  • NSIS installer compilation
  • server TypeScript lint via the exact hash-pinned pnpm 10.34.5 runner
  • isolated Corepack cache verification of the pnpm 10.34.5 SHA-512 descriptor
  • isolated fixture proof that pnpm 10.33.2 fails at the engine gate before preinstall, while the hash-pinned 10.34.5 install succeeds

The full repository suite was intentionally left to CI; no dependency update or lockfile rewrite was run locally.

  • pnpm check passes locally
  • Container (Docker / Podman) built and ran without issue
  • Ran the app, clicked through the changes manually
  • Checked edge cases (light + dark mode, mobile viewport, empty states, error paths)
  • Above manual verification completed (describe below)
  • Read and followed CONTRIBUTING.md

Manual verification notes

  • Manually verify an existing 10.33.2 launcher stops once before dependency installation after pulling this update, then succeeds after relaunch.
  • Manually verify fresh Windows, macOS/Linux, and Termux installations select pnpm 10.34.5.
  • Manually verify the updater error guidance shows the exact hash-pinned Corepack command.

Docs and release impact

  • No docs changes needed
  • Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed
  • Translated docs on the docs-i18n branch updated to match, or a [docs-i18n] follow-up issue opened (see CONTRIBUTING.md § Translated documentation)
  • Version/release files updated (only if this PR includes a version bump)

docs/TROUBLESHOOTING.md and CHANGELOG.md are updated. Translation follow-up: #4583.

UI evidence (if applicable)

  • Not applicable; this is launcher, installer, updater, and toolchain work.

Summary by CodeRabbit

  • Chores

    • Updated the bundled pnpm toolchain to version 10.34.5 with SHA-512 integrity verification.
    • Improved startup, installation, and update flows to reliably select the required pnpm version across platforms.
    • Added fallback handling when the preferred package-manager runner is unavailable.
  • Documentation

    • Added troubleshooting guidance for the one-time launcher restart required after the security update.
    • Documented exact-version installation and relaunch steps on Windows.
  • Tests

    • Added regression coverage for version enforcement, integrity checks, launchers, installers, and documentation.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Pasta-Devs/Marinara-Engine/pull/4582 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 8/4/2026 **Status:** ✅ Merged **Merged:** 8/4/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `agent/pnpm-10-34-5` --- ### 📝 Commits (5) - [`f814e35`](https://github.com/Pasta-Devs/Marinara-Engine/commit/f814e3584e683a981ec19d33ff7d7c4585a07e60) Start pnpm 10.34.5 security upgrade - [`2157c62`](https://github.com/Pasta-Devs/Marinara-Engine/commit/2157c628f8504d82187905a1df02b5a6e48e7c5d) Harden pnpm 10.34.5 security upgrade - [`45bc180`](https://github.com/Pasta-Devs/Marinara-Engine/commit/45bc180d3a1a95d9ed0fb46c28dddecc90a5e028) Apply pnpm launcher review fixes - [`7252cee`](https://github.com/Pasta-Devs/Marinara-Engine/commit/7252ceef5f024ae52feb80eedb9e7e659f4bcff1) Preserve data on pnpm handoff failures - [`e9575f6`](https://github.com/Pasta-Devs/Marinara-Engine/commit/e9575f6092d5c838ea441a80eda981dfe33bd48d) Merge branch 'staging' into agent/pnpm-10-34-5 ### 📊 Changes **14 files changed** (+491 additions, -190 deletions) <details> <summary>View changed files</summary> 📝 `.github/workflows/prealpha-platform-builds.yml` (+1 -1) 📝 `CHANGELOG.md` (+1 -0) 📝 `Dockerfile.lite` (+2 -2) 📝 `docs/TROUBLESHOOTING.md` (+12 -2) 📝 `package.json` (+2 -2) 📝 `packages/server/src/routes/updates.routes.ts` (+17 -8) 📝 `pnpm-workspace.yaml` (+5 -0) 📝 `scripts/regressions/launcher-update.regression.mjs` (+158 -0) 📝 `start-local.bat` (+17 -5) 📝 `start-termux.sh` (+65 -30) 📝 `start.bat` (+75 -48) 📝 `start.sh` (+64 -29) 📝 `win/installer/install.bat` (+58 -50) 📝 `win/installer/installer.nsi` (+14 -13) </details> ### 📄 Description ## Linked issue Closes #4581 ## Why this change - Marinara pins pnpm 10.33.2, which is in the affected range of upstream pnpm security advisories fixed by 10.34.5. - An already-running old launcher retains its pre-update runner, so its first post-update dependency install must fail closed. - The active npm supply-chain incident makes an unchanged frozen lockfile and deterministic package-manager download especially important. ## What changed - Pin pnpm 10.34.5 across the workspace, launchers, installers, updater commands, containers, and pre-alpha CI. - Add the official release SHA-512 digest to the Corepack descriptor and request exact 10.34.5 versions from fallback paths. - Reject mismatched global pnpm installations and re-resolve the repository pin after future Git updates. - Raise the pnpm engine floor so an already-running 10.33.2 launcher stops before dependency installation; relaunching uses the refreshed launcher and verified pin. - Add focused launcher regression coverage, release notes, and troubleshooting guidance. - Keep pnpm-lock.yaml unchanged. ## Validation Focused automated proof performed: - git diff --check - bash syntax checks for start.sh and start-termux.sh - launcher update and dotenv regression scripts - version-drift and Windows installer layout checks - NSIS installer compilation - server TypeScript lint via the exact hash-pinned pnpm 10.34.5 runner - isolated Corepack cache verification of the pnpm 10.34.5 SHA-512 descriptor - isolated fixture proof that pnpm 10.33.2 fails at the engine gate before preinstall, while the hash-pinned 10.34.5 install succeeds The full repository suite was intentionally left to CI; no dependency update or lockfile rewrite was run locally. - [ ] pnpm check passes locally - [ ] Container (Docker / Podman) built and ran without issue - [ ] Ran the app, clicked through the changes manually - [ ] Checked edge cases (light + dark mode, mobile viewport, empty states, error paths) - [ ] Above manual verification completed (describe below) - [ ] Read and followed CONTRIBUTING.md ### Manual verification notes - Manually verify an existing 10.33.2 launcher stops once before dependency installation after pulling this update, then succeeds after relaunch. - Manually verify fresh Windows, macOS/Linux, and Termux installations select pnpm 10.34.5. - Manually verify the updater error guidance shows the exact hash-pinned Corepack command. ## Docs and release impact - [ ] No docs changes needed - [ ] Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed - [ ] Translated docs on the docs-i18n branch updated to match, or a [docs-i18n] follow-up issue opened (see CONTRIBUTING.md § Translated documentation) - [ ] Version/release files updated (only if this PR includes a version bump) docs/TROUBLESHOOTING.md and CHANGELOG.md are updated. Translation follow-up: #4583. ## UI evidence (if applicable) - Not applicable; this is launcher, installer, updater, and toolchain work. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Chores** * Updated the bundled pnpm toolchain to version 10.34.5 with SHA-512 integrity verification. * Improved startup, installation, and update flows to reliably select the required pnpm version across platforms. * Added fallback handling when the preferred package-manager runner is unavailable. * **Documentation** * Added troubleshooting guidance for the one-time launcher restart required after the security update. * Documented exact-version installation and relaunch steps on Windows. * **Tests** * Added regression coverage for version enforcement, integrity checks, launchers, installers, and documentation. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-23 04:10:22 +07:00
Sign in to join this conversation.
No milestone
No project
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
Pasta-Devs/Marinara-Engine#6432
No description provided.