]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
CI: keep logs for failed QIUC Interop jobs
authorIlia Shipitsin <chipitsine@gmail.com>
Wed, 7 Aug 2024 11:02:29 +0000 (13:02 +0200)
committerWilliam Lallemand <wlallemand@haproxy.com>
Tue, 13 Aug 2024 14:21:01 +0000 (16:21 +0200)
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

.github/workflows/quic-interop-aws-lc.yml
.github/workflows/quic-interop-libressl.yml

index 1e0220d71ff1e98f325f92f121f7745f49153bcc..f9144d9ed2d02037df58ae827cf0d70b3ef9c7ab 100644 (file)
@@ -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
index 2a635bcfabf858c05de384dd30f5e8d0d1fe88db..d50a2a3658debf60163849ba85266c0e674f6e6d 100644 (file)
@@ -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