From c109828e5034400f03e196d7a7bb1cf7d87c68eb Mon Sep 17 00:00:00 2001 From: qima Date: Tue, 21 May 2024 17:52:07 +0800 Subject: [PATCH] fix(CI): remove strict check There is node churning during the memcheck and location verification tests, which does havea chance of failed fetch alarm against dead node. Hence move the check only to be undertaken withn the large file test, which all nodes are persistant. --- .github/workflows/memcheck.yml | 10 ---------- .github/workflows/merge.yml | 24 +++++++++++++----------- 2 files changed, 13 insertions(+), 21 deletions(-) diff --git a/.github/workflows/memcheck.yml b/.github/workflows/memcheck.yml index 78efa62344..75847a1114 100644 --- a/.github/workflows/memcheck.yml +++ b/.github/workflows/memcheck.yml @@ -461,16 +461,6 @@ jobs: fi if: always() - - name: check there is no failed replication fetch - shell: bash - timeout-minutes: 1 - run: | - if grep -r "failed to fetch" $NODE_DATA_PATH - then - echo "We find failed replication fetch" - exit 1 - fi - - name: Upload payment wallet initialization log uses: actions/upload-artifact@main with: diff --git a/.github/workflows/merge.yml b/.github/workflows/merge.yml index ab5fe431b2..4f13ba91e1 100644 --- a/.github/workflows/merge.yml +++ b/.github/workflows/merge.yml @@ -906,16 +906,6 @@ jobs: node_count=$(ls "${{ matrix.node_data_path }}" | wc -l) echo "Node dir count is $node_count" - - name: check there is no failed replication fetch - if: matrix.os != 'windows-latest' # causes error - shell: bash - run: | - if grep -r "failed to fetch" "${{ matrix.node_data_path }}" - then - echo "We find failed replication fetch" - exit 1 - fi - # Only error out after uploading the logs - name: Don't log raw data if: matrix.os != 'windows-latest' # causes error @@ -1040,6 +1030,18 @@ jobs: log_file_prefix: safe_test_logs_large_file_upload build: true + - name: check there is no failed replication fetch + shell: bash + run: | + if grep -r "failed to fetch" $NODE_DATA_PATH + then + echo "We find failed replication fetch" + exit 1 + fi + env: + NODE_DATA_PATH: /home/runner/.local/share/safe/node + timeout-minutes: 1 + - name: Check the home dir leftover space run: | df @@ -1054,7 +1056,7 @@ jobs: ls $CLIENT_DATA_PATH/logs -l env: CLIENT_DATA_PATH: /home/runner/.local/share/safe/client - timeout-minutes: 10 + timeout-minutes: 1 replication_bench_with_heavy_upload: if: "!startsWith(github.event.head_commit.message, 'chore(release):')"