Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ext PRs test 3: a .js file #4

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
107 changes: 81 additions & 26 deletions .github/workflows/drivers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ on:
- 'release-**'
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
workflow_run:
workflows: [External Trigger Filter]
types: [completed]

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref && github.ref || github.run_id }}
Expand All @@ -30,7 +33,9 @@ jobs:

be-tests-athena-ee:
needs: files-changed
if: github.event.pull_request.draft == false && needs.files-changed.outputs.backend_all == 'true'
if: |
(github.event.pull_request.draft == false && needs.files-changed.outputs.backend_all == 'true') &&
(github.event.pull_request.head.repo.full_name == github.repository || github.event.workflow_run.conclusion == 'success')
runs-on: ubuntu-22.04
timeout-minutes: 90
env:
Expand All @@ -50,7 +55,9 @@ jobs:

be-tests-bigquery-cloud-sdk-ee:
needs: files-changed
if: github.event.pull_request.draft == false && needs.files-changed.outputs.backend_all == 'true'
if: |
(github.event.pull_request.draft == false && needs.files-changed.outputs.backend_all == 'true') &&
(github.event.pull_request.head.repo.full_name == github.repository || github.event.workflow_run.conclusion == 'success')
runs-on: ubuntu-22.04
timeout-minutes: 90
env:
Expand All @@ -72,7 +79,9 @@ jobs:

be-tests-druid-ee:
needs: files-changed
if: github.event.pull_request.draft == false && needs.files-changed.outputs.backend_all == 'true'
if: |
(github.event.pull_request.draft == false && needs.files-changed.outputs.backend_all == 'true') &&
(github.event.pull_request.head.repo.full_name == github.repository || github.event.workflow_run.conclusion == 'success')
runs-on: ubuntu-22.04
timeout-minutes: 90
env:
Expand All @@ -95,7 +104,9 @@ jobs:

be-tests-googleanalytics-ee:
needs: files-changed
if: github.event.pull_request.draft == false && needs.files-changed.outputs.backend_all == 'true'
if: |
(github.event.pull_request.draft == false && needs.files-changed.outputs.backend_all == 'true') &&
(github.event.pull_request.head.repo.full_name == github.repository || github.event.workflow_run.conclusion == 'success')
runs-on: ubuntu-22.04
timeout-minutes: 90
env:
Expand All @@ -111,7 +122,9 @@ jobs:

be-google-related-drivers-classpath-test:
needs: files-changed
if: github.event.pull_request.draft == false && needs.files-changed.outputs.backend_all == 'true'
if: |
(github.event.pull_request.draft == false && needs.files-changed.outputs.backend_all == 'true') &&
(github.event.pull_request.head.repo.full_name == github.repository || github.event.workflow_run.conclusion == 'success')
runs-on: ubuntu-22.04
timeout-minutes: 90
env:
Expand All @@ -133,7 +146,9 @@ jobs:

be-tests-mariadb-10-2-ee:
needs: files-changed
if: github.event.pull_request.draft == false && needs.files-changed.outputs.backend_all == 'true'
if: |
(github.event.pull_request.draft == false && needs.files-changed.outputs.backend_all == 'true') &&
(github.event.pull_request.head.repo.full_name == github.repository || github.event.workflow_run.conclusion == 'success')
runs-on: ubuntu-22.04
timeout-minutes: 90
env:
Expand All @@ -159,7 +174,9 @@ jobs:

be-tests-mariadb-latest-ee:
needs: files-changed
if: github.event.pull_request.draft == false && needs.files-changed.outputs.backend_all == 'true'
if: |
(github.event.pull_request.draft == false && needs.files-changed.outputs.backend_all == 'true') &&
(github.event.pull_request.head.repo.full_name == github.repository || github.event.workflow_run.conclusion == 'success')
runs-on: ubuntu-22.04
timeout-minutes: 90
env:
Expand All @@ -185,7 +202,9 @@ jobs:

be-tests-mongo-4-4-ee:
needs: files-changed
if: github.event.pull_request.draft == false && needs.files-changed.outputs.backend_all == 'true'
if: |
(github.event.pull_request.draft == false && needs.files-changed.outputs.backend_all == 'true') &&
(github.event.pull_request.head.repo.full_name == github.repository || github.event.workflow_run.conclusion == 'success')
runs-on: ubuntu-22.04
timeout-minutes: 90
env:
Expand All @@ -208,7 +227,9 @@ jobs:

be-tests-mongo-4-4-ssl-ee:
needs: files-changed
if: github.event.pull_request.draft == false && needs.files-changed.outputs.backend_all == 'true'
if: |
(github.event.pull_request.draft == false && needs.files-changed.outputs.backend_all == 'true') &&
(github.event.pull_request.head.repo.full_name == github.repository || github.event.workflow_run.conclusion == 'success')
runs-on: ubuntu-22.04
timeout-minutes: 90
env:
Expand Down Expand Up @@ -243,7 +264,9 @@ jobs:

be-tests-mongo-5-0-ee:
needs: files-changed
if: github.event.pull_request.draft == false && needs.files-changed.outputs.backend_all == 'true'
if: |
(github.event.pull_request.draft == false && needs.files-changed.outputs.backend_all == 'true') &&
(github.event.pull_request.head.repo.full_name == github.repository || github.event.workflow_run.conclusion == 'success')
runs-on: ubuntu-22.04
timeout-minutes: 90
env:
Expand All @@ -266,7 +289,9 @@ jobs:

be-tests-mongo-5-0-ssl-ee:
needs: files-changed
if: github.event.pull_request.draft == false && needs.files-changed.outputs.backend_all == 'true'
if: |
(github.event.pull_request.draft == false && needs.files-changed.outputs.backend_all == 'true') &&
(github.event.pull_request.head.repo.full_name == github.repository || github.event.workflow_run.conclusion == 'success')
runs-on: ubuntu-22.04
timeout-minutes: 90
env:
Expand Down Expand Up @@ -301,7 +326,9 @@ jobs:

be-tests-mongo-latest-ee:
needs: files-changed
if: github.event.pull_request.draft == false && needs.files-changed.outputs.backend_all == 'true'
if: |
(github.event.pull_request.draft == false && needs.files-changed.outputs.backend_all == 'true') &&
(github.event.pull_request.head.repo.full_name == github.repository || github.event.workflow_run.conclusion == 'success')
runs-on: ubuntu-22.04
timeout-minutes: 90
env:
Expand All @@ -327,7 +354,9 @@ jobs:

be-tests-mysql-5-7-ee:
needs: files-changed
if: github.event.pull_request.draft == false && needs.files-changed.outputs.backend_all == 'true'
if: |
(github.event.pull_request.draft == false && needs.files-changed.outputs.backend_all == 'true') &&
(github.event.pull_request.head.repo.full_name == github.repository || github.event.workflow_run.conclusion == 'success')
runs-on: ubuntu-22.04
timeout-minutes: 90
env:
Expand All @@ -353,7 +382,9 @@ jobs:

be-tests-mysql-latest-ee:
needs: files-changed
if: github.event.pull_request.draft == false && needs.files-changed.outputs.backend_all == 'true'
if: |
(github.event.pull_request.draft == false && needs.files-changed.outputs.backend_all == 'true') &&
(github.event.pull_request.head.repo.full_name == github.repository || github.event.workflow_run.conclusion == 'success')
runs-on: ubuntu-22.04
timeout-minutes: 90
env:
Expand Down Expand Up @@ -391,7 +422,9 @@ jobs:

be-tests-oracle-18-4-ee:
needs: files-changed
if: github.event.pull_request.draft == false && needs.files-changed.outputs.backend_all == 'true'
if: |
(github.event.pull_request.draft == false && needs.files-changed.outputs.backend_all == 'true') &&
(github.event.pull_request.head.repo.full_name == github.repository || github.event.workflow_run.conclusion == 'success')
runs-on: ubuntu-22.04
timeout-minutes: 90
env:
Expand All @@ -418,7 +451,9 @@ jobs:

be-tests-oracle-21-3-ee:
needs: files-changed
if: github.event.pull_request.draft == false && needs.files-changed.outputs.backend_all == 'true'
if: |
(github.event.pull_request.draft == false && needs.files-changed.outputs.backend_all == 'true') &&
(github.event.pull_request.head.repo.full_name == github.repository || github.event.workflow_run.conclusion == 'success')
runs-on: ubuntu-22.04
timeout-minutes: 90
env:
Expand Down Expand Up @@ -454,7 +489,9 @@ jobs:

be-tests-postgres-ee:
needs: files-changed
if: github.event.pull_request.draft == false && needs.files-changed.outputs.backend_all == 'true'
if: |
(github.event.pull_request.draft == false && needs.files-changed.outputs.backend_all == 'true') &&
(github.event.pull_request.head.repo.full_name == github.repository || github.event.workflow_run.conclusion == 'success')
runs-on: ubuntu-22.04
timeout-minutes: 90
env:
Expand Down Expand Up @@ -484,7 +521,9 @@ jobs:

be-tests-postgres-latest-ee:
needs: files-changed
if: github.event.pull_request.draft == false && needs.files-changed.outputs.backend_all == 'true'
if: |
(github.event.pull_request.draft == false && needs.files-changed.outputs.backend_all == 'true') &&
(github.event.pull_request.head.repo.full_name == github.repository || github.event.workflow_run.conclusion == 'success')
runs-on: ubuntu-22.04
timeout-minutes: 90
env:
Expand Down Expand Up @@ -517,7 +556,9 @@ jobs:

be-tests-presto-jdbc-ee:
needs: files-changed
if: github.event.pull_request.draft == false && needs.files-changed.outputs.backend_all == 'true'
if: |
(github.event.pull_request.draft == false && needs.files-changed.outputs.backend_all == 'true') &&
(github.event.pull_request.head.repo.full_name == github.repository || github.event.workflow_run.conclusion == 'success')
runs-on: ubuntu-22.04
timeout-minutes: 90
env:
Expand Down Expand Up @@ -567,7 +608,9 @@ jobs:

be-tests-redshift-ee:
needs: files-changed
if: github.event.pull_request.draft == false && needs.files-changed.outputs.backend_all == 'true'
if: |
(github.event.pull_request.draft == false && needs.files-changed.outputs.backend_all == 'true') &&
(github.event.pull_request.head.repo.full_name == github.repository || github.event.workflow_run.conclusion == 'success')
runs-on: ubuntu-22.04
timeout-minutes: 90
env:
Expand All @@ -587,7 +630,9 @@ jobs:

be-tests-snowflake-ee:
needs: files-changed
if: github.event.pull_request.draft == false && needs.files-changed.outputs.backend_all == 'true'
if: |
(github.event.pull_request.draft == false && needs.files-changed.outputs.backend_all == 'true') &&
(github.event.pull_request.head.repo.full_name == github.repository || github.event.workflow_run.conclusion == 'success')
runs-on: ubuntu-22.04
timeout-minutes: 90
env:
Expand All @@ -609,7 +654,9 @@ jobs:

be-tests-sparksql-ee:
needs: files-changed
if: github.event.pull_request.draft == false && needs.files-changed.outputs.backend_all == 'true'
if: |
(github.event.pull_request.draft == false && needs.files-changed.outputs.backend_all == 'true') &&
(github.event.pull_request.head.repo.full_name == github.repository || github.event.workflow_run.conclusion == 'success')
runs-on: ubuntu-22.04
timeout-minutes: 90
env:
Expand All @@ -630,7 +677,9 @@ jobs:

be-tests-sqlite-ee:
needs: files-changed
if: github.event.pull_request.draft == false && needs.files-changed.outputs.backend_all == 'true'
if: |
(github.event.pull_request.draft == false && needs.files-changed.outputs.backend_all == 'true') &&
(github.event.pull_request.head.repo.full_name == github.repository || github.event.workflow_run.conclusion == 'success')
runs-on: ubuntu-22.04
timeout-minutes: 90
env:
Expand All @@ -646,7 +695,9 @@ jobs:

be-tests-sqlserver-2017-ee:
needs: files-changed
if: github.event.pull_request.draft == false && needs.files-changed.outputs.backend_all == 'true'
if: |
(github.event.pull_request.draft == false && needs.files-changed.outputs.backend_all == 'true') &&
(github.event.pull_request.head.repo.full_name == github.repository || github.event.workflow_run.conclusion == 'success')
runs-on: ubuntu-22.04
timeout-minutes: 90
env:
Expand Down Expand Up @@ -674,7 +725,9 @@ jobs:

be-tests-sqlserver-2022-ee:
needs: files-changed
if: github.event.pull_request.draft == false && needs.files-changed.outputs.backend_all == 'true'
if: |
(github.event.pull_request.draft == false && needs.files-changed.outputs.backend_all == 'true') &&
(github.event.pull_request.head.repo.full_name == github.repository || github.event.workflow_run.conclusion == 'success')
runs-on: ubuntu-22.04
timeout-minutes: 90
env:
Expand Down Expand Up @@ -702,7 +755,9 @@ jobs:

be-tests-vertica-ee:
needs: files-changed
if: github.event.pull_request.draft == false && needs.files-changed.outputs.backend_all == 'true'
if: |
(github.event.pull_request.draft == false && needs.files-changed.outputs.backend_all == 'true') &&
(github.event.pull_request.head.repo.full_name == github.repository || github.event.workflow_run.conclusion == 'success')
runs-on: ubuntu-22.04
timeout-minutes: 90
env:
Expand Down
17 changes: 17 additions & 0 deletions .github/workflows/external-filter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: External Trigger Filter

on:
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
branches:
- 'master'
paths-ignore:
- '.github/**'

jobs:
trigger:
runs-on: ubuntu-22.04
timeout-minutes: 5
if: github.event.pull_request.head.repo.full_name != github.repository
steps:
- run: echo 'Thank you for your contribution to Metabase!'
1 change: 0 additions & 1 deletion frontend/parse-deps.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ function dependencies() {
},
});
} catch (e) {
console.error(filename, e.toString());
process.exit(-1);
}
const base = path.dirname(filename) + path.sep;
Expand Down
2 changes: 1 addition & 1 deletion frontend/test/metabase/lib/api.unit.spec.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import fetchMock from "fetch-mock";
import api, { GET, POST, PUT } from "metabase/lib/api";
api.basename = "";


describe("api", () => {
const successResponse = { body: { status: "ok" } };
Expand Down