E2E: cleanup utility#7171
Open
phyllis-sy-wu wants to merge 1 commit intopsyw-0401-E2E-migrate-remaining-tests-to-use-new-infrafrom
Open
E2E: cleanup utility#7171phyllis-sy-wu wants to merge 1 commit intopsyw-0401-E2E-migrate-remaining-tests-to-use-new-infrafrom
phyllis-sy-wu wants to merge 1 commit intopsyw-0401-E2E-migrate-remaining-tests-to-use-new-infrafrom
Conversation
This was referenced Apr 2, 2026
Contributor
Author
|
Warning This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
This stack of pull requests is managed by Graphite. Learn more about stacking. |
7ea8175 to
d9e9bbf
Compare
Contributor
Differences in type declarationsWe detected differences in the type declarations generated by Typescript for this branch compared to the baseline ('main' branch). Please, review them to ensure they are backward-compatible. Here are some important things to keep in mind:
New type declarationsWe found no new type declarations in this PR Existing type declarationspackages/cli-kit/dist/public/common/version.d.ts@@ -1 +1 @@
-export declare const CLI_KIT_VERSION = "3.93.0";
\ No newline at end of file
+export declare const CLI_KIT_VERSION = "3.92.0";
\ No newline at end of file
|
5c6b425 to
7e992d2
Compare
1d49241 to
8be6206
Compare
c84615f to
b83a2b2
Compare
b83a2b2 to
42157aa
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.

WHY are these changes introduced?
E2E tests create apps on the Dev Dashboard that can accumulate over time — especially when tests fail mid-run, CI times out, or
E2E_SKIP_CLEANUP=1is used during development. This PR adds:scripts/cleanup.ts) — bulk cleanup of leftover apps via browser automationE2E_SKIP_CLEANUPtoggle — env var to disable per-test teardown for debuggingNaming convention: The E2E infra distinguishes two cleanup mechanisms:
teardownApp(insetup/app.ts, renamed in parent PRs) — per-test, automatic, runs infinallyblocks, cleans up ONE app by namecleanup.ts(inscripts/, this PR) — standalone script, manual, bulk operation, finds ALL apps matching a pattern on the dashboardWHAT is this pull request doing?
New:
scripts/cleanup.tsStandalone cleanup script that finds E2E test apps on the Dev Dashboard, uninstalls them from all stores, and deletes them.
Features:
npx tsx)setup/app.tsandsetup/browser.tscleanupAllApps()for use as a Playwright globalTeardown in the futureUI output:
E2E_SKIP_CLEANUPtoggleAll test
finallyblocks now check this env var. When set, both local file cleanup and remote app teardown are skipped:How to test your changes?
Test the cleanup script:
DEBUG=1 E2E_SKIP_CLEANUP=1 pnpm e2e:test app-deploynpx tsx packages/e2e/scripts/cleanup.ts --listnpx tsx packages/e2e/scripts/cleanup.ts --headedTest E2E_SKIP_CLEANUP:
E2E_SKIP_CLEANUP=1 pnpm e2e:test app-deployTest error/retry handling:
To simulate failures and test the retry logic, temporarily add this in
cleanup.tsbefore// Step 4:Examples
--list--uninstall(with retry)--delete(with skips and failures)Full cleanup (default mode)
E2E_SKIP_CLEANUP=1(apps remain on dashboard after test)Measuring impact
Checklist