Skip to content

Run E2E app cleanup before sharded tests#7777

Draft
alfonso-noriega wants to merge 1 commit into
mainfrom
06-10-run_e2e_app_cleanup_before_sharded_tests
Draft

Run E2E app cleanup before sharded tests#7777
alfonso-noriega wants to merge 1 commit into
mainfrom
06-10-run_e2e_app_cleanup_before_sharded_tests

Conversation

@alfonso-noriega

@alfonso-noriega alfonso-noriega commented Jun 10, 2026

Copy link
Copy Markdown
Contributor

WHY are these changes introduced?

PR #7764 is blocked on E2E failures caused by the shared E2E organization hitting its app quota:

Your organization has reached the maximum number of apps allowed (5000)

The E2E suite already has a cleanup utility for stale E2E- apps, but PR CI only ran it manually/out-of-band. When the org is already at quota, every sharded E2E job that needs create-app fails before the actual test assertions can run.

WHAT is this pull request doing?

Adds a separate PR workflow preflight job, E2E preflight app cleanup, that runs before the sharded E2E tests and deletes stale E2E apps with zero installs:

pnpm exec tsx scripts/cleanup-apps.ts --delete

The sharded E2E jobs now depend on that cleanup job, so they start after the shared org has had a chance to free app quota.

This intentionally uses --delete only: it avoids store/app uninstall side effects in CI and only removes apps that the dashboard reports as having no installs.

How to test your changes?

Validated locally:

pnpm --filter @shopify/e2e run type-check
pnpm --filter @shopify/e2e run lint

Full E2E requires Shopify E2E secrets and is validated by CI.

Post-release steps

None.

Checklist

  • I've considered possible cross-platform impacts (Mac, Linux, Windows)
  • I've considered possible documentation changes
  • I've considered analytics changes to measure impact
  • Not user-facing; no changeset needed

Copy link
Copy Markdown
Contributor Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

@github-actions github-actions Bot added the no-changelog This PR doesn't include a changeset entry. Is an internal only change not relevant to end users. label Jun 10, 2026
@alfonso-noriega alfonso-noriega force-pushed the 06-10-run_e2e_app_cleanup_before_sharded_tests branch from 059e901 to c52a546 Compare June 10, 2026 11:33
@alfonso-noriega alfonso-noriega force-pushed the 06-10-run_e2e_app_cleanup_before_sharded_tests branch from c52a546 to 2ce70e0 Compare June 10, 2026 11:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

no-changelog This PR doesn't include a changeset entry. Is an internal only change not relevant to end users.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant