e2e: provision-nextcloud.live.spec.ts rides every drive via testMatch '**/*.spec.ts' — shared state dir breaks it and it clobbers the first spec's evidence #376
Labels
No labels
agent-blocked
agent-working
autopilot
bug
deferred
deploy-pending
enhancement
landing-pr
model-haiku
model-opus
model-sonnet
needs-design
needs-info
needs-triage
no-triage
out-of-scope
priority
ready-for-agent
ready-for-human
ready-for-session
rehearsal-183
snapshot-pending
standing-drive
wayfinder:grilling
wayfinder:map
wayfinder:prototype
wayfinder:research
wayfinder:task
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Matou/idss#376
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?
Found by the #183 rehearsal ratchet's Task-3 gate re-drive
(2026-08-09, run
20260809T205457Z), the first live drive after the T-arcmerge landed
app/tests/e2e/provision-nextcloud.live.spec.ts(#359/#360arc, T6).
app/playwright.config.tsmatches**/*.spec.ts, so the drive now runsBOTH live specs serially in one run directory and one
--user-data-dir:runFoundingPrefixboots the app expecting[data-status="welcome"]and times out — the state dir already holds thecommunity the FIRST spec founded. It can never pass in this composition.
afterAllevidence harvest then OVERWRITES the first spec'sartifacts/journey.jsonwith{"rows": null, "fault": null}— thefirst drive's leg-level verdict is destroyed (run
20260809T205457Zshows exactly this; the leg verdict survived only in error-context.md).
fixtures/foundingPrefix.tsduplicates the wizard steps thatfixtures/wizard.ts(commit162b956, rehearsal plan Task 3) now owns —two copies of the same screen-driving code will drift.
Shape: each live drive is ONE spec per invocation — make the config's
testMatchan explicit selection (the rehearsal plan's Task 5 already makesit target-keyed for
private-pathvsjourney.droplet; the provision driveneeds its own named selection, e.g. an
OC_E2E_SPECenv the smoke scriptsets), and converge
foundingPrefix.tsontofixtures/wizard.tsso thewizard steps live once.
Acceptance:
private-path.live.spec.tsexecutesprovision-nextcloud.live.spec.tsexecutes with a fresh state diroverwrite another spec's artifacts
foundingPrefix.ts's wizard steps are imports fromwizard.tsFixed on main (commit
37feacd).Root cause:
app/playwright.config.tsmatched**/*.spec.ts, so a drive ran BOTH live specs serially in one run dir / one--user-data-dir— the second booted onto the community the first founded (times out at[data-status="welcome"]) and its afterAll clobbered the first spec'sartifacts/journey.json.Fix — one spec per invocation:
playwright.config.tstestMatchnow readsOC_E2E_SPEC(defaultprivate-path.live.spec.ts), never a glob. Two specs can no longer land in one run, so no afterAll can overwrite another spec's artifacts (AC3, structural).scripts/smoke-private-path.sh--drive founding|nextcloudsetsOC_E2E_SPEC(defaultfounding); thealloption is gone. Default drive runs exactlyprivate-path.live.spec.ts(AC1); the provision drive runs its own invocation with a fresh run/state dir (AC2).fixtures/foundingPrefix.tsnow imports the wizard's screen-driving steps (welcomeToS1→s3BrandKit,reviewAndCreate) andLOGO_FIXTURE_PNG/E2E_GREETINGfromfixtures/wizard.ts— the duplicated bodies live once (AC4). boot-to-welcome + S4-private stay inline (launch is spec-owned for afterAll evidence; S4-private is founding-specific).docs/operator-app/build-and-run.mdusage drops|all.Evidence:
playwright test --listshows exactlyprivate-pathby default and exactlyprovision-nextcloudunderOC_E2E_SPEC;tsc --noEmitadds no new errors;bash -nclean.