From 721852e91f0cd0c29fe4de9bc5a1d0e11bf54f0e Mon Sep 17 00:00:00 2001 From: Josh Wilson Date: Tue, 21 May 2024 16:21:14 +0900 Subject: [PATCH] ci: move when we check for genesis warning --- .github/workflows/memcheck.yml | 36 ++++++++++++++++++---------------- 1 file changed, 19 insertions(+), 17 deletions(-) diff --git a/.github/workflows/memcheck.yml b/.github/workflows/memcheck.yml index f1564812cd..78efa62344 100644 --- a/.github/workflows/memcheck.yml +++ b/.github/workflows/memcheck.yml @@ -92,23 +92,6 @@ jobs: platform: ubuntu-latest set-safe-peers: false - - name: Check we're warned about using default genesis - run: | - git log -1 --oneline - ls -la $RESTART_TEST_NODE_DATA_PATH - cat $RESTART_TEST_NODE_DATA_PATH/safenode.log - - name: Check we're warned about using default genesis - run: | - git log -1 --oneline - ls -la $BOOTSTRAP_NODE_DATA_PATH - cat $BOOTSTRAP_NODE_DATA_PATH/safenode.log - - name: Check we're warned about using default genesis - run: | - git log -1 --oneline - ls -la $NODE_DATA_PATH - cat $NODE_DATA_PATH/safenode.log - - shell: bash # In this case we did *not* want SAFE_PEERS to be set to another value by starting the testnet - name: Check SAFE_PEERS was not changed shell: bash @@ -156,6 +139,25 @@ jobs: SN_LOG: "all" timeout-minutes: 25 + # this check needs to be after some transfer activity + - name: Check we're warned about using default genesis + run: | + git log -1 --oneline + ls -la $RESTART_TEST_NODE_DATA_PATH + cat $RESTART_TEST_NODE_DATA_PATH/safenode.log + - name: Check we're warned about using default genesis + run: | + git log -1 --oneline + ls -la $BOOTSTRAP_NODE_DATA_PATH + cat $BOOTSTRAP_NODE_DATA_PATH/safenode.log + + - name: Check we're warned about using default genesis + run: | + git log -1 --oneline + ls -la $NODE_DATA_PATH + rg "USING DEFAULT" "$NODE_DATA_PATH" -u + shell: bash + # Uploading same file using different client shall not incur any payment neither uploads # Note rg will throw an error directly in case of failed to find a matching pattern. - name: Start a different client to upload the same file