Skip to content

Commit

Permalink
ci: dump enclave state and logs on ci failures (#292)
Browse files Browse the repository at this point in the history
* ci: dump enclave logs

* fix: only run on failures

* test: attempt to make the ci fail

* fix: dump path

* fix: typo

* test: remove exit 1
  • Loading branch information
leovct authored Oct 2, 2024
1 parent 0a08891 commit 184c694
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,17 @@ jobs:
working-directory: .github/scripts
run: ./monitor-verified-batches.sh --rpc-url $(kurtosis port print ${{ env.ENCLAVE_NAME }} cdk-erigon-node-001 rpc)

- name: Dump enclave logs
if: failure()
run: kurtosis dump ./dump

- name: Upload logs
if: failure()
uses: actions/upload-artifact@v4
with:
name: dump_run_without_args_${{ github.run_id }}
path: ./dump

list-ymls:
runs-on: ubuntu-latest
timeout-minutes: 5
Expand Down Expand Up @@ -106,6 +117,17 @@ jobs:
echo "Skipping batch verification as there is no zkevm permissionless RPC in the environment"
fi
- name: Dump enclave logs
if: failure()
run: kurtosis dump ./dump

- name: Upload logs
if: failure()
uses: actions/upload-artifact@v4
with:
name: dump_run_with_args_${{ matrix.file_name }}_${{ github.run_id }}
path: ./dump

additional_services:
runs-on: ubuntu-latest
timeout-minutes: 30
Expand Down Expand Up @@ -151,6 +173,17 @@ jobs:
exit 1
fi
- name: Dump enclave logs
if: failure()
run: kurtosis dump ./dump

- name: Upload logs
if: failure()
uses: actions/upload-artifact@v4
with:
name: dump_additional_services_${{ github.run_id }}
path: ./dump

attach_cdks:
runs-on: ubuntu-latest
timeout-minutes: 30
Expand Down Expand Up @@ -189,3 +222,14 @@ jobs:
- name: Monitor verified batches of the second L2 chain (CDK Erigon Permissionless RPC)
working-directory: .github/scripts
run: ./monitor-verified-batches.sh --rpc-url "$(kurtosis port print ${{ env.ENCLAVE_NAME }} cdk-erigon-node-002 rpc)"

- name: Dump enclave logs
if: failure()
run: kurtosis dump ./dump

- name: Upload logs
if: failure()
uses: actions/upload-artifact@v4
with:
name: dump_attach_ckds_${{ github.run_id }}
path: ./dump

0 comments on commit 184c694

Please sign in to comment.