e2e: specs that mkdtemp at module level leak a temp dir per run #62
Loading…
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 during #55 (M27).
Playwright loads each spec module in the runner process as well as the worker, so a top-level
mkdtempSync(...)makes a directory the spec'safterAllnever removes. /tmp on geek has dozens:ilg-e2e-ports-*(browser-ports.spec.ts),ilg-e2e-vite-*,ilg-e2e-vmdev-*(vm-dev-server.spec.ts),ilg-e2e-tm-*, and others.Fix: make them in
beforeAll(aseditors.spec.tsdoes), or remove both in a global teardown.Fixed in
af36338: module-level temp dirs moved into beforeAll with cleanup; playwright.config's state and IDE dirs are removed on exit. Rust tests' leftover state dirs are #68.