Skip to content

Commit

Permalink
patch(integration_test_charm.yaml): Collect snap download debug logs (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
carlcsaposs-canonical authored Jan 23, 2025
1 parent ac9cb94 commit 3c9003a
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion .github/workflows/integration_test_charm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ jobs:
needs:
- collect-integration-tests
runs-on: ${{ matrix.groups.runner || fromJSON(needs.collect-integration-tests.outputs.default_runner) }}
timeout-minutes: 290 # Sum of steps `timeout-minutes` + 5
timeout-minutes: 296 # Sum of steps `timeout-minutes` + 5
steps:
- name: (Data Platform hosted) Write job name to file
timeout-minutes: 1
Expand Down Expand Up @@ -349,6 +349,20 @@ jobs:
EOF
sudo microk8s stop
sudo microk8s start
# Temporarily collect logs to debug intermittent issue
# https://chat.canonical.com/canonical/pl/coy79dsktf8p3xje8boom8x8hy
- name: Run snap download for debugging
id: debug-snap-download
timeout-minutes: 1
continue-on-error: true
run: time curl -s -L -v -o charmed-postgresql_133.snap https://api.snapcraft.io/api/v1/snaps/download/mAiAP9VqaDs9TXjjb9RpIULHkYwb9IoH_133.snap > curl_debug.log 2>&1
- name: Upload snap download logs for debugging
timeout-minutes: 5
uses: actions/upload-artifact@v4
with:
name: debug-logs-snap-download-integration-test-charm-${{ inputs.cloud }}-juju-${{ inputs.juju-agent-version || steps.parse-versions.outputs.snap_channel_for_artifact }}-${{ inputs.architecture }}-${{ matrix.groups.artifact_group_id }}
path: curl_debug.log
if-no-files-found: error
- name: Set up microk8s
id: microk8s-setup
timeout-minutes: 15
Expand Down

0 comments on commit 3c9003a

Please sign in to comment.