Skip to content

The easy-to-use open source Business Intelligence and Embedded Analytics tool that lets everyone work with data :bar_chart:

Stop running auto-stress-tests on any label (#76638)

Nemanja Glumacb114036f8515
diff --git a/.github/workflows/e2e-stress-test-flaky-pr.yml b/.github/workflows/e2e-stress-test-flaky-pr.yml
index c178b93e798..7cbde534538 100644
--- a/.github/workflows/e2e-stress-test-flaky-pr.yml
+++ b/.github/workflows/e2e-stress-test-flaky-pr.yml
@@ -16,7 +16,13 @@ concurrency:
jobs:
detect-changed-specs:
name: Detect changed e2e specs
- if: contains(github.event.pull_request.labels.*.name, 'flaky-test-fix')
+ # The PR must carry the `flaky-test-fix` label (covers opened/reopened/synchronize), AND
+ # when this is a `labeled` event we only proceed if the label *just added* is
+ # `flaky-test-fix` — otherwise adding any unrelated label to an already-labelled
+ # PR would needlessly re-burn the whole stress matrix.
+ if: >-
+ contains(github.event.pull_request.labels.*.name, 'flaky-test-fix') &&
+ (github.event.action != 'labeled' || github.event.label.name == 'flaky-test-fix')
runs-on: ${{ vars.DEFAULT_RUNNER_KEY }}
timeout-minutes: 5
outputs: