From 13c8b99de876fa80f685909a99fa34d5f2e5d9ef Mon Sep 17 00:00:00 2001 From: Jerry Date: Tue, 25 Jun 2024 15:08:31 -0700 Subject: [PATCH] Add bridge test to CI --- .github/workflows/ci_zkevm.yml | 42 ++++++++++++++++++++++++++++++---- 1 file changed, 38 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci_zkevm.yml b/.github/workflows/ci_zkevm.yml index daea0279e52..d075b2e67de 100644 --- a/.github/workflows/ci_zkevm.yml +++ b/.github/workflows/ci_zkevm.yml @@ -87,10 +87,44 @@ jobs: working-directory: ./kurtosis-cdk run: kurtosis run --enclave cdk-v1 --args-file params.yml --image-download always . - - name: Monitor verified batches - working-directory: ./kurtosis-cdk - shell: bash - run: .github/actions/monitor-cdk-verified-batches/batch_verification_monitor.sh 20 600 cdk-erigon-node-001 + # - name: Monitor verified batches + # working-directory: ./kurtosis-cdk + # shell: bash + # run: .github/actions/monitor-cdk-verified-batches/batch_verification_monitor.sh 20 600 cdk-erigon-node-001 + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v2 + + - name: Set up envs + run: | + kurtosis files download cdk-v1 bridge-config-artifact + echo "BRIDGE_ADDRESS=$(yq '.NetworkConfig.PolygonBridgeAddress' bridge-config-artifact/bridge-config.toml)" >> $GITHUB_ENV + echo "ETH_RPC_URL=$(kurtosis port print cdk-v1 el-1-geth-lighthouse rpc)" >> $GITHUB_ENV + echo "BRIDGE_API_URL=$(kurtosis port print cdk-v1 zkevm-bridge-service-001 rpc)" >> $GITHUB_ENV + + - name: Run bridge tests + working-directory: ./cdk-erigon + env: + RAW_PRIVATE_KEY: 0x12d7de8621a77640c9241b2595ba78ce443d05e94090365ab3bb5e19df82c625 + DESTINATION_NET: 10101 + DESTINATION_ADDRESS: 0xE34aaF64b29273B7D567FCFc40544c014EEe9970 + ETHER_VALUE: 2 + TOKEN_ADDRESS: "" + IS_FORCED: true + BRIDGE_ADDRESS: ${{ env.BRIDGE_ADDRESS }} + META_BYTES: "0x" + ETH_RPC_URL: ${{ env.ETH_RPC_URL }} + BRIDGE_API_URL: ${{ env.BRIDGE_API_URL }} + DRY_RUN: false + + run: + cd zk/tests/ansible/evm-rpc-tests && docker-compose up --build + + - name: Upload logs + uses: actions/upload-artifact@v3 + with: + name: evm-rpc-tests-logs-${{ github.run_id }} + path: ./cdk-erigon/logs/evm-rpc-tests.log - name: Prepare logs working-directory: ./kurtosis-cdk