Repository navigation
test(e2e): clean up run artifacts after the suite - #422
Merged
Merged
Conversation
- server.sh removes e2e/.tmp when the backend exits, forwarding SIGTERM so Playwright's graceful shutdown still applies - a cleanup reporter removes playwright-report and test-results after a passing run; failed runs keep them for debugging and CI upload
Contributor
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.
Summary
e2e/.tmpwhen the backend exits, and forward the shutdown signal so Playwright's graceful shutdown still applies. The cleanup lives inserver.shbecause Playwright's teardown hook runs before the server stops.playwright-report/andtest-results/after a passing run. Failed runs keep them for debugging and for the CI upload.e2e/env.tsand use them from the config and the reporter.Files
e2e/server.she2e/cleanup-reporter.ts(new)e2e/env.tse2e/playwright.config.tsValidation
e2e/.tmp,test-results/andplaywright-report/all removed afterwards, no server left listening on the e2e ports.test-results/andplaywright-report/kept,e2e/.tmpremoved.tsc --strict;pnpm lintreports 0 errors (41 pre-existing warnings).OpenCode server exited with code 130log line appears with the originalserver.shtoo, so it is pre-existing.Summary by CodeRabbit