You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by ru...@apache.org on 2024/02/01 15:08:48 UTC

(superset) branch master updated: feat(ci): kill duplicate CI jobs on PRs (#26945)

This is an automated email from the ASF dual-hosted git repository.

rusackas pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/superset.git


The following commit(s) were added to refs/heads/master by this push:
     new 26e330e119 feat(ci): kill duplicate CI jobs on PRs (#26945)
26e330e119 is described below

commit 26e330e1199a803f0f3af76f0629025d1893d500
Author: Maxime Beauchemin <ma...@gmail.com>
AuthorDate: Thu Feb 1 07:08:41 2024 -0800

    feat(ci): kill duplicate CI jobs on PRs (#26945)
---
 .github/workflows/check_db_migration_confict.yml  | 5 +++++
 .github/workflows/codeql-analysis.yml             | 5 +++++
 .github/workflows/embedded-sdk-test.yml           | 5 +++++
 .github/workflows/ephemeral-env.yml               | 5 +++++
 .github/workflows/license-check.yml               | 5 +++++
 .github/workflows/no-hold-label.yml               | 5 +++++
 .github/workflows/pre-commit.yml                  | 5 +++++
 .github/workflows/prefer-typescript.yml           | 6 ++++++
 .github/workflows/superset-cli.yml                | 5 +++++
 .github/workflows/superset-docs-verify.yml        | 6 ++++++
 .github/workflows/superset-frontend.yml           | 5 +++++
 .github/workflows/superset-helm-lint.yml          | 5 +++++
 .github/workflows/superset-python-misc.yml        | 5 +++++
 .github/workflows/superset-python-presto-hive.yml | 5 +++++
 .github/workflows/superset-python-unittest.yml    | 5 +++++
 .github/workflows/superset-translations.yml       | 5 +++++
 .github/workflows/superset-websocket.yml          | 5 +++++
 .github/workflows/update-monorepo-lockfiles.yml   | 5 +++++
 18 files changed, 92 insertions(+)

diff --git a/.github/workflows/check_db_migration_confict.yml b/.github/workflows/check_db_migration_confict.yml
index 85058c3cd3..7e3b93f983 100644
--- a/.github/workflows/check_db_migration_confict.yml
+++ b/.github/workflows/check_db_migration_confict.yml
@@ -10,6 +10,11 @@ on:
       - "superset/migrations/**"
     types: [synchronize, opened, reopened, ready_for_review]
 
+# cancel previous workflow jobs for PRs
+concurrency:
+  group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.run_id }}
+  cancel-in-progress: true
+
 jobs:
   check_db_migration_conflict:
     name: Check DB migration conflict
diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml
index 0b46687bf9..86d0b37ee6 100644
--- a/.github/workflows/codeql-analysis.yml
+++ b/.github/workflows/codeql-analysis.yml
@@ -13,6 +13,11 @@ on:
   schedule:
     - cron: '0 4 * * *'
 
+# cancel previous workflow jobs for PRs
+concurrency:
+  group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.run_id }}
+  cancel-in-progress: true
+
 jobs:
   analyze:
     name: Analyze
diff --git a/.github/workflows/embedded-sdk-test.yml b/.github/workflows/embedded-sdk-test.yml
index 6417c592bc..0cf7d7b691 100644
--- a/.github/workflows/embedded-sdk-test.yml
+++ b/.github/workflows/embedded-sdk-test.yml
@@ -6,6 +6,11 @@ on:
       - "superset-embedded-sdk/**"
     types: [synchronize, opened, reopened, ready_for_review]
 
+# cancel previous workflow jobs for PRs
+concurrency:
+  group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.run_id }}
+  cancel-in-progress: true
+
 jobs:
   embedded-sdk-test:
     runs-on: ubuntu-20.04
diff --git a/.github/workflows/ephemeral-env.yml b/.github/workflows/ephemeral-env.yml
index f49b11d7c7..c3ed53ed83 100644
--- a/.github/workflows/ephemeral-env.yml
+++ b/.github/workflows/ephemeral-env.yml
@@ -4,6 +4,11 @@ on:
   issue_comment:
     types: [created]
 
+# cancel previous workflow jobs for PRs
+concurrency:
+  group: ${{ github.workflow }}-${{ github.event.issue.number || github.run_id }}
+  cancel-in-progress: true
+
 jobs:
   config:
     runs-on: "ubuntu-latest"
diff --git a/.github/workflows/license-check.yml b/.github/workflows/license-check.yml
index 3f64e93556..7af0b8a4a6 100644
--- a/.github/workflows/license-check.yml
+++ b/.github/workflows/license-check.yml
@@ -4,6 +4,11 @@ on:
   pull_request:
     types: [synchronize, opened, reopened, ready_for_review]
 
+# cancel previous workflow jobs for PRs
+concurrency:
+  group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.run_id }}
+  cancel-in-progress: true
+
 jobs:
   license_check:
     name: License Check
diff --git a/.github/workflows/no-hold-label.yml b/.github/workflows/no-hold-label.yml
index 98b7f2abbe..7b5ab5c67b 100644
--- a/.github/workflows/no-hold-label.yml
+++ b/.github/workflows/no-hold-label.yml
@@ -4,6 +4,11 @@ on:
   pull_request:
     types: [labeled, unlabeled, opened, reopened, synchronize]
 
+# cancel previous workflow jobs for PRs
+concurrency:
+  group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.run_id }}
+  cancel-in-progress: true
+
 jobs:
   check-hold-label:
     runs-on: ubuntu-latest
diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml
index 973d1a2456..d694cf4a48 100644
--- a/.github/workflows/pre-commit.yml
+++ b/.github/workflows/pre-commit.yml
@@ -7,6 +7,11 @@ on:
   pull_request:
     types: [synchronize, opened, reopened, ready_for_review]
 
+# cancel previous workflow jobs for PRs
+concurrency:
+  group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.run_id }}
+  cancel-in-progress: true
+
 jobs:
   pre-commit:
     runs-on: ubuntu-20.04
diff --git a/.github/workflows/prefer-typescript.yml b/.github/workflows/prefer-typescript.yml
index 29dfcc0f7c..cba9ea26e3 100644
--- a/.github/workflows/prefer-typescript.yml
+++ b/.github/workflows/prefer-typescript.yml
@@ -10,6 +10,12 @@ on:
     types: [synchronize, opened, reopened, ready_for_review]
     paths:
       - "superset-frontend/src/**"
+
+# cancel previous workflow jobs for PRs
+concurrency:
+  group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.run_id }}
+  cancel-in-progress: true
+
 jobs:
   prefer_typescript:
     if: github.ref == 'ref/heads/master' && github.event_name == 'pull_request'
diff --git a/.github/workflows/superset-cli.yml b/.github/workflows/superset-cli.yml
index 91be375b31..dd5b53aacf 100644
--- a/.github/workflows/superset-cli.yml
+++ b/.github/workflows/superset-cli.yml
@@ -7,6 +7,11 @@ on:
   pull_request:
     types: [synchronize, opened, reopened, ready_for_review]
 
+# cancel previous workflow jobs for PRs
+concurrency:
+  group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.run_id }}
+  cancel-in-progress: true
+
 jobs:
   test-load-examples:
     runs-on: ubuntu-20.04
diff --git a/.github/workflows/superset-docs-verify.yml b/.github/workflows/superset-docs-verify.yml
index 1ab6c6d6d0..481cbaaeba 100644
--- a/.github/workflows/superset-docs-verify.yml
+++ b/.github/workflows/superset-docs-verify.yml
@@ -5,6 +5,12 @@ on:
     paths:
       - "docs/**"
     types: [synchronize, opened, reopened, ready_for_review]
+
+# cancel previous workflow jobs for PRs
+concurrency:
+  group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.run_id }}
+  cancel-in-progress: true
+
 jobs:
   build-deploy:
     name: Build & Deploy
diff --git a/.github/workflows/superset-frontend.yml b/.github/workflows/superset-frontend.yml
index 8c8d6abe4f..53c21446f0 100644
--- a/.github/workflows/superset-frontend.yml
+++ b/.github/workflows/superset-frontend.yml
@@ -11,6 +11,11 @@ on:
     paths:
       - "superset-frontend/**"
 
+# cancel previous workflow jobs for PRs
+concurrency:
+  group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.run_id }}
+  cancel-in-progress: true
+
 jobs:
   frontend-build:
     runs-on: ubuntu-20.04
diff --git a/.github/workflows/superset-helm-lint.yml b/.github/workflows/superset-helm-lint.yml
index 064835969b..12138f483e 100644
--- a/.github/workflows/superset-helm-lint.yml
+++ b/.github/workflows/superset-helm-lint.yml
@@ -6,6 +6,11 @@ on:
     paths:
       - "helm/**"
 
+# cancel previous workflow jobs for PRs
+concurrency:
+  group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.run_id }}
+  cancel-in-progress: true
+
 jobs:
   lint-test:
     runs-on: ubuntu-latest
diff --git a/.github/workflows/superset-python-misc.yml b/.github/workflows/superset-python-misc.yml
index ad67076830..43252f1806 100644
--- a/.github/workflows/superset-python-misc.yml
+++ b/.github/workflows/superset-python-misc.yml
@@ -12,6 +12,11 @@ on:
     paths:
       - "superset/**"
 
+# cancel previous workflow jobs for PRs
+concurrency:
+  group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.run_id }}
+  cancel-in-progress: true
+
 jobs:
   python-lint:
     runs-on: ubuntu-20.04
diff --git a/.github/workflows/superset-python-presto-hive.yml b/.github/workflows/superset-python-presto-hive.yml
index 8f71289b4d..692c265c25 100644
--- a/.github/workflows/superset-python-presto-hive.yml
+++ b/.github/workflows/superset-python-presto-hive.yml
@@ -12,6 +12,11 @@ on:
     paths:
       - "superset/**"
 
+# cancel previous workflow jobs for PRs
+concurrency:
+  group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.run_id }}
+  cancel-in-progress: true
+
 jobs:
   test-postgres-presto:
     runs-on: ubuntu-20.04
diff --git a/.github/workflows/superset-python-unittest.yml b/.github/workflows/superset-python-unittest.yml
index 401c6ad89c..4a99fb537e 100644
--- a/.github/workflows/superset-python-unittest.yml
+++ b/.github/workflows/superset-python-unittest.yml
@@ -12,6 +12,11 @@ on:
     paths:
       - "superset/**"
 
+# cancel previous workflow jobs for PRs
+concurrency:
+  group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.run_id }}
+  cancel-in-progress: true
+
 jobs:
   unit-tests:
     runs-on: ubuntu-20.04
diff --git a/.github/workflows/superset-translations.yml b/.github/workflows/superset-translations.yml
index fbde6d4fd4..5d18a1417f 100644
--- a/.github/workflows/superset-translations.yml
+++ b/.github/workflows/superset-translations.yml
@@ -7,6 +7,11 @@ on:
   pull_request:
     types: [synchronize, opened, reopened, ready_for_review]
 
+# cancel previous workflow jobs for PRs
+concurrency:
+  group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.run_id }}
+  cancel-in-progress: true
+
 jobs:
   frontend-check:
     runs-on: ubuntu-20.04
diff --git a/.github/workflows/superset-websocket.yml b/.github/workflows/superset-websocket.yml
index 6000221c21..337cfabd4f 100644
--- a/.github/workflows/superset-websocket.yml
+++ b/.github/workflows/superset-websocket.yml
@@ -10,6 +10,11 @@ on:
       - "superset-websocket/**"
     types: [synchronize, opened, reopened, ready_for_review]
 
+# cancel previous workflow jobs for PRs
+concurrency:
+  group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.run_id }}
+  cancel-in-progress: true
+
 jobs:
   app-checks:
     runs-on: ubuntu-20.04
diff --git a/.github/workflows/update-monorepo-lockfiles.yml b/.github/workflows/update-monorepo-lockfiles.yml
index 2c3f65e09d..fa71a2f668 100644
--- a/.github/workflows/update-monorepo-lockfiles.yml
+++ b/.github/workflows/update-monorepo-lockfiles.yml
@@ -8,6 +8,11 @@ on:
     # Trigger this workflow when Dependabot creates a pull request
     types: [opened, synchronize, reopened]
 
+# cancel previous workflow jobs for PRs
+concurrency:
+  group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.run_id }}
+  cancel-in-progress: true
+
 jobs:
   update-lock-file:
     runs-on: ubuntu-latest