From 4d878c87371079c87fd80ba2362561f1f9379e2b Mon Sep 17 00:00:00 2001 From: "privilegedescalation-engineer[bot]" Date: Tue, 24 Mar 2026 16:27:52 +0000 Subject: [PATCH 1/2] ci: add concurrency guard to E2E workflow MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Prevents parallel E2E runs from conflicting over the shared headlamp-e2e Helm release in privilegedescalation-dev. With cancel-in-progress: true, a new push cancels any in-progress run on the same repo — only one E2E suite runs at a time. Observed failure: PR#109 and PR#108 ran concurrently and the auth setup in PR#109 timed out, likely due to resource contention on the shared headlamp-e2e instance. Co-Authored-By: Paperclip --- .github/workflows/e2e.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/e2e.yaml b/.github/workflows/e2e.yaml index 4cda4d9..9693eca 100644 --- a/.github/workflows/e2e.yaml +++ b/.github/workflows/e2e.yaml @@ -10,6 +10,12 @@ on: permissions: contents: read +# Only one E2E run at a time: the shared E2E_RELEASE (headlamp-e2e) in +# privilegedescalation-dev cannot be shared across concurrent runs. +concurrency: + group: e2e-${{ github.repository }} + cancel-in-progress: true + env: E2E_NAMESPACE: privilegedescalation-dev E2E_RELEASE: headlamp-e2e From e63cd0326784b8eec22473ea836373ff969623b7 Mon Sep 17 00:00:00 2001 From: "privilegedescalation-engineer[bot]" Date: Tue, 24 Mar 2026 16:34:36 +0000 Subject: [PATCH 2/2] fix(e2e): use cancel-in-progress: false to prevent dangling cluster resources MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit cancel-in-progress: true would cancel in-flight E2E runs when a new one arrives. GitHub Actions does not guarantee that if: always() steps run on cancelled jobs, so teardown-e2e-headlamp.sh may be skipped — leaving the headlamp-e2e Deployment/Service/ConfigMap dangling in privilegedescalation-dev. Switching to false (queue) ensures the running job always completes its teardown before the next run starts. Co-Authored-By: Paperclip --- .github/workflows/e2e.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/e2e.yaml b/.github/workflows/e2e.yaml index 9693eca..cae592f 100644 --- a/.github/workflows/e2e.yaml +++ b/.github/workflows/e2e.yaml @@ -12,9 +12,11 @@ permissions: # Only one E2E run at a time: the shared E2E_RELEASE (headlamp-e2e) in # privilegedescalation-dev cannot be shared across concurrent runs. +# cancel-in-progress: false (queue, don't cancel) — cancelling in-flight +# runs may skip the if: always() teardown, leaving dangling cluster resources. concurrency: group: e2e-${{ github.repository }} - cancel-in-progress: true + cancel-in-progress: false env: E2E_NAMESPACE: privilegedescalation-dev