patch attached. ср, 7 авг. 2024 г. в 12:34, Илья Шипицин <chipits...@gmail.com>:
> please ignore, I'll send better patch > > ср, 7 авг. 2024 г. в 12:33, Ilia Shipitsin <chipits...@gmail.com>: > >> 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 | 13 +++++++++++++ >> .github/workflows/quic-interop-libressl.yml | 13 +++++++++++++ >> 2 files changed, 26 insertions(+) >> >> diff --git a/.github/workflows/quic-interop-aws-lc.yml >> b/.github/workflows/quic-interop-aws-lc.yml >> index 1e0220d71..6f1bb38be 100644 >> --- a/.github/workflows/quic-interop-aws-lc.yml >> +++ b/.github/workflows/quic-interop-aws-lc.yml >> @@ -75,3 +75,16 @@ jobs: >> pip install -r requirements.txt --break-system-packages >> python run.py -l logs -r haproxy=ghcr.io/${{ >> <http://ghcr.io/$%7B%7B> 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 2a635bcfa..16850ec35 100644 >> --- a/.github/workflows/quic-interop-libressl.yml >> +++ b/.github/workflows/quic-interop-libressl.yml >> @@ -75,3 +75,16 @@ jobs: >> pip install -r requirements.txt --break-system-packages >> python run.py -l logs -r haproxy=ghcr.io/${{ >> <http://ghcr.io/$%7B%7B> 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 >> -- >> 2.43.0.windows.1 >> >>
From 11e23ccb92d1612e47666d32b9ddd2321bb8e330 Mon Sep 17 00:00:00 2001 From: Ilia Shipitsin <chipits...@gmail.com> Date: Wed, 7 Aug 2024 13:02:29 +0200 Subject: [PATCH] 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 --- .github/workflows/quic-interop-aws-lc.yml | 15 ++++++++++++++- .github/workflows/quic-interop-libressl.yml | 15 ++++++++++++++- 2 files changed, 28 insertions(+), 2 deletions(-) diff --git a/.github/workflows/quic-interop-aws-lc.yml b/.github/workflows/quic-interop-aws-lc.yml index 1e0220d71..f9144d9ed 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 2a635bcfa..d50a2a365 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 -- 2.43.0.windows.1