ci/deqp-runner: also limit the number of test log and caselist files

Avoids job log spam like https://gitlab.freedesktop.org/mesa/mesa/-/jobs/92981114

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39829>
This commit is contained in:
Eric Engestrom 2026-02-11 14:36:37 +01:00 committed by Marge Bot
parent 888ac904a3
commit 4014a20da3

View file

@ -182,12 +182,23 @@ set -x
report_load
# Remove all but the first 50 individual XML files uploaded as artifacts, to
# save fd.o space when you break everything.
# Remove all but the first 50 individual XML, test log and caselist
# files uploaded as artifacts, to save fd.o space and avoid job log spam
# when you break everything.
# Note that each of these pattern gets to keep 50 files, but there is nothing
# making sure the remaining 50 files of each correspond to the same tests.
find $RESULTS_DIR -name \*.xml | \
sort -n |
sed -n '1,+49!p' | \
xargs rm -f
find $RESULTS_DIR -name 'c*.r*.caselist.txt' | \
sort -n |
sed -n '1,+49!p' | \
xargs rm -f
find $RESULTS_DIR -name 'c*.r*.log' | \
sort -n |
sed -n '1,+49!p' | \
xargs rm -f
# If any QPA XMLs are there, then include the XSL/CSS in our artifacts.
find $RESULTS_DIR -name \*.xml \