From 7b59d8c9d9b2104de7162ec0e40f6182a6830046 Mon Sep 17 00:00:00 2001 From: Théo Zimmermann Date: Sat, 24 Aug 2019 08:50:43 +0200 Subject: [gitlab/ci] Prevent Corn from running if Bignums has failed. The needs keyword needs to include all the transitive dependencies. Otherwise, we risk stage-3 being skipped but stage-4 being run as in https://gitlab.com/coq/coq/pipelines/78119475. The reason why we don't need to include bignums in the dependencies of corn is because the artifact for math-classes is the directory where both bignums and math-classes were built. --- .gitlab-ci.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index ce0c1d9af7..e20e0d6981 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -8,8 +8,11 @@ stages: - stage-4 # Only dependencies in stage 1, 2 and 3 - deploy -# When a job has no dependencies, it goes to stage 1. -# Otherwise, we set "needs" and "dependencies" to the same value. +# When a job has no dependencies, it goes to stage 1. Otherwise, we +# set both "needs" and "dependencies". "needs" is a superset of +# "dependencies" that should include all the transitive dependencies. +# "dependencies" only list the previous jobs whose artifact we need to +# keep. # some default values variables: @@ -654,6 +657,7 @@ library:ci-corn: stage: stage-4 needs: - build:edge+flambda + - plugin:ci-bignums - library:ci-math-classes dependencies: - build:edge+flambda -- cgit v1.2.3