Skip to content
Snippets Groups Projects
Commit 66e9f492 authored by Vladimir Istyufeev's avatar Vladimir Istyufeev Committed by GitHub
Browse files

Don't run `cargo-check-benches` for `master` based downstream staging pipelines (#12233)

parent 7679d061
Branches
No related merge requests found
......@@ -150,6 +150,18 @@ default:
- if: $CI_PIPELINE_SOURCE == "schedule"
- if: $CI_COMMIT_REF_NAME =~ /^[0-9]+$/ # PRs
# handle the specific case where benches could store incorrect bench data because of the downstream staging runs
# exclude cargo-check-benches from such runs
.test-refs-no-trigger-prs-only-check-benches:
rules:
- if: $CI_COMMIT_REF_NAME == "master" && $CI_PIPELINE_SOURCE == "parent_pipeline" && $CI_IMAGE =~ /staging$/
when: never
- if: $CI_PIPELINE_SOURCE == "pipeline"
when: never
- if: $CI_PIPELINE_SOURCE == "web"
- if: $CI_PIPELINE_SOURCE == "schedule"
- if: $CI_COMMIT_REF_NAME =~ /^[0-9]+$/ # PRs
.test-refs-wasmer-sandbox:
rules:
- if: $CI_PIPELINE_SOURCE == "web"
......
......@@ -59,7 +59,7 @@ cargo-check-benches:
CI_JOB_NAME: "cargo-check-benches"
extends:
- .docker-env
- .test-refs
- .test-refs-no-trigger-prs-only-check-benches
- .collect-artifacts
- .pipeline-stopper-artifacts
before_script:
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment