mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #5253] [Issue]: Isolate Playwright file storage from inherited environment #2907
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#2907
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 (Aug 19, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/5253
Originally assigned to: @SpicyMarinara on GitHub.
Summary
e2e/start-servers.mjsgives the mobile and desktop Playwright servers separateDATA_DIRvalues, but it does not overrideFILE_STORAGE_DIR. When the parent process definesFILE_STORAGE_DIR, both server children inherit it, resolve to the same storage directory, and compete for one writer lease.Expected behavior
Each Playwright project should use storage beneath its own temporary data directory regardless of unrelated environment variables inherited from the launching shell.
Actual behavior
One server acquires the shared storage writer lease. The other fails during bootstrap with
StorageWriterLeaseError, and Playwright eventually reports thatconfig.webServertimed out.Steps to reproduce
stagingsource checkout with dependencies installed.FILE_STORAGE_DIR=./data/storagein the parent process.packages/server/data/storage; one cannot acquire the writer lease.Environment
staging(2.4.4during reproduction)Logs, screenshots, or video
The failing server reported different project data and shared file storage:
Playwright then timed out waiting for
config.webServer.Additional context
Server configuration intentionally gives
FILE_STORAGE_DIRprecedence overDATA_DIR, so the Playwright launcher must set both project-specific values. The recommended fix is one environment entry ine2e/start-servers.mjsinsidestartProject, besideDATA_DIR:With that entry present, a run launched under the same inherited
FILE_STORAGE_DIR=./data/storageenvironment passed and created separate.tmp/playwright-data/mobile/storageand.tmp/playwright-data/desktop/storagedirectories.Template check