Skip to content

Commit

Permalink
RATIS-2112. Improve repeat-test workflow (#1112)
Browse files Browse the repository at this point in the history
  • Loading branch information
adoroszlai authored and szetszwo committed Jun 16, 2024
1 parent e66b5af commit e7e0c79
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/repeat-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -114,12 +114,12 @@ jobs:
if: ${{ !cancelled() }}
- name: Archive build results
uses: actions/upload-artifact@v4
if: always()
if: ${{ failure() }}
with:
name: result-${{ env.TEST_CLASS }}-split-${{ matrix.split }}
name: result-${{ github.run_number }}-${{ github.run_id }}-split-${{ matrix.split }}
path: target/unit
count-failures:
if: ${{ always() }}
if: ${{ failure() }}
needs: test
runs-on: ubuntu-20.04
steps:
Expand Down
6 changes: 6 additions & 0 deletions dev-support/checks/unit.sh
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,12 @@ for i in $(seq 1 ${ITERATIONS}); do
fi

if [[ ${ITERATIONS} -gt 1 ]]; then
if ! grep -q "Running .*Test" "${REPORT_DIR}/output.log"; then
echo "No tests were run" >> "${REPORT_DIR}/summary.txt"
irc=1
FAIL_FAST=true
fi

if [[ ${irc} == 0 ]]; then
rm -fr "${REPORT_DIR}"
fi
Expand Down

0 comments on commit e7e0c79

Please sign in to comment.