Cache GOCACHE in CI
What does this MR do?
Adds caching for some Go-related jobs:
-
prebuild
helper images
tests definitions
-
build
binaries
-
test
lint
unit test
unit test with race
windows 1809 tests
windows 1903 tests
windows 1909 tests
git 1.7.1
The caches are per job and per branch.
Why was this MR needed?
To speed up the pipeline. The current gains are at around 4-9 minutes, but only for the second and subsequent runs of an MR pipeline. I'm expecting that performance gains will be more visible once !2076 (merged) is merged.
Are there points in the code the reviewer needs to double check?
- Currently the cache is also restored for
master
, but we want to avoid using the cache in themaster
branch to make sure the build is always reliable.
Does this MR meet the acceptance criteria?
-
Documentation created/updated -
Added tests for this feature/bug -
In case of conflicts with master
- branch was rebased
What are the relevant issue numbers?
Edited by Pedro Pombeiro