From bc97c65bb89cf96fb030f0dbea82bcbd7ec64831 Mon Sep 17 00:00:00 2001 From: Paulo Matos Date: Thu, 7 May 2020 20:13:50 +0200 Subject: [PATCH] Fail when ubsan finds failures (#3166) This is enabled for CS since ChezScheme has no ubsan warnings since: https://github.com/racket/ChezScheme/commit/65e05772a1ee14d73c368f311e837b00af771a23 --- .github/workflows/ci-ubsan.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci-ubsan.yml b/.github/workflows/ci-ubsan.yml index b3b48d26c1..b58d948dd1 100644 --- a/.github/workflows/ci-ubsan.yml +++ b/.github/workflows/ci-ubsan.yml @@ -171,8 +171,11 @@ jobs: continue-on-error: true run: raco test -l tests/db/all-tests | tee logs/db-all-tests.log - name: Gather runtime errors - run: grep 'runtime error' logs/*.log > runtime-errors_git${{ github.sha }}.log + run: | + grep 'runtime error' logs/*.log > runtime-errors_git${{ github.sha }}.log || true + test ! -s runtime-errors_git${{ github.sha }}.log - uses: actions/upload-artifact@v2 + if: failure() with: name: runtime-errors-cs_git${{ github.sha }} path: runtime-errors_git${{ github.sha }}.log