Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitaly.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSami Hiltunen <shiltunen@gitlab.com>2022-05-20 18:06:41 +0300
committerSami Hiltunen <shiltunen@gitlab.com>2022-05-25 10:30:05 +0300
commit21d391f4f3e798f57a805b5a139ff57b71387d0e (patch)
tree1a4d396678a50e723c886216ad88d20b7a0fbfb2
parent69196e417e84758d460b41561e21f71cbc72b4f1 (diff)
Remove build dependency on verify step
The verify step currently depends on the build step as it will fail if the Go modules are not downloaded prior to the job executing. If the modules are not present, golang-ci will fail with a timeout as it exceeds the timeout while downloading the dependencies. This commit removes the dependency on build and instead downloads the modules prior to executing golang-ci. In the general case when the cache is available, this will allow the verify step to execute in parallel with the build steps.
-rw-r--r--.gitlab-ci.yml5
1 files changed, 4 insertions, 1 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 2578ad415..6809a65df 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -251,13 +251,16 @@ test:praefect_smoke:
- ./_build/bin/praefect -config config.praefect.toml sql-migrate
verify:
- needs: [ build ] # this job timeouts if the caches are not in place from the build step
+ needs: []
stage: test
cache:
- *cache_deps_configuration
- *cache_gems_configuration
- *cache_go_configuration
script:
+ # Download the dependencies in case there was no cache hit, otherwise
+ # golang-ci lint will timeout downloading them.
+ - go mod download
- make -j$(nproc) verify
artifacts:
paths: