diff --git a/.github/workflows/e2e_network_tests.yml b/.github/workflows/e2e_network_tests.yml index 8f26d6c5281..d036fc62467 100644 --- a/.github/workflows/e2e_network_tests.yml +++ b/.github/workflows/e2e_network_tests.yml @@ -5,6 +5,12 @@ on: - release/** tags: - v4.* + +# For test purpose only: +# pull_request: +# branches: +# - '4.x' +# types: [ opened, reopened, synchronize ] jobs: build: name: Build Packages @@ -16,11 +22,10 @@ jobs: node-version: 18 cache: yarn - run: yarn - - run: tar -czf /tmp/web3-16.js.tar.gz --exclude="./.git" ./ - - uses: actions/upload-artifact@v3 + - uses: actions/cache/save@v4 with: - name: web3-16.js.tar.gz - path: /tmp/web3-16.js.tar.gz + path: ./ + key: web3-e2e-18-${{github.sha}} e2e: name: E2E Network Tests needs: build @@ -41,11 +46,10 @@ jobs: - uses: actions/setup-node@v3 with: node-version: 18 - - uses: actions/download-artifact@v3 + - uses: actions/cache/restore@v4 with: - name: web3-16.js.tar.gz - path: /tmp - - run: tar -xf /tmp/web3-16.js.tar.gz -C ./ + path: ./ + key: web3-e2e-18-${{github.sha}} - run: | yarn test:e2e:${{ matrix.network }}:${{ matrix.mode }} shell: bash diff --git a/packages/web3/test/e2e/get_proof.test.ts b/packages/web3/test/e2e/get_proof.test.ts index a8c17c6558a..a9a449c28eb 100644 --- a/packages/web3/test/e2e/get_proof.test.ts +++ b/packages/web3/test/e2e/get_proof.test.ts @@ -55,9 +55,9 @@ describe(`${getSystemTestBackend()} tests - getProof`, () => { | 'blockNumber'; }>({ block: [ - 'earliest', + // 'earliest', block is earlier than 128 blocks ago "Returned error: missing trie node" 'latest', - 'pending', + // 'pending', block is not available "Returned error: missing trie node" 'safe', 'finalized', 'blockHash', diff --git a/packages/web3/test/e2e/mainnet/get_storage_at.test.ts b/packages/web3/test/e2e/mainnet/get_storage_at.test.ts index 7db7017fb1d..9839a6db75f 100644 --- a/packages/web3/test/e2e/mainnet/get_storage_at.test.ts +++ b/packages/web3/test/e2e/mainnet/get_storage_at.test.ts @@ -39,10 +39,9 @@ describe(`${getSystemTestBackend()} tests - getStorageAt`, () => { it.each( toAllVariants<{ storageSlot: Numbers; - block: - | 'earliest' - | 'latest' - | 'pending' + block: // | 'earliest' + | 'latest' + // | 'pending' | 'finalized' | 'safe' | 'blockHash' @@ -80,7 +79,7 @@ describe(`${getSystemTestBackend()} tests - getStorageAt`, () => { } else if (block === 'blockHash' || block === 'blockNumber') { // eslint-disable-next-line jest/no-conditional-expect expect(result).toBe( - '0x00000000000000000000000000000000000000000000000000b8b61e3be91403', + '0x00000000000000000000000000000000000000000000000000c354b137cba7ba', ); } else { // eslint-disable-next-line jest/no-conditional-expect