From 2803946a886f6fd705ea1b62cf8e98a96d6827fe Mon Sep 17 00:00:00 2001 From: Max Gautier Date: Thu, 29 Aug 2024 15:36:59 +0200 Subject: [PATCH] Add vagrant boxes caching to CI We're hitting 429 responses when running lots of jobs, presumably because we are downloading lots of boxes again and again. This should cache them instead. --- .gitlab-ci/molecule.yml | 4 ++++ .gitlab-ci/vagrant.yml | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/.gitlab-ci/molecule.yml b/.gitlab-ci/molecule.yml index c5fd4d4b249..9176b7dbe8a 100644 --- a/.gitlab-ci/molecule.yml +++ b/.gitlab-ci/molecule.yml @@ -29,6 +29,10 @@ when: always paths: - molecule_logs/ + cache: + key: vagrant_boxes + paths: + - ~/vagrant.d/boxes/ # CI template for periodic CI jobs # Enabled when PERIODIC_CI_ENABLED var is set diff --git a/.gitlab-ci/vagrant.yml b/.gitlab-ci/vagrant.yml index 3e581ae5ca0..908ce4b677d 100644 --- a/.gitlab-ci/vagrant.yml +++ b/.gitlab-ci/vagrant.yml @@ -27,6 +27,10 @@ - ./tests/scripts/vagrant_clean.sh script: - ./tests/scripts/testcases_run.sh + cache: + key: vagrant_boxes + paths: + - ~/vagrant.d/boxes/ vagrant_ubuntu20-calico-dual-stack: stage: deploy-extended