From 1ea679bfefb7f3b850482bae1e2f50e6c1d7a505 Mon Sep 17 00:00:00 2001 From: Miro Stauder Date: Mon, 18 Mar 2024 09:10:28 +0100 Subject: [PATCH] Update ci-repltests.yml --- .github/workflows/ci-repltests.yml | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci-repltests.yml b/.github/workflows/ci-repltests.yml index df5b249f6..131cd540d 100644 --- a/.github/workflows/ci-repltests.yml +++ b/.github/workflows/ci-repltests.yml @@ -21,7 +21,6 @@ jobs: TESTDIST: ${{ matrix.testdist }} INFRADB: ${{ matrix.infradb }} BLDCACHE: CI-builds_${{ github.sha }}_${{ matrix.testdist }}-tap_src -# BASELINE: ${{ vars[format('BASELINE_3P_MARIADB_CONNECTOR_C_{0}', matrix.infradb)] }} steps: @@ -30,11 +29,26 @@ jobs: sudo apt-get update -y sudo apt-get install -y sysbench gettext + - name: Wait for cache + env: + GH_TOKEN: ${{ secrets.gh_token }} + run: | + echo "BASELINE: '${BASELINE}'" + echo "Wating for cache '${BLDCACHE}' ..." + #sleep 550 + PROBE="$(gh cache list --repo sysown/proxysql | grep -i ${BLDCACHE})" + while [[ -z ${PROBE} ]]; do + echo "Wating for cache '${BLDCACHE}' ..." + sleep 30 + PROBE="$(gh cache list --repo sysown/proxysql | grep -i ${BLDCACHE})" + done + echo "Cache available '${BLDCACHE}'" + - name: Cache restore src id: cache-src uses: actions/cache/restore@v4 with: - key: CI-builds_${{ github.sha }}_ubuntu22-tap_src + key: ${{ env.BLDCACHE }} fail-on-cache-miss: true path: | proxysql/src/