From 3d43912c738b444303957aeff28fd18a394b83fd Mon Sep 17 00:00:00 2001 From: Yaroslav Svitlytskyi Date: Sun, 15 Dec 2024 02:10:41 +0100 Subject: [PATCH] fix: removed virtual testnet creation from manual run --- .github/workflows/tests.yml | 27 +++------------------------ 1 file changed, 3 insertions(+), 24 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index e67c7ddd2..d34d68e29 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -94,19 +94,6 @@ jobs: version: '1.7' force: 'false' - - name: "Create Tenderly virtual testnet" - run: | - echo "TENDERLY_CREATION_INFO=$(curl -X POST \ - -H "x-access-key: ${{ secrets.TENDERLY_SECRET }}" \ - -H "Content-Type: application/json" \ - -d '{"slug":"mainnet-dev-${{ env.RUNNER_NUMBER }}-${{ github.run_id }}","displayName":"mainnet-dev-${{ env.RUNNER_NUMBER }}-${{ github.run_id }}","description":"","visibility":"TEAM","tags":{"purpose":"development"},"networkConfig":{"networkId":"1","blockNumber":"18512782","chainConfig":{"chainId":"1"},"baseFeePerGas":"1"},"explorerConfig":{"enabled":false,"verificationVisibility":"bytecode"},"syncState":false}' \ - https://api.tenderly.co/api/v1/account/zus_network/project/project/testnet/container)" >> $GITHUB_ENV - - - name: "Parse Tenderly virtual testnet creation transaction result" - run: | - echo "TENDERLY_VIRTUAL_TESTNET_ID=$(echo '${{ env.TENDERLY_CREATION_INFO }}' | jq -r '.container.id')" >> $GITHUB_ENV - echo "TENDERLY_VIRTUAL_TESTNET_RPC_ID=$(echo '${{ env.TENDERLY_CREATION_INFO }}' | jq -r '.container.connectivityConfig.endpoints[0].id')" >> $GITHUB_ENV - - name: "Deploy 0Chain" uses: 0chain/actions/deploy-0chain@master with: @@ -115,10 +102,10 @@ jobs: teardown_condition: "TESTS_PASSED" custom_go_sdk_version: ${{ env.CURRENT_BRANCH_HEAD }} SUBGRAPH_API_URL: ${{ secrets.SUBGRAPH_API_URL }} - TENDERLY_VIRTUAL_TESTNET_RPC_ID: ${{ env.TENDERLY_VIRTUAL_TESTNET_RPC_ID }} + TENDERLY_VIRTUAL_TESTNET_RPC_ID: "" graphnode_sc: ${{ secrets.GRAPHNODE_SC }} graphnode_network: ${{ secrets.GRAPHNODE_NETWORK }} - graphnode_ethereum_node_url: https://virtual.mainnet.rpc.tenderly.co/${{ env.TENDERLY_VIRTUAL_TESTNET_RPC_ID }} + graphnode_ethereum_node_url: "" svc_account_secret: ${{ secrets.SVC_ACCOUNT_SECRET }} - name: "Run System tests" @@ -134,19 +121,11 @@ jobs: retry_failures: true run_frontend_tests: true run_smoke_tests: ${{ github.ref != 'refs/heads/staging' && github.base_ref != 'staging' && github.ref != 'refs/heads/master' && github.base_ref != 'master' }} - TENDERLY_VIRTUAL_TESTNET_RPC_ID: ${{ env.TENDERLY_VIRTUAL_TESTNET_RPC_ID }} + TENDERLY_VIRTUAL_TESTNET_RPC_ID: "" DEVOPS_CHANNEL_WEBHOOK_URL: ${{ secrets.DEVOPS_CHANNEL_WEBHOOK_URL }} S3_ACCESS_KEY: ${{ secrets.S3_ACCESS_KEY }} S3_SECRET_KEY: ${{ secrets.S3_SECRET_KEY }} - - name: "Remove Tenderly virtual testnet" - if: always() - run: | - curl -X DELETE \ - -H "x-access-key: ${{ secrets.TENDERLY_SECRET }}" \ - -H "Content-Type: application/json" \ - https://api.tenderly.co/api/v1/account/zus_network/project/project/testnet/container/${{ env.TENDERLY_VIRTUAL_TESTNET_ID }} - - name: "Set PR status as ${{ job.status }}" if: ${{ (success() || failure()) && steps.findPr.outputs.number }} uses: 0chain/actions/set-pr-status@master