diff options
author | Ilya Shipitsin <chipitsine@gmail.com> | 2021-12-25 13:53:04 +0500 |
---|---|---|
committer | Willy Tarreau <w@1wt.eu> | 2021-12-25 15:09:06 +0100 |
commit | 2ef4c7c84363f5a9b80a2093df1370514319db28 (patch) | |
tree | 82a7ec7c1512343aa90f316e56f6841ff6f26ce0 | |
parent | b4ff6f4ae9267620827f7da9b519f4e1b28b10e9 (diff) | |
download | haproxy-2ef4c7c84363f5a9b80a2093df1370514319db28.tar.gz |
CI: Github Actions: do not show VTest failures if build failed
this is mostly cleanup, issue is minor. If build failed, VTest execution
tried to be performed as well as VTest result show. This change ignores
those steps if build failed.
-rw-r--r-- | .github/workflows/vtest.yml | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/.github/workflows/vtest.yml b/.github/workflows/vtest.yml index b75329dbd..121c37d4e 100644 --- a/.github/workflows/vtest.yml +++ b/.github/workflows/vtest.yml @@ -87,6 +87,7 @@ jobs: ADDLIB="-Wl,-rpath,/usr/local/lib/ -Wl,-rpath,$HOME/opt/lib/" sudo make install - name: Show HAProxy version + if: ${{ !failure() }} id: show-version run: | echo "::group::Show dynamic libraries." @@ -101,17 +102,19 @@ jobs: haproxy -vv echo "::set-output name=version::$(haproxy -v |awk 'NR==1{print $3}')" - name: Install problem matcher for VTest + if: ${{ !failure() }} # This allows one to more easily see which tests fail. run: echo "::add-matcher::.github/vtest.json" - name: Run VTest for HAProxy ${{ steps.show-version.outputs.version }} + if: ${{ !failure() }} id: vtest run: | # This is required for macOS which does not actually allow to increase # the '-n' soft limit to the hard limit, thus failing to run. ulimit -n 5000 make reg-tests VTEST_PROGRAM=../vtest/vtest REGTESTS_TYPES=default,bug,devel - - name: Show results - if: ${{ failure() }} + - name: Show VTest results + if: ${{ failure() && steps.vtest.outcome == 'failure' }} run: | for folder in ${TMPDIR}/haregtests-*/vtc.*; do printf "::group::" |