please ignore, I'll send better patch
ср, 7 авг. 2024 г. в 12:33, Ilia Shipitsin <[email protected]>:
> 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
>
>