From aae1d9f68b805bddcd3ab1c1c2379635957c5c8e Mon Sep 17 00:00:00 2001 From: fbarbu15 Date: Mon, 18 Sep 2023 12:48:47 +0300 Subject: [PATCH] chore: move the failed retries on test level (#1573) Co-authored-by: Sasha <118575614+weboko@users.noreply.github.com> --- .github/workflows/ci.yml | 37 ++++++++++++------------------------ packages/tests/.mocharc.json | 3 ++- 2 files changed, 14 insertions(+), 26 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 093fa7353c..6e96809fc0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -24,7 +24,6 @@ on: env: NODE_JS: "18" - RETRY_ATTEMPTS: 3 jobs: check: @@ -96,12 +95,9 @@ jobs: - run: npm run build:esm - - uses: Wandalen/wretry.action@master - with: - attempt_limit: ${{ env.RETRY_ATTEMPTS }} - command: npm run test:node - with: | - DEBUG: "" + - run: npm run test:node + env: + DEBUG: "" - name: Upload debug logs on failure uses: actions/upload-artifact@v3 @@ -135,12 +131,9 @@ jobs: - run: npm run build:esm - - uses: Wandalen/wretry.action@master - with: - attempt_limit: ${{ env.RETRY_ATTEMPTS }} - command: npm run test:optional --workspace=@waku/tests - with: | - DEBUG: "" + - run: npm run test:optional --workspace=@waku/tests + env: + DEBUG: "" node_with_go_waku_master: runs-on: ubuntu-latest @@ -163,12 +156,9 @@ jobs: - run: npm run build:esm - - uses: Wandalen/wretry.action@master - with: - attempt_limit: ${{ env.RETRY_ATTEMPTS }} - command: npm run test:node - with: | - DEBUG: "waku:nwaku*,waku:test*" + - run: npm run test:node + env: + DEBUG: "waku:nwaku*,waku:test*" - name: Upload debug logs on failure uses: actions/upload-artifact@v3 @@ -203,12 +193,9 @@ jobs: - run: npm run build:esm - - uses: Wandalen/wretry.action@master - with: - attempt_limit: ${{ env.RETRY_ATTEMPTS }} - command: npm run test:node - with: | - DEBUG: "waku:nwaku*,waku:test*" + - run: npm run test:node + env: + DEBUG: "waku:nwaku*,waku:test*" - name: Upload debug logs on failure uses: actions/upload-artifact@v3 diff --git a/packages/tests/.mocharc.json b/packages/tests/.mocharc.json index ede1672e52..e277cf89b1 100644 --- a/packages/tests/.mocharc.json +++ b/packages/tests/.mocharc.json @@ -6,5 +6,6 @@ "experimental-specifier-resolution=node", "loader=ts-node/esm" ], - "exit": true + "exit": true, + "retries": 3 }