Skip to content

Commit

Permalink
ci: Only remove QNS logs for successful tests (#2096)
Browse files Browse the repository at this point in the history
* ci: Only remove QNS logs for successful tests

* Strip quotes

* Fix log location

* Fixes

* Finalize
  • Loading branch information
larseggert authored Sep 10, 2024
1 parent fa2b9d3 commit 70b3914
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/actions/quic-interop-runner/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,11 +81,16 @@ runs:
FAILED=1
fi
done
# Remove all log files > $MAX_SIZE to make the artifacts smaller.
MAX_SIZE=5M
# Remove all log files > $MAX_SIZE for succeeded tests to make the artifacts smaller.
MAX_SIZE=2M
echo "Removed log file > $MAX_SIZE during GitHub workflow" > note.txt
echo "Removing these log files > $MAX_SIZE:"
find ../logs -type f -size +$MAX_SIZE -ls -exec cp note.txt {} \;
SUCCEEDED=$(jq < ../result.json '. | .results[][] | select(.result == "succeeded").name' | tr -d '"')
for run in ../logs/*; do
for test in $SUCCEEDED; do
find "$run/$test" -type f -size +$MAX_SIZE -ls -exec cp note.txt {} \;
done
done
exit $FAILED
shell: bash

Expand Down

0 comments on commit 70b3914

Please sign in to comment.