diff --git a/.github/workflows/integrate.yaml b/.github/workflows/integrate.yaml index 2427c2e2..70e44f56 100644 --- a/.github/workflows/integrate.yaml +++ b/.github/workflows/integrate.yaml @@ -68,24 +68,24 @@ jobs: juju-channel: 3.1/stable charmcraft-channel: latest/candidate - - name: Setup Charmcraft's cache - id: cache - uses: actions/cache@v4 - with: - path: ${{ env.CRAFT_SHARED_CACHE }} - # Cache keys must be unique - there is no overwrite mechanic. Add IDs to avoid this (is there a better set of IDs?) - # partial ref: https://github.com/actions/cache/blob/main/tips-and-workarounds.md#update-a-cache - # To match the most recent previous cache, use restore-keys with the craft-shared-cache prefix. This will hit the - # "first" match, which will be from the most recent run. - # ref: https://docs.github.com/en/actions/using-workflows/caching-dependencies-to-speed-up-workflows#matching-a-cache-key - key: craft-shared-cache-${{ github.run_id }}-${{ github.run_attempt }}-${{ github.job }}-${{ strategy.job-index }} - restore-keys: craft-shared-cache + - name: Setup Charmcraft's cache + id: cache + uses: actions/cache@v4 + with: + path: ${{ env.CRAFT_SHARED_CACHE }} + # Cache keys must be unique - there is no overwrite mechanic. Add IDs to avoid this (is there a better set of IDs?) + # partial ref: https://github.com/actions/cache/blob/main/tips-and-workarounds.md#update-a-cache + # To match the most recent previous cache, use restore-keys with the craft-shared-cache prefix. This will hit the + # "first" match, which will be from the most recent run. + # ref: https://docs.github.com/en/actions/using-workflows/caching-dependencies-to-speed-up-workflows#matching-a-cache-key + key: craft-shared-cache-${{ github.run_id }}-${{ github.run_attempt }}-${{ github.job }}-${{ strategy.job-index }} + restore-keys: craft-shared-cache - # DEBUG: remove this - - name: emit charmcraft cache directory contents - run: | - find $CRAFT_SHARED_CACHE | wc -l - find $CRAFT_SHARED_CACHE/wheels | wc -l + # DEBUG: remove this + - name: emit charmcraft cache directory contents + run: | + find $CRAFT_SHARED_CACHE | wc -l + find $CRAFT_SHARED_CACHE/wheels | wc -l - name: Run integration tests run: | @@ -93,20 +93,20 @@ jobs: tox -e ${{ matrix.integration-types }} -- --model test-istio timeout-minutes: 80 - # DEBUG: remove this - - name: emit charmcraft cache directory contents - run: | - find $CRAFT_SHARED_CACHE | wc -l - find $CRAFT_SHARED_CACHE/wheels | wc -l - - - name: Setup Debug Artifact Collection - run: mkdir tmp - if: failure() - - - name: Collect charmcraft logs - if: failure() + # DEBUG: remove this + - name: emit charmcraft cache directory contents run: | - cat /home/runner/.local/state/charmcraft/log/charmcraft-*.log | tee tmp/charmcraft.log + find $CRAFT_SHARED_CACHE | wc -l + find $CRAFT_SHARED_CACHE/wheels | wc -l + + - name: Setup Debug Artifact Collection + run: mkdir tmp + if: failure() + + - name: Collect charmcraft logs + if: failure() + run: | + cat /home/runner/.local/state/charmcraft/log/charmcraft-*.log | tee tmp/charmcraft.log - name: Collect Juju status if: failure()