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-23 10:53:13 +0300
commite083c2b46c625d4315409533b5e0e7dead408207 (patch)
tree9158d96720d9108b815b2a16d2ec741aa747f485
parenta57d0a5ee6d46d8611b16e6d64a7c66f6e123348 (diff)
Remove build dependency on verify stepsmh-pipeline-dependencies
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 fa2a5798e..cac952d1d 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: