From f5992b73449939736bea08b4412631165f1c9708 Mon Sep 17 00:00:00 2001 From: Gabriel Adrian Samfira Date: Wed, 14 Aug 2024 19:32:14 +0000 Subject: [PATCH 1/2] Allow using LXD image mirror This change allows GARM tests to use a mirror for LXD images, allowing for faster image downloads. Signed-off-by: Gabriel Adrian Samfira --- .github/workflows/integration-tests.yml | 11 +++++++---- test/integration/config/garm-provider-lxd.toml | 2 +- test/integration/external_provider_test.go | 2 +- test/integration/organizations_test.go | 2 +- test/integration/repositories_test.go | 2 +- test/integration/scripts/setup-garm.sh | 3 ++- 6 files changed, 13 insertions(+), 9 deletions(-) diff --git a/.github/workflows/integration-tests.yml b/.github/workflows/integration-tests.yml index acc28800..f87b405f 100644 --- a/.github/workflows/integration-tests.yml +++ b/.github/workflows/integration-tests.yml @@ -18,6 +18,8 @@ jobs: - name: Setup LXD uses: canonical/setup-lxd@main + with: + channel: latest/stable - name: Install dependencies run: | @@ -42,9 +44,9 @@ jobs: echo "GARM_BASE_URL=$GARM_BASE_URL" >> $GITHUB_ENV - cat <> $GITHUB_ENV @@ -66,7 +67,7 @@ sudo chown -R $RUN_USER:$RUN_USER ${GARM_CONFIG_DIR} export LXD_PROVIDER_EXECUTABLE="$PROVIDER_BIN_DIR/garm-provider-lxd" export LXD_PROVIDER_CONFIG="${GARM_CONFIG_DIR}/garm-provider-lxd.toml" -sudo cp $CONFIG_DIR/garm-provider-lxd.toml $LXD_PROVIDER_CONFIG +cat $CONFIG_DIR/garm-provider-lxd.toml| envsubst | sudo tee $LXD_PROVIDER_CONFIG > /dev/null function clone_and_build_lxd_provider() { git clone https://github.com/cloudbase/garm-provider-lxd ~/garm-provider-lxd From 9a6f0e7926fc7d3295bcf353c43508a1615e9eca Mon Sep 17 00:00:00 2001 From: Gabriel Adrian Samfira Date: Wed, 14 Aug 2024 20:52:10 +0000 Subject: [PATCH 2/2] Pin go version Signed-off-by: Gabriel Adrian Samfira --- .github/workflows/go-tests.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/go-tests.yml b/.github/workflows/go-tests.yml index 7c6f6530..79483022 100644 --- a/.github/workflows/go-tests.yml +++ b/.github/workflows/go-tests.yml @@ -26,9 +26,9 @@ jobs: sudo apt-get update sudo apt-get install -y libbtrfs-dev build-essential apg jq - - uses: actions/setup-go@v3 + - uses: actions/setup-go@v5 with: - go-version: 'stable' + go-version: '^1.22.3' - uses: actions/checkout@v3 - name: make lint run: make golangci-lint && GOLANGCI_LINT_EXTRA_ARGS="--timeout=8m --build-tags=testing,integration" make lint