Skip to content

Commit

Permalink
fix some old parachain refs
Browse files Browse the repository at this point in the history
  • Loading branch information
goncer authored Apr 12, 2024
1 parent 3a635bc commit 7d6aa2d
Showing 1 changed file with 9 additions and 11 deletions.
20 changes: 9 additions & 11 deletions .github/workflows/reusable-e2e-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -211,9 +211,6 @@ jobs:
env:
NODE_OPTIONS: --max_old_space_size=12288

- name: Get node logs
if: failure()
run: docker logs mangata-node-node-alice-1

- name: Test Report
uses: dorny/[email protected]
Expand Down Expand Up @@ -246,7 +243,7 @@ jobs:
- name: Prepare backup snapshots on workflow failure
if: failure()
env:
OUTPUT_DIR: devops/parachain-launch/output
OUTPUT_DIR: ./
run: |
# Set MATRIX_COMMAND_PATH to be used as a directory name to store specifc test run snapshots
echo "MATRIX_COMMAND_PATH=$(echo ${{ matrix.command }} | sed 's/[^a-zA-Z0-9]/-/g')" >> $GITHUB_ENV
Expand All @@ -255,33 +252,34 @@ jobs:
tar cvzf ${OUTPUT_DIR}/logs.tgz ./logs
# Generate image snapshots
docker commit $(docker ps | grep parachain-2110-0 | awk '{print $1}') mangata_test_run/mangata_alice_1
docker commit $(docker ps | grep mangata-node-node-alice-1 | awk '{print $1}') mangata_test_run/mangata_alice_1
docker save --output=${OUTPUT_DIR}/mangata_alice_1.tar mangata_test_run/mangata_alice_1
docker commit $(docker ps | grep parachain-2110-1 | awk '{print $1}') mangata_test_run/mangata_bob_1
docker commit $(docker ps | grep mangata-node-node-bob-1 | awk '{print $1}') mangata_test_run/mangata_bob_1
docker save --output=${OUTPUT_DIR}/mangata_bob_1.tar mangata_test_run/mangata_bob_1
# Generate volume snapshots
docker run -v output_parachain-2110-0:/volume --rm --log-driver none loomchild/volume-backup backup > ${OUTPUT_DIR}/mangata_alice_1_volume.tar.bz2
docker run -v output_parachain-2110-1:/volume --rm --log-driver none loomchild/volume-backup backup > ${OUTPUT_DIR}/mangata_bob_1_volume.tar.bz2
docker run -v data-alith:/volume --rm --log-driver none loomchild/volume-backup backup > ${OUTPUT_DIR}/mangata_alice_1_volume.tar.bz2
docker run -v data-baltathar:/volume --rm --log-driver none loomchild/volume-backup backup > ${OUTPUT_DIR}/mangata_bob_1_volume.tar.bz2
- uses: google-github-actions/auth@v1
if: failure()
with:
workload_identity_provider: '${{ secrets.GCP_WORKLOAD_IDENTITY_PROVIDER }}'
service_account: '${{ secrets.GCP_SERVICE_ACCOUNT }}'

- name: Upload node storage data to GCP bucket
if: failure()
uses: google-github-actions/[email protected]
with:
process_gcloudignore: false
path: devops/parachain-launch/output
destination: mangata-node-ci-cache/${{ github.sha }}/${{ env.MATRIX_COMMAND_PATH }}

- name: Add GCP bucket URL link for stored node data on job failure
if: failure()
run: echo '[GCP Bucket link](https://console.cloud.google.com/storage/browser/mangata-node-ci-cache/${{ github.sha }}/${{ env.MATRIX_COMMAND_PATH }})' >> $GITHUB_STEP_SUMMARY

- name: Stop previous parachain if running
working-directory: devops/parachain-launch/output
- name: Stop docker instance
if: always()
run: |
docker kill $(docker ps -q) 2>/dev/null && echo $?
docker-compose down -v
Expand Down

0 comments on commit 7d6aa2d

Please sign in to comment.