Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
Metabase
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Engineering Digital Service
Metabase
Commits
8ef7eb59
Unverified
Commit
8ef7eb59
authored
1 year ago
by
Nemanja Glumac
Committed by
GitHub
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
Improve external filter checks (#35740)
* Improve and unify `external-filter` checks * Refine E2E jobs conditionals
parent
4657ee5a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.github/workflows/chromatic.yml
+5
-1
5 additions, 1 deletion
.github/workflows/chromatic.yml
.github/workflows/drivers.yml
+68
-52
68 additions, 52 deletions
.github/workflows/drivers.yml
.github/workflows/e2e-tests.yml
+7
-7
7 additions, 7 deletions
.github/workflows/e2e-tests.yml
with
80 additions
and
60 deletions
.github/workflows/chromatic.yml
+
5
−
1
View file @
8ef7eb59
...
...
@@ -16,7 +16,11 @@ concurrency:
jobs
:
external-filter
:
if
:
github.event.pull_request.head.repo.full_name == github.repository || github.event.workflow_run.conclusion == 'success'
# 1. within the organization OR
# 2. fork
if
:
|
github.event_name == 'push' || github.event.pull_request.head.repo.full_name == github.repository ||
github.event.workflow_run.conclusion == 'success'
runs-on
:
ubuntu-22.04
timeout-minutes
:
3
steps
:
...
...
This diff is collapsed.
Click to expand it.
.github/workflows/drivers.yml
+
68
−
52
View file @
8ef7eb59
...
...
@@ -16,6 +16,22 @@ concurrency:
cancel-in-progress
:
true
jobs
:
external-filter
:
# 1. within the organization OR
# 2. fork
if
:
|
github.event_name == 'push' || github.event.pull_request.head.repo.full_name == github.repository ||
github.event.workflow_run.conclusion == 'success'
runs-on
:
ubuntu-22.04
timeout-minutes
:
3
steps
:
-
run
:
|
if ${{ github.event.pull_request.head.repo.full_name == github.repository }}; then
echo 'Running Drivers tests within the organization.'
elif ${{ github.event.workflow_run.conclusion == 'success' }}; then
echo "Running Drivers tests for the external contributor. Thank you!"
fi
files-changed
:
name
:
Check which files changed
runs-on
:
ubuntu-22.04
...
...
@@ -32,10 +48,10 @@ jobs:
filters
:
.github/file-paths.yaml
be-tests-athena-ee
:
needs
:
files-changed
needs
:
[
files-changed
,
external-filter
]
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'
)
needs.external-filter.result
== 'success'
runs-on
:
ubuntu-22.04
timeout-minutes
:
90
env
:
...
...
@@ -54,10 +70,10 @@ jobs:
test-args
:
"
:exclude-tags
'[:mb/once]'"
be-tests-bigquery-cloud-sdk-ee
:
needs
:
files-changed
needs
:
[
files-changed
,
external-filter
]
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'
)
needs.external-filter.result
== 'success'
runs-on
:
ubuntu-22.04
timeout-minutes
:
90
env
:
...
...
@@ -78,10 +94,10 @@ jobs:
test-args
:
"
:exclude-tags
'[:mb/once]'"
be-tests-druid-ee
:
needs
:
files-changed
needs
:
[
files-changed
,
external-filter
]
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'
)
needs.external-filter.result
== 'success'
runs-on
:
ubuntu-22.04
timeout-minutes
:
90
env
:
...
...
@@ -103,10 +119,10 @@ jobs:
test-args
:
"
:exclude-tags
'[:mb/once]'"
be-tests-googleanalytics-ee
:
needs
:
files-changed
needs
:
[
files-changed
,
external-filter
]
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'
)
needs.external-filter.result
== 'success'
runs-on
:
ubuntu-22.04
timeout-minutes
:
90
env
:
...
...
@@ -121,10 +137,10 @@ jobs:
test-args
:
"
:exclude-tags
'[:mb/once]'"
be-google-related-drivers-classpath-test
:
needs
:
files-changed
needs
:
[
files-changed
,
external-filter
]
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'
)
needs.external-filter.result
== 'success'
runs-on
:
ubuntu-22.04
timeout-minutes
:
90
env
:
...
...
@@ -145,10 +161,10 @@ jobs:
test-args
:
'
:only
"[metabase.query-processor-test.expressions-test
metabase.driver.google-test
metabase.driver.googleanalytics-test]"'
be-tests-mariadb-10-2-ee
:
needs
:
files-changed
needs
:
[
files-changed
,
external-filter
]
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'
)
needs.external-filter.result
== 'success'
runs-on
:
ubuntu-22.04
timeout-minutes
:
90
env
:
...
...
@@ -173,10 +189,10 @@ jobs:
junit-name
:
'
be-tests-mariadb-10-2-ee'
be-tests-mariadb-latest-ee
:
needs
:
files-changed
needs
:
[
files-changed
,
external-filter
]
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'
)
needs.external-filter.result
== 'success'
runs-on
:
ubuntu-22.04
timeout-minutes
:
90
env
:
...
...
@@ -201,10 +217,10 @@ jobs:
junit-name
:
'
be-tests-mariadb-latest-ee'
be-tests-mongo-4-4-ee
:
needs
:
files-changed
needs
:
[
files-changed
,
external-filter
]
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'
)
needs.external-filter.result
== 'success'
runs-on
:
ubuntu-22.04
timeout-minutes
:
90
env
:
...
...
@@ -226,10 +242,10 @@ jobs:
test-args
:
"
:exclude-tags
'[:mb/once]'"
be-tests-mongo-4-4-ssl-ee
:
needs
:
files-changed
needs
:
[
files-changed
,
external-filter
]
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'
)
needs.external-filter.result
== 'success'
runs-on
:
ubuntu-22.04
timeout-minutes
:
90
env
:
...
...
@@ -263,10 +279,10 @@ jobs:
test-args
:
"
:exclude-tags
'[:mb/once]'"
be-tests-mongo-5-0-ee
:
needs
:
files-changed
needs
:
[
files-changed
,
external-filter
]
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'
)
needs.external-filter.result
== 'success'
runs-on
:
ubuntu-22.04
timeout-minutes
:
90
env
:
...
...
@@ -288,10 +304,10 @@ jobs:
test-args
:
"
:exclude-tags
'[:mb/once]'"
be-tests-mongo-5-0-ssl-ee
:
needs
:
files-changed
needs
:
[
files-changed
,
external-filter
]
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'
)
needs.external-filter.result
== 'success'
runs-on
:
ubuntu-22.04
timeout-minutes
:
90
env
:
...
...
@@ -325,10 +341,10 @@ jobs:
test-args
:
"
:exclude-tags
'[:mb/once]'"
be-tests-mongo-latest-ee
:
needs
:
files-changed
needs
:
[
files-changed
,
external-filter
]
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'
)
needs.external-filter.result
== 'success'
runs-on
:
ubuntu-22.04
timeout-minutes
:
90
env
:
...
...
@@ -353,10 +369,10 @@ jobs:
test-args
:
"
:exclude-tags
'[:mb/once]'"
be-tests-mysql-8-0-ee
:
needs
:
files-changed
needs
:
[
files-changed
,
external-filter
]
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'
)
needs.external-filter.result
== 'success'
runs-on
:
ubuntu-22.04
timeout-minutes
:
90
env
:
...
...
@@ -381,10 +397,10 @@ jobs:
junit-name
:
'
be-tests-mysql-8-0-ee'
be-tests-mysql-latest-ee
:
needs
:
files-changed
needs
:
[
files-changed
,
external-filter
]
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'
)
needs.external-filter.result
== 'success'
runs-on
:
ubuntu-22.04
timeout-minutes
:
90
env
:
...
...
@@ -421,10 +437,10 @@ jobs:
junit-name
:
'
be-tests-mysql-latest-ee'
be-tests-oracle-18-4-ee
:
needs
:
files-changed
needs
:
[
files-changed
,
external-filter
]
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'
)
needs.external-filter.result
== 'success'
runs-on
:
ubuntu-22.04
timeout-minutes
:
90
env
:
...
...
@@ -450,10 +466,10 @@ jobs:
test-args
:
"
:exclude-tags
'[:mb/once]'"
be-tests-oracle-21-3-ee
:
needs
:
files-changed
needs
:
[
files-changed
,
external-filter
]
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'
)
needs.external-filter.result
== 'success'
runs-on
:
ubuntu-22.04
timeout-minutes
:
90
env
:
...
...
@@ -488,10 +504,10 @@ jobs:
test-args
:
"
:exclude-tags
'[:mb/once]'"
be-tests-postgres-ee
:
needs
:
files-changed
needs
:
[
files-changed
,
external-filter
]
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'
)
needs.external-filter.result
== 'success'
runs-on
:
ubuntu-22.04
timeout-minutes
:
90
env
:
...
...
@@ -520,10 +536,10 @@ jobs:
junit-name
:
'
be-tests-postgres-ee'
be-tests-postgres-latest-ee
:
needs
:
files-changed
needs
:
[
files-changed
,
external-filter
]
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'
)
needs.external-filter.result
== 'success'
runs-on
:
ubuntu-22.04
timeout-minutes
:
90
env
:
...
...
@@ -555,10 +571,10 @@ jobs:
junit-name
:
'
be-tests-postgres-latest-ee'
be-tests-presto-jdbc-ee
:
needs
:
files-changed
needs
:
[
files-changed
,
external-filter
]
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'
)
needs.external-filter.result
== 'success'
runs-on
:
ubuntu-22.04
timeout-minutes
:
90
env
:
...
...
@@ -607,10 +623,10 @@ jobs:
test-args
:
"
:exclude-tags
'[:mb/once]'"
be-tests-redshift-ee
:
needs
:
files-changed
needs
:
[
files-changed
,
external-filter
]
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'
)
needs.external-filter.result
== 'success'
runs-on
:
ubuntu-22.04
timeout-minutes
:
90
env
:
...
...
@@ -629,10 +645,10 @@ jobs:
test-args
:
"
:exclude-tags
'[:mb/once]'"
be-tests-snowflake-ee
:
needs
:
files-changed
needs
:
[
files-changed
,
external-filter
]
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'
)
needs.external-filter.result
== 'success'
runs-on
:
ubuntu-22.04
timeout-minutes
:
90
env
:
...
...
@@ -653,10 +669,10 @@ jobs:
test-args
:
"
:exclude-tags
'[:mb/once]'"
be-tests-sparksql-ee
:
needs
:
files-changed
needs
:
[
files-changed
,
external-filter
]
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'
)
needs.external-filter.result
== 'success'
runs-on
:
ubuntu-22.04
timeout-minutes
:
90
env
:
...
...
@@ -676,10 +692,10 @@ jobs:
test-args
:
"
:exclude-tags
'[:mb/once]'"
be-tests-sqlite-ee
:
needs
:
files-changed
needs
:
[
files-changed
,
external-filter
]
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'
)
needs.external-filter.result
== 'success'
runs-on
:
ubuntu-22.04
timeout-minutes
:
90
env
:
...
...
@@ -694,10 +710,10 @@ jobs:
test-args
:
"
:exclude-tags
'[:mb/once]'"
be-tests-sqlserver-2017-ee
:
needs
:
files-changed
needs
:
[
files-changed
,
external-filter
]
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'
)
needs.external-filter.result
== 'success'
runs-on
:
ubuntu-22.04
timeout-minutes
:
90
env
:
...
...
@@ -724,10 +740,10 @@ jobs:
test-args
:
"
:exclude-tags
'[:mb/once]'"
be-tests-sqlserver-2022-ee
:
needs
:
files-changed
needs
:
[
files-changed
,
external-filter
]
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'
)
needs.external-filter.result
== 'success'
runs-on
:
ubuntu-22.04
timeout-minutes
:
90
env
:
...
...
@@ -754,10 +770,10 @@ jobs:
test-args
:
"
:exclude-tags
'[:mb/once]'"
be-tests-vertica-ee
:
needs
:
files-changed
needs
:
[
files-changed
,
external-filter
]
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'
)
needs.external-filter.result
== 'success'
runs-on
:
ubuntu-22.04
timeout-minutes
:
90
env
:
...
...
This diff is collapsed.
Click to expand it.
.github/workflows/e2e-tests.yml
+
7
−
7
View file @
8ef7eb59
...
...
@@ -17,7 +17,11 @@ concurrency:
jobs
:
external-filter
:
if
:
github.event.pull_request.head.repo.full_name == github.repository || github.event.workflow_run.conclusion == 'success'
# 1. within the organization OR
# 2. fork
if
:
|
github.event_name == 'push' || github.event.pull_request.head.repo.full_name == github.repository ||
github.event.workflow_run.conclusion == 'success'
runs-on
:
ubuntu-22.04
timeout-minutes
:
3
steps
:
...
...
@@ -30,8 +34,6 @@ jobs:
files-changed
:
name
:
Check which files changed
needs
:
external-filter
if
:
needs.external-filter.result == 'success'
runs-on
:
ubuntu-22.04
timeout-minutes
:
3
outputs
:
...
...
@@ -46,8 +48,6 @@ jobs:
filters
:
.github/file-paths.yaml
e2e-matrix-builder
:
needs
:
external-filter
if
:
needs.external-filter.result == 'success'
runs-on
:
ubuntu-22.04
timeout-minutes
:
5
outputs
:
...
...
@@ -210,10 +210,10 @@ jobs:
if-no-files-found
:
ignore
e2e-tests-skipped-stub
:
needs
:
[
e2e-tests
,
e2e-matrix-builder
,
external-filter
]
needs
:
[
e2e-tests
,
e2e-matrix-builder
]
if
:
|
!cancelled() &&
needs.e2e-tests.result == 'skipped'
&& needs.external-filter.result == 'success'
needs.e2e-tests.result == 'skipped'
runs-on
:
${{ matrix.runner }}
timeout-minutes
:
5
name
:
e2e-tests-${{ matrix.name }}-${{ matrix.edition }}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment