ci: don't run sanity in Marge pipelines

This check is intended for the MR author; for everyone else, there's
nothing they can do if the job fails so it's pointless to run it.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25920>
This commit is contained in:
Eric Engestrom
2023-10-26 17:36:30 +01:00
committed by Marge Bot
parent 49395b4aa4
commit fac60c140b

View File

@@ -146,6 +146,8 @@ include:
- &is-pre-merge '$CI_PIPELINE_SOURCE == "merge_request_event"'
# Pre-merge pipeline for Marge Bot
- &is-pre-merge-for-marge '$GITLAB_USER_LOGIN == "marge-bot" && $CI_PIPELINE_SOURCE == "merge_request_event"'
# Pre-merge pipeline *not* for Marge Bot
- &is-pre-merge-not-for-marge '$GITLAB_USER_LOGIN != "marge-bot" && $CI_PIPELINE_SOURCE == "merge_request_event"'
.container+build-rules:
@@ -233,7 +235,7 @@ sanity:
- .fdo.ci-fairy
stage: sanity
rules:
- if: *is-pre-merge
- if: *is-pre-merge-not-for-marge
when: on_success
# Other cases default to never
variables: