mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-08-06 15:17:01 +02:00
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
This commit is contained in:
parent
911f4d93d4
commit
ec1d93a6e9
15
.github/workflows/quic-interop-aws-lc.yml
vendored
15
.github/workflows/quic-interop-aws-lc.yml
vendored
@ -73,5 +73,18 @@ jobs:
|
|||||||
git clone https://github.com/quic-interop/quic-interop-runner
|
git clone https://github.com/quic-interop/quic-interop-runner
|
||||||
cd quic-interop-runner
|
cd quic-interop-runner
|
||||||
pip install -r requirements.txt --break-system-packages
|
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
|
15
.github/workflows/quic-interop-libressl.yml
vendored
15
.github/workflows/quic-interop-libressl.yml
vendored
@ -73,5 +73,18 @@ jobs:
|
|||||||
git clone https://github.com/quic-interop/quic-interop-runner
|
git clone https://github.com/quic-interop/quic-interop-runner
|
||||||
cd quic-interop-runner
|
cd quic-interop-runner
|
||||||
pip install -r requirements.txt --break-system-packages
|
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
|
Loading…
Reference in New Issue
Block a user