From bf955b60d4df32d1ba022ac3e9e52a7885337850 Mon Sep 17 00:00:00 2001 From: claire labry Date: Fri, 17 Mar 2023 11:53:12 -0500 Subject: [PATCH] Try retries on test failures (#3099) * try-retries-on-test-failures * remove extra step * fix spacing * Pin retry action and fix merge conflict * Update test.yml * Uses before name * hopefully this works --------- Co-authored-by: Sarah Thompson --- .github/workflows/test.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 2175dfb11e..eb75a4408c 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -183,14 +183,19 @@ jobs: which pg_isready || sudo apt-get update && sudo apt-get install -y postgresql-client make DOCKER_ARGS='-d' PG_OPTS='-c shared_buffers=256MB -c max_connections=200000' -C testing/dbtest/docker database-up until pg_isready -h 127.0.0.1; do docker container inspect boundary-sql-tests &> /dev/null || exit 255; sleep 1; done + - name: Test + uses: nick-fields/retry@943e742917ac94714d2f408a0e8320f2d1fcafcd # v2.8.3 env: TEST_PACKAGE: "${{ matrix.package }}" GOMAXPROCS: ${{ vars.TEST_GOMAXPROCS }} TESTARGS: -v TEST_TIMEOUT: 120m - run: | - make test + with: + max_attempts: 3 + timeout_minutes: 120 + retry_on: error + command: make test - name: Cleanup if: always() run: |