From 689a596b2b6ac79d871318b710b202787bb1e6a0 Mon Sep 17 00:00:00 2001 From: Greg Allen Date: Tue, 11 Aug 2026 19:07:21 -0400 Subject: [PATCH] fix(#6125): delete leaked repo-level FULLSEND_MINT_URL in e2e cleanup CleanupStaleResources runs at the start of each admin E2E test but did not delete the repo-level FULLSEND_MINT_URL variable that cfmint behaviour tests (#6037) leave on test-repo. Repo variables shadow org-level ones, so a stale value pointing at a torn-down CF Worker preview breaks the OIDC mint step in dispatch.yml, preventing triage dispatch entirely. Add a deleteRepoVariable call for FULLSEND_MINT_URL so already-poisoned orgs self-heal on the next E2E run. Closes #6125 Co-Authored-By: Claude Opus 4.6 Signed-off-by: Greg Allen --- pkg/e2etest/cleanup.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkg/e2etest/cleanup.go b/pkg/e2etest/cleanup.go index 309215a22b..df9708818c 100644 --- a/pkg/e2etest/cleanup.go +++ b/pkg/e2etest/cleanup.go @@ -77,6 +77,11 @@ func CleanupStaleResources(ctx context.Context, client forge.Client, token, org // Clear per-repo install guard so enroll-all includes test-repo. deleteRepoVariable(ctx, token, org, TestRepo, forge.PerRepoGuardVar, t) + // Clear leaked repo-level FULLSEND_MINT_URL left by cfmint behaviour + // tests (#6037). Repo variables shadow org-level ones, so a stale + // value pointing at a torn-down CF Worker preview breaks dispatch. + deleteRepoVariable(ctx, token, org, TestRepo, "FULLSEND_MINT_URL", t) + // 4. Delete stale enrollment and unenrollment branches from test-repo. deleteBranch(ctx, token, org, TestRepo, "fullsend/onboard", t) deleteBranch(ctx, token, org, TestRepo, "fullsend/offboard", t)