summaryrefslogtreecommitdiff
path: root/.gitlab-ci/piglit
diff options
context:
space:
mode:
authorDavid Heidelberg <david.heidelberg@collabora.com>2022-09-03 20:54:40 +0200
committerMarge Bot <emma+marge@anholt.net>2022-09-13 09:16:19 +0000
commitf2649b93e29e26937ed4d2f0f077bc7fd76b3982 (patch)
tree2d271f078509732e093417c2a47ff7db9f4f7b66 /.gitlab-ci/piglit
parent2b8a14e0765b69b11f13eb1ee887ac1739fb3fd7 (diff)
downloadmesa-f2649b93e29e26937ed4d2f0f077bc7fd76b3982.tar.gz
ci: performance traces: make use of no-perf label
Traces with label `no-perf` will be skipped in performance testing. This commit adds the yq tool, which preprocesses the traces.yml file before sending it to the piglit. Signed-off-by: David Heidelberg <david.heidelberg@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18329>
Diffstat (limited to '.gitlab-ci/piglit')
-rwxr-xr-x.gitlab-ci/piglit/piglit-traces.sh7
1 files changed, 6 insertions, 1 deletions
diff --git a/.gitlab-ci/piglit/piglit-traces.sh b/.gitlab-ci/piglit/piglit-traces.sh
index d6cce71502e..997b88236a4 100755
--- a/.gitlab-ci/piglit/piglit-traces.sh
+++ b/.gitlab-ci/piglit/piglit-traces.sh
@@ -8,6 +8,11 @@ MINIO_ARGS="--credentials=/tmp/.minio_credentials"
RESULTS=$(realpath -s "$PWD"/results)
mkdir -p "$RESULTS"
+if [ "$PIGLIT_REPLAY_SUBCOMMAND" = "profile" ]; then
+ yq -i -Y '. | del(.traces[][] | select(.label[0,1,2,3,4,5,6,7,8,9] == "no-perf"))' \
+ "$PIGLIT_REPLAY_DESCRIPTION_FILE" # label positions are a bit hack
+fi
+
# WINE
PATH="/opt/wine-stable/bin/:$PATH" # WineHQ path
export WINEPREFIX="/dxvk-wine64" # hardcode DXVK for now
@@ -186,7 +191,7 @@ __PREFIX="trace/$PIGLIT_REPLAY_DEVICE_NAME"
__MINIO_PATH="$PIGLIT_REPLAY_ARTIFACTS_BASE_URL"
__MINIO_TRACES_PREFIX="traces"
-if [ "x$PIGLIT_REPLAY_SUBCOMMAND" != "xprofile" ]; then
+if [ "$PIGLIT_REPLAY_SUBCOMMAND" != "profile" ]; then
quiet replay_minio_upload_images
fi