From 5e0a249c97443108e4414bb8f1e9f8a158df0580 Mon Sep 17 00:00:00 2001 From: jonesho Date: Fri, 25 Oct 2024 19:30:24 +0800 Subject: [PATCH] feat: bump actions-checkout to v4 and fix config test error --- .github/workflows/all-tools.yml | 4 ++-- .github/workflows/bridge-ui-publish.yml | 2 +- .github/workflows/cache-docker-images.yml | 4 ++-- .github/workflows/codeql.yml | 2 +- .github/workflows/load-test.yml | 5 +---- .github/workflows/main.yml | 2 +- .github/workflows/postman-build-and-publish.yml | 2 +- .github/workflows/postman-testing.yml | 5 +---- .github/workflows/prover-testing.yml | 2 +- .github/workflows/reuse-run-e2e-tests.yml | 2 +- .github/workflows/reuse-store-image-name-and-tags.yml | 2 +- .github/workflows/traces-api-facade-build-and-publish.yml | 5 +---- .github/workflows/traces-api-facade-testing.yml | 5 +---- .../transaction-exclusion-api-build-and-publish.yml | 5 +---- .github/workflows/transaction-exclusion-api-testing.yml | 5 +---- .../zkevm/coordinator/app/config/CoordinatorConfigTest.kt | 6 +++--- 16 files changed, 20 insertions(+), 38 deletions(-) diff --git a/.github/workflows/all-tools.yml b/.github/workflows/all-tools.yml index a2405eec5e..9d618becc8 100644 --- a/.github/workflows/all-tools.yml +++ b/.github/workflows/all-tools.yml @@ -22,7 +22,7 @@ jobs: all-tools: ${{ steps.filter.outputs['all-tools'] }} steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Filter commit changes uses: dorny/paths-filter@v2 id: filter @@ -85,7 +85,7 @@ jobs: name: All tools build and push steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: ssh-key: ${{ secrets.SELF_GITHUB_SSH_KEY }} submodules: true diff --git a/.github/workflows/bridge-ui-publish.yml b/.github/workflows/bridge-ui-publish.yml index 7b63d6e580..b985b87aec 100644 --- a/.github/workflows/bridge-ui-publish.yml +++ b/.github/workflows/bridge-ui-publish.yml @@ -17,7 +17,7 @@ jobs: runs-on: [self-hosted, ubuntu-20.04, X64, small] steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Get version from package.json id: package-version diff --git a/.github/workflows/cache-docker-images.yml b/.github/workflows/cache-docker-images.yml index 863d4130ce..29e18a1ae1 100644 --- a/.github/workflows/cache-docker-images.yml +++ b/.github/workflows/cache-docker-images.yml @@ -15,7 +15,7 @@ jobs: cache-images: ${{ steps.filter.outputs.cache-images }} steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Filter commit changes uses: dorny/paths-filter@v2 id: filter @@ -34,7 +34,7 @@ jobs: runs-on: [self-hosted, ubuntu-20.04, X64, small] steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Login to Docker Hub uses: docker/login-action@v3 with: diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 80777cb15b..c57870296d 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -35,7 +35,7 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 # Initializes the CodeQL tools for scanning. - name: Initialize CodeQL diff --git a/.github/workflows/load-test.yml b/.github/workflows/load-test.yml index 295aac8455..63ec3aa26a 100644 --- a/.github/workflows/load-test.yml +++ b/.github/workflows/load-test.yml @@ -31,10 +31,7 @@ jobs: name: Run Load Test steps: - name: Checkout - uses: actions/checkout@v3 - with: - fetch-depth: 0 - ref: ${{ github.head_ref }} + uses: actions/checkout@v4 - uses: actions/setup-java@v4 with: diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index d4f1ab7697..c0d6f04b10 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -23,7 +23,7 @@ jobs: no-changes: ${{ steps.filter.outputs.coordinator == 'false' && steps.filter.outputs.postman == 'false' && steps.filter.outputs.prover == 'false' && steps.filter.outputs.traces-api-facade == 'false' && steps.filter.outputs.transaction-exclusion-api == 'false' }} steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Filter commit changes uses: dorny/paths-filter@v3 id: filter diff --git a/.github/workflows/postman-build-and-publish.yml b/.github/workflows/postman-build-and-publish.yml index d95715e99e..881df17306 100644 --- a/.github/workflows/postman-build-and-publish.yml +++ b/.github/workflows/postman-build-and-publish.yml @@ -67,7 +67,7 @@ jobs: run: | echo "TAGS=${{ env.IMAGE_NAME }}:${{ env.COMMIT_TAG }},${{ env.IMAGE_NAME }}:${{ env.DEVELOP_TAG }}" >> $GITHUB_ENV - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: ssh-key: ${{ secrets.SELF_GITHUB_SSH_KEY }} submodules: true diff --git a/.github/workflows/postman-testing.yml b/.github/workflows/postman-testing.yml index a352614efa..4110831469 100644 --- a/.github/workflows/postman-testing.yml +++ b/.github/workflows/postman-testing.yml @@ -13,10 +13,7 @@ jobs: name: Postman & SDK tests steps: - name: Checkout - uses: actions/checkout@v3 - with: - fetch-depth: 0 - ref: ${{ github.head_ref }} + uses: actions/checkout@v4 - name: Setup nodejs environment uses: ./.github/actions/setup-nodejs diff --git a/.github/workflows/prover-testing.yml b/.github/workflows/prover-testing.yml index 1427eeffb5..5b1d5026d7 100644 --- a/.github/workflows/prover-testing.yml +++ b/.github/workflows/prover-testing.yml @@ -25,7 +25,7 @@ jobs: with: go-version: 1.23.x - name: checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 - uses: actions/cache@v3 diff --git a/.github/workflows/reuse-run-e2e-tests.yml b/.github/workflows/reuse-run-e2e-tests.yml index 3c1df53335..b2eb15d978 100644 --- a/.github/workflows/reuse-run-e2e-tests.yml +++ b/.github/workflows/reuse-run-e2e-tests.yml @@ -77,7 +77,7 @@ jobs: if: ${{ inputs.e2e-tests-with-ssh }} uses: lhotari/action-upterm@v1 - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Setup nodejs environment uses: ./.github/actions/setup-nodejs with: diff --git a/.github/workflows/reuse-store-image-name-and-tags.yml b/.github/workflows/reuse-store-image-name-and-tags.yml index 05a61e23e9..e7cf315516 100644 --- a/.github/workflows/reuse-store-image-name-and-tags.yml +++ b/.github/workflows/reuse-store-image-name-and-tags.yml @@ -26,7 +26,7 @@ jobs: develop_tag: ${{ steps.step1.outputs.DEVELOP_TAG }} steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Compute version tags id: step1 run: | diff --git a/.github/workflows/traces-api-facade-build-and-publish.yml b/.github/workflows/traces-api-facade-build-and-publish.yml index 811e3e81ac..bce7c19347 100644 --- a/.github/workflows/traces-api-facade-build-and-publish.yml +++ b/.github/workflows/traces-api-facade-build-and-publish.yml @@ -67,10 +67,7 @@ jobs: run: | echo "TAGS=${{ env.IMAGE_NAME }}:${{ env.COMMIT_TAG }},${{ env.IMAGE_NAME }}:${{ env.DEVELOP_TAG }}" >> $GITHUB_ENV - name: Checkout - uses: actions/checkout@v3 - with: - fetch-depth: 0 - ref: ${{ github.head_ref }} + uses: actions/checkout@v4 - uses: actions/setup-java@v4 with: distribution: temurin diff --git a/.github/workflows/traces-api-facade-testing.yml b/.github/workflows/traces-api-facade-testing.yml index d532eb15f4..a4053cbfdd 100644 --- a/.github/workflows/traces-api-facade-testing.yml +++ b/.github/workflows/traces-api-facade-testing.yml @@ -21,10 +21,7 @@ jobs: name: Traces api facade tests steps: - name: Checkout - uses: actions/checkout@v3 - with: - fetch-depth: 0 - ref: ${{ github.head_ref }} + uses: actions/checkout@v4 - uses: actions/setup-java@v4 with: distribution: temurin diff --git a/.github/workflows/transaction-exclusion-api-build-and-publish.yml b/.github/workflows/transaction-exclusion-api-build-and-publish.yml index bb7ed0c0db..0157809f72 100644 --- a/.github/workflows/transaction-exclusion-api-build-and-publish.yml +++ b/.github/workflows/transaction-exclusion-api-build-and-publish.yml @@ -67,10 +67,7 @@ jobs: run: | echo "TAGS=${{ env.IMAGE_NAME }}:${{ env.COMMIT_TAG }},${{ env.IMAGE_NAME }}:${{ env.DEVELOP_TAG }}" >> $GITHUB_ENV - name: Checkout - uses: actions/checkout@v3 - with: - fetch-depth: 0 - ref: ${{ github.head_ref }} + uses: actions/checkout@v4 - uses: actions/setup-java@v4 with: distribution: temurin diff --git a/.github/workflows/transaction-exclusion-api-testing.yml b/.github/workflows/transaction-exclusion-api-testing.yml index cb076b35db..79247abede 100644 --- a/.github/workflows/transaction-exclusion-api-testing.yml +++ b/.github/workflows/transaction-exclusion-api-testing.yml @@ -20,10 +20,7 @@ jobs: name: Transaction exclusion api tests steps: - name: Checkout - uses: actions/checkout@v3 - with: - fetch-depth: 0 - ref: ${{ github.head_ref }} + uses: actions/checkout@v4 - uses: actions/setup-java@v4 with: distribution: temurin diff --git a/coordinator/app/src/test/kotlin/net/consensys/zkevm/coordinator/app/config/CoordinatorConfigTest.kt b/coordinator/app/src/test/kotlin/net/consensys/zkevm/coordinator/app/config/CoordinatorConfigTest.kt index 60ecf2e2a4..def06e39df 100644 --- a/coordinator/app/src/test/kotlin/net/consensys/zkevm/coordinator/app/config/CoordinatorConfigTest.kt +++ b/coordinator/app/src/test/kotlin/net/consensys/zkevm/coordinator/app/config/CoordinatorConfigTest.kt @@ -248,7 +248,7 @@ class CoordinatorConfigTest { listOf( URI("http://traces-api:8080/").toURL() ), - requestLimitPerEndpoint = 20U, + requestLimitPerEndpoint = 2U, requestRetry = RequestRetryConfigTomlFriendly( backoffDelay = Duration.parse("PT1S"), failuresWarningThreshold = 2 @@ -286,7 +286,7 @@ class CoordinatorConfigTest { endpoints = listOf( URI("http://shomei:8888/").toURL() ), - requestLimitPerEndpoint = 3U, + requestLimitPerEndpoint = 2U, requestRetry = RequestRetryConfigTomlFriendly( backoffDelay = Duration.parse("PT2S"), failuresWarningThreshold = 2 @@ -842,7 +842,7 @@ class CoordinatorConfigTest { listOf( URI("http://traces-node-v2:8545/").toURL() ), - requestLimitPerEndpoint = 20U, + requestLimitPerEndpoint = 2U, requestRetry = RequestRetryConfigTomlFriendly( backoffDelay = Duration.parse("PT1S"), failuresWarningThreshold = 2