From: Ilia Shipitsin Date: Wed, 7 Aug 2024 11:02:29 +0000 (+0200) Subject: CI: keep logs for failed QIUC Interop jobs X-Git-Tag: v3.1-dev6~49 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ec1d93a6e9728c3a07728202ae1f5c28b7fb14f2;p=thirdparty%2Fhaproxy.git CI: keep logs for failed QIUC Interop jobs it might be useful to investigate logs of failed tests. to keep artifacts small the following actions are taken - only failed logs are kept - logs retention is 6 days --- diff --git a/.github/workflows/quic-interop-aws-lc.yml b/.github/workflows/quic-interop-aws-lc.yml index 1e0220d71f..f9144d9ed2 100644 --- a/.github/workflows/quic-interop-aws-lc.yml +++ b/.github/workflows/quic-interop-aws-lc.yml @@ -73,5 +73,18 @@ jobs: git clone https://github.com/quic-interop/quic-interop-runner cd quic-interop-runner pip install -r requirements.txt --break-system-packages - python run.py -l logs -r haproxy=ghcr.io/${{ github.repository }}:aws-lc -t ${{ matrix.suite.tests }} -c ${{ matrix.suite.client }} -s haproxy + python run.py -j result.json -l logs -r haproxy=ghcr.io/${{ github.repository }}:aws-lc -t ${{ matrix.suite.tests }} -c ${{ matrix.suite.client }} -s haproxy + - name: Delete succeeded logs + if: failure() + run: | + cd quic-interop-runner/logs/haproxy_${{ matrix.suite.client }} + cat ../../result.json | jq -r '.results[][] | select(.result=="succeeded") | .name' | xargs rm -rf + + - name: Logs upload + if: failure() + uses: actions/upload-artifact@v4 + with: + name: logs + path: quic-interop-runner/logs/ + retention-days: 6 \ No newline at end of file diff --git a/.github/workflows/quic-interop-libressl.yml b/.github/workflows/quic-interop-libressl.yml index 2a635bcfab..d50a2a3658 100644 --- a/.github/workflows/quic-interop-libressl.yml +++ b/.github/workflows/quic-interop-libressl.yml @@ -73,5 +73,18 @@ jobs: git clone https://github.com/quic-interop/quic-interop-runner cd quic-interop-runner pip install -r requirements.txt --break-system-packages - python run.py -l logs -r haproxy=ghcr.io/${{ github.repository }}:libressl -t ${{ matrix.suite.tests }} -c ${{ matrix.suite.client }} -s haproxy + python run.py -j result.json -l logs -r haproxy=ghcr.io/${{ github.repository }}:libressl -t ${{ matrix.suite.tests }} -c ${{ matrix.suite.client }} -s haproxy + - name: Delete succeeded logs + if: failure() + run: | + cd quic-interop-runner/logs/haproxy_${{ matrix.suite.client }} + cat ../../result.json | jq -r '.results[][] | select(.result=="succeeded") | .name' | xargs rm -rf + + - name: Logs upload + if: failure() + uses: actions/upload-artifact@v4 + with: + name: logs + path: quic-interop-runner/logs/ + retention-days: 6 \ No newline at end of file