From e083c2b46c625d4315409533b5e0e7dead408207 Mon Sep 17 00:00:00 2001 From: Sami Hiltunen Date: Fri, 20 May 2022 18:06:41 +0300 Subject: 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. --- .gitlab-ci.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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: -- cgit v1.2.3