You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by ma...@apache.org on 2024/01/23 21:11:05 UTC

(superset) 01/01: chore: prevent CI double runs on push + pull_request

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

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

commit bbf811ad705720ca8be32eb32c53f9c701ad8036
Author: Maxime Beauchemin <ma...@gmail.com>
AuthorDate: Tue Jan 23 12:39:10 2024 -0800

    chore: prevent CI double runs on push + pull_request
---
 .github/workflows/check_db_migration_confict.yml      | 6 ++++++
 .github/workflows/prefer-typescript.yml               | 5 +++--
 .github/workflows/superset-cli.yml                    | 4 ++--
 .github/workflows/superset-docs.yml                   | 3 +++
 .github/workflows/superset-e2e.yml                    | 6 ++----
 .github/workflows/superset-frontend.yml               | 9 ++++++---
 .github/workflows/superset-helm-lint.yml              | 2 ++
 .github/workflows/superset-python-integrationtest.yml | 4 ++--
 .github/workflows/superset-python-misc.yml            | 8 ++++++--
 .github/workflows/superset-python-presto-hive.yml     | 8 ++++++--
 .github/workflows/superset-python-unittest.yml        | 8 ++++++--
 .github/workflows/superset-translations.yml           | 4 ++--
 .github/workflows/superset-websocket.yml              | 3 +++
 13 files changed, 49 insertions(+), 21 deletions(-)

diff --git a/.github/workflows/check_db_migration_confict.yml b/.github/workflows/check_db_migration_confict.yml
index 8dc7ab0882..85058c3cd3 100644
--- a/.github/workflows/check_db_migration_confict.yml
+++ b/.github/workflows/check_db_migration_confict.yml
@@ -3,6 +3,12 @@ on:
   push:
     paths:
       - "superset/migrations/**"
+    branches:
+      - 'master'
+  pull_request:
+    paths:
+      - "superset/migrations/**"
+    types: [synchronize, opened, reopened, ready_for_review]
 
 jobs:
   check_db_migration_conflict:
diff --git a/.github/workflows/prefer-typescript.yml b/.github/workflows/prefer-typescript.yml
index a1e75c73d4..08480966b6 100644
--- a/.github/workflows/prefer-typescript.yml
+++ b/.github/workflows/prefer-typescript.yml
@@ -2,9 +2,10 @@ name: Prefer TypeScript
 
 on:
   push:
-    branches-ignore:
-      - "dependabot/**"
+    branches:
+      - 'master'
   pull_request:
+    types: [synchronize, opened, reopened, ready_for_review]
 
 jobs:
   prefer_typescript:
diff --git a/.github/workflows/superset-cli.yml b/.github/workflows/superset-cli.yml
index faf6d7d0b2..91be375b31 100644
--- a/.github/workflows/superset-cli.yml
+++ b/.github/workflows/superset-cli.yml
@@ -2,8 +2,8 @@ name: Superset CLI tests
 
 on:
   push:
-    branches-ignore:
-      - "dependabot/npm_and_yarn/**"
+    branches:
+      - 'master'
   pull_request:
     types: [synchronize, opened, reopened, ready_for_review]
 
diff --git a/.github/workflows/superset-docs.yml b/.github/workflows/superset-docs.yml
index 6a47df4400..e1c2df7d12 100644
--- a/.github/workflows/superset-docs.yml
+++ b/.github/workflows/superset-docs.yml
@@ -4,9 +4,12 @@ on:
   push:
     paths:
       - "docs/**"
+    branches:
+      - 'master'
   pull_request:
     paths:
       - "docs/**"
+    types: [synchronize, opened, reopened, ready_for_review]
 
 jobs:
   config:
diff --git a/.github/workflows/superset-e2e.yml b/.github/workflows/superset-e2e.yml
index 5eb794a485..0f01a1be15 100644
--- a/.github/workflows/superset-e2e.yml
+++ b/.github/workflows/superset-e2e.yml
@@ -2,10 +2,8 @@ name: E2E
 
 on:
   push:
-    branches-ignore:
-      - "dependabot/**/docs/**"
-    paths-ignore:
-      - "docs/**"
+    branches:
+      - 'master'
   pull_request:
     types: [synchronize, opened, reopened, ready_for_review]
 
diff --git a/.github/workflows/superset-frontend.yml b/.github/workflows/superset-frontend.yml
index 35e1a989a4..f48a65bd29 100644
--- a/.github/workflows/superset-frontend.yml
+++ b/.github/workflows/superset-frontend.yml
@@ -2,11 +2,14 @@ name: Frontend
 
 on:
   push:
-    branches-ignore:
-      - "dependabot/**/docs/**"
-      - "dependabot/**/cypress-base/**"
+    branches:
+      - "master"
+    paths:
+      - "superset-frontend/**"
   pull_request:
     types: [synchronize, opened, reopened, ready_for_review]
+    paths:
+      - "superset-frontend/**"
 
 jobs:
   frontend-build:
diff --git a/.github/workflows/superset-helm-lint.yml b/.github/workflows/superset-helm-lint.yml
index 4bb888e15d..7ca8f11887 100644
--- a/.github/workflows/superset-helm-lint.yml
+++ b/.github/workflows/superset-helm-lint.yml
@@ -3,6 +3,8 @@ name: Lint and Test Charts
 on:
   pull_request:
     types: [opened, edited, reopened, synchronize]
+    paths:
+      - "helm/**"
 
 jobs:
   lint-test:
diff --git a/.github/workflows/superset-python-integrationtest.yml b/.github/workflows/superset-python-integrationtest.yml
index 655b5c85d5..76187250f4 100644
--- a/.github/workflows/superset-python-integrationtest.yml
+++ b/.github/workflows/superset-python-integrationtest.yml
@@ -3,8 +3,8 @@ name: Python-Integration
 
 on:
   push:
-    branches-ignore:
-      - "dependabot/npm_and_yarn/**"
+    branches:
+      - 'master'
   pull_request:
     types: [synchronize, opened, reopened, ready_for_review]
 
diff --git a/.github/workflows/superset-python-misc.yml b/.github/workflows/superset-python-misc.yml
index e42c743c9e..58d49be526 100644
--- a/.github/workflows/superset-python-misc.yml
+++ b/.github/workflows/superset-python-misc.yml
@@ -3,10 +3,14 @@ name: Python Misc
 
 on:
   push:
-    branches-ignore:
-      - "dependabot/npm_and_yarn/**"
+    branches:
+      - 'master'
+    paths:
+      - "superset/**"
   pull_request:
     types: [synchronize, opened, reopened, ready_for_review]
+    paths:
+      - "superset/**"
 
 jobs:
   python-lint:
diff --git a/.github/workflows/superset-python-presto-hive.yml b/.github/workflows/superset-python-presto-hive.yml
index 7e326759ea..8f71289b4d 100644
--- a/.github/workflows/superset-python-presto-hive.yml
+++ b/.github/workflows/superset-python-presto-hive.yml
@@ -3,10 +3,14 @@ name: Python Presto/Hive
 
 on:
   push:
-    branches-ignore:
-      - "dependabot/npm_and_yarn/**"
+    branches:
+      - 'master'
+    paths:
+      - "superset/**"
   pull_request:
     types: [synchronize, opened, reopened, ready_for_review]
+    paths:
+      - "superset/**"
 
 jobs:
   test-postgres-presto:
diff --git a/.github/workflows/superset-python-unittest.yml b/.github/workflows/superset-python-unittest.yml
index 5f7639e67c..401c6ad89c 100644
--- a/.github/workflows/superset-python-unittest.yml
+++ b/.github/workflows/superset-python-unittest.yml
@@ -3,10 +3,14 @@ name: Python-Unit
 
 on:
   push:
-    branches-ignore:
-      - "dependabot/npm_and_yarn/**"
+    branches:
+      - 'master'
+    paths:
+      - "superset/**"
   pull_request:
     types: [synchronize, opened, reopened, ready_for_review]
+    paths:
+      - "superset/**"
 
 jobs:
   unit-tests:
diff --git a/.github/workflows/superset-translations.yml b/.github/workflows/superset-translations.yml
index e42a9ac9e7..d3d957fde2 100644
--- a/.github/workflows/superset-translations.yml
+++ b/.github/workflows/superset-translations.yml
@@ -2,8 +2,8 @@ name: Translations
 
 on:
   push:
-    branches-ignore:
-      - "dependabot/npm_and_yarn/**"
+    branches:
+      - 'master'
   pull_request:
     types: [synchronize, opened, reopened, ready_for_review]
 
diff --git a/.github/workflows/superset-websocket.yml b/.github/workflows/superset-websocket.yml
index 73a532cb98..345aa4ddf9 100644
--- a/.github/workflows/superset-websocket.yml
+++ b/.github/workflows/superset-websocket.yml
@@ -1,11 +1,14 @@
 name: WebSocket server
 on:
   push:
+    branches:
+      - 'master'
     paths:
       - "superset-websocket/**"
   pull_request:
     paths:
       - "superset-websocket/**"
+    types: [synchronize, opened, reopened, ready_for_review]
 
 jobs:
   app-checks: