test(e2e): give each checkout its own ports and scratch directory - #922
Merged
Conversation
✅ Deploy Preview for volview-dev ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Two suites could not run at the same time on one machine: both bound the static server to 4567 and the content-disposition server to 4568, and both wrote generated manifests, session downloads and screenshots into the same .tmp directory, where the cleanup service deleted the other run's files. Ports are now derived from a hash of the checkout path, so the wdio launcher, its workers and the separate vite dev server agree on them without coordinating, and two worktrees never pick the same pair. VOLVIEW_E2E_PORT and VOLVIEW_E2E_AUX_PORT override them, and onPrepare names the port anything else is already holding rather than leaving the static server to fail to bind. Downloaded fixtures stay in a shared .tmp/datasets cache and are hard-linked into a run directory keyed by port, so runs share the expensive downloads but not the files they write. A passing run removes its directory. A failure keeps it for the screenshots inside, as does a watch session, and so does CI, where a new baseline image gets picked up from the uploaded artifact. That artifact now covers .tmp/runs rather than all of .tmp, so the fixtures no longer ship a second time through their hard links.
PaulHax
force-pushed
the
e2e-parallel-runs
branch
from
August 16, 2026 16:07
2e2642d to
e4de902
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Lets two checkouts run the e2e suite at the same time. Ports are derived from the checkout path instead of hardcoded to 4567/4568, and each run gets its own scratch directory under
.tmp/runs/<port>; fixtures stay in a shared.tmp/datasetscache and are hard-linked in.CI artifacts now upload
.tmp/runsrather than all of.tmp, so fixtures no longer ship twice.