From 603d0986857b915c21435b470fdde81cfe95c19b Mon Sep 17 00:00:00 2001 From: Sergio Cazzolato Date: Wed, 26 Feb 2025 13:18:01 -0300 Subject: [PATCH] storing USE_ALTERNATIVE_BACKEND in gce bucket instead of using a var This is needed because the vars are not shared to forked environments --- .github/workflows/spread-tests.yaml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/spread-tests.yaml b/.github/workflows/spread-tests.yaml index 414edb813b7..7b75776dee2 100644 --- a/.github/workflows/spread-tests.yaml +++ b/.github/workflows/spread-tests.yaml @@ -139,8 +139,6 @@ jobs: - name: Setup run tests variable if: "!contains(github.event.pull_request.labels.*.name, 'Skip spread')" - env: - USE_ALTERNATIVE_BACKEND: ${{ vars.USE_ALTERNATIVE_BACKEND }} run: | get_new_tasks() { local prefix=$1 @@ -162,6 +160,7 @@ jobs: # Determine if the alternative backend has to be used for the current group # Alternative backends usage depends on the value stored in the var USE_ALTERNATIVE_BACKEND, # where it is defined the backend to use when images are ready in both google and openstack. + USE_ALTERNATIVE_BACKEND="$(curl -s https://storage.googleapis.com/snapd-spread-tests/snapd-tests/ci/USE_ALTERNATIVE_BACKEND)" SPREAD_BACKEND="${{ inputs.backend }}" if [ -n "${{ inputs.alternative-backend }}" ] && grep "${{ inputs.group }}: true" <<< "$USE_ALTERNATIVE_BACKEND" ; then SPREAD_BACKEND="${{ inputs.alternative-backend }}"