From 114764dea813dca7c5ee76ba7ee6dc76dc8ecb7a Mon Sep 17 00:00:00 2001 From: Alex Tercete Date: Thu, 30 Jan 2025 10:06:10 +0000 Subject: [PATCH] ci: make `qemu` job depend on `format-check` Otherwise, `qemu` runs regardless of whether the `.pre` stage completes succesfully, causing a waste of CI resources. --- .gitlab-ci.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index b2e927f7..91676f25 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -40,6 +40,8 @@ default: qemu: extends: .base + needs: + - format-check variables: ROOT: e2e CONFIG: local @@ -78,6 +80,9 @@ format-check: script: # `rules_lint` uses non-hermetic Git unless we give it these arguments - bazelisk run //tools/format:format.check -- . --disable_git_attribute_checks + rules: + - !reference [.base, rules] + - if: $CI_MERGE_REQUEST_EVENT_TYPE == "merge_train" pages: stage: deploy -- GitLab