mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #3778] [Issue]: Playwright startup can crash an existing dev server while rebuilding shared #2037
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#2037
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?
Originally created by @Xelvanis on GitHub (Jul 18, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/3778
Originally assigned to: @SpicyMarinara on GitHub.
Summary
Running a Playwright smoke test while a normal
pnpm devsession is active can crash the existing API server withERR_MODULE_NOT_FOUND. Both development stacks sharepackages/shared/dist, and the Playwright-started stack removes that directory while rebuilding it.Expected behavior
The isolated Playwright web server should be able to start on its configured test ports without disrupting an existing development server.
Actual behavior
The original server exits when it attempts to resolve
@marinara-engine/sharedduring the second stack's rebuild window:The workspace junction itself is valid. After the second shared build finishes, importing
@marinara-engine/sharedsucceeds again, but the original server process has already exited.Steps to reproduce
pnpm devand wait for the server and client to start on the normal development ports.pnpm smoke:uiorpnpm exec playwright test <test-file> --project=desktop-chromium --workers=1.ERR_MODULE_NOT_FOUNDwhile the Playwright web server runspnpm devand rebuilds@marinara-engine/shared.Environment
origin/stagingLogs, screenshots, or video
Observed process timing:
pnpm devstarted at 20:22:09.pnpm devweb server at 20:24:38 using the isolated ports.packages/shared/dist/index.jswas recreated at 20:24:41.tsx watchserver child disappeared after emitting the module-resolution error.The relevant script behavior is:
pnpm devalways invokesbuild:sharedbefore starting the server.distand then runs registry generation andtsc.reuseExistingServerdoes not reuse the ordinary development server and starts anotherpnpm devprocess.Additional context
Temporary workaround: stop the normal development server before running Playwright, then restart it afterward.
A durable fix should prevent the test startup build from destructively replacing the same shared output directory consumed by another running development server. An atomic build/output swap or a test-specific build path may avoid the race.
Template check
@SpicyMarinara commented on GitHub (Jul 18, 2026):
Addressed in #3779. The PR is ready for review, required CI checks are green, the two-stack Playwright reproduction passes without restarting the original API, and all CodeRabbit feedback has been applied.