ci: Add piglit traces hidden jobs
authorGuilherme Gallo <guilherme.gallo@collabora.com>
Mon, 13 Mar 2023 21:42:11 +0000 (18:42 -0300)
committerMarge Bot <emma+marge@anholt.net>
Fri, 24 Mar 2023 21:58:22 +0000 (21:58 +0000)
To better organize traces and traces-performance jobs that uses piglit
to replay traces.

Signed-off-by: Guilherme Gallo <guilherme.gallo@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22065>

.gitlab-ci/test-source-dep.yml

index e027aeb..da7eb5b 100644 (file)
   # even start until the separate script triggers on it).
   allow_failure: true
 
+.piglit-performance-base:
+  allow_failure: true
+  variables:
+    LAVA_JOB_PRIORITY: 40
+    PIGLIT_REPLAY_SUBCOMMAND: "profile"
+    PIGLIT_REPLAY_EXTRA_ARGS: "--db-path ${CI_PROJECT_DIR}/replayer-db/"
+    # More than this can hit OOM due to BOs leaked during the replay of the last frame
+    PIGLIT_REPLAY_LOOP_TIMES: 150
+    # We don't want for more than one workload to be submitted to the GPU at a time
+    FDO_CI_CONCURRENT: 1
+    # Piglit is very sparse in its status output and downloads of big traces can take a while
+    LAVA_DEVICE_HANGING_TIMEOUT_SEC: 600
+    GIT_STRATEGY: none
+    HWCI_FREQ_MAX: "true"
+    # Always use the same device
+    LAVA_TAGS: "cbg-0"
+    # Ensure that we are using the release build artifact
+    MINIO_ARTIFACT_NAME: mesa-${ARCH}-release
+  # Reset dependencies in performance jobs to enforce the release build artifact
+  dependencies: null
+  # Don't run in parallel. It is okay to performance jobs to take a little
+  # longer to finish, as they don't block marge from merging an MR.
+  parallel: null
+
+.piglit-performance:arm64:
+  extends:
+    - .piglit-performance-base
+  needs:
+    - debian/arm64_test
+    - debian-arm64-release
+
+.piglit-performance:amd64:
+  extends:
+    - .piglit-performance-base
+  needs:
+    - kernel+rootfs_amd64
+    - debian-release
+
 # Mesa source file dependencies that may impact any GL driver test job.
 .gl-rules:
   rules: