mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #283] [MERGED] fix(launcher): bound migration child-process hops + defer off boot path #4545
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#4545
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
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 Information
Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/283
Author: @LukaTheHero
Created: 4/28/2026
Status: ✅ Merged
Merged: 4/28/2026
Merged by: @LukaTheHero
Base:
main← Head:fix/migration-bounded-and-deferred📝 Commits (1)
73e21f9fix(launcher): bound migration child-process hops + defer off boot path📊 Changes
2 files changed (+38 additions, -11 deletions)
View changed files
📝
packages/server/src/app.ts(+15 -8)📝
packages/server/src/services/setup/taskbar-shortcut-migration.ts(+23 -3)📄 Description
Summary
Review feedback on #282: the synchronous
powershell.exe/ COM shortcut hops in the taskbar migration ran on the server boot path. A stalled child could hold the server hostage indefinitely.Two-layer defense
spawnSynccall now carriestimeout: 5_000. On timeout Node sends SIGTERM and returns a non-zero exit, which the existing status checks already treat as a soft failure (skip the candidate, log a warning, continue).migrateTaskbarShortcuts(...)invocation inapp.tsis wrapped insetImmediate(...). Even in the absolute worst case (every hop times out, ~25 s total across all candidates), the work runs after the server's already accepting connections.Manual verification
.lnkgets re-pointed) — happy path measured at ~700 ms total.Get-CimInstancelooped on the WMI service) and confirm the server still finishes booting on time; migration logs a warning instead of hanging.process.platformcheck unchanged).No linked issue. Direct follow-up to the review comment on #282.
Summary by CodeRabbit
Bug Fixes
Refactor
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.