Skip to contentSkip to conversation

drm/ci: uprev mesa and modify gitlab rules

PATCH Applied Vignesh Raman 2 participants 5 messages Feb 5, 2025

Subsystems (4)
lore
Share & tools
lore

Vignesh Raman

author maintainer
#0 lore raw

v2 cover drm/ci: uprev mesa and modify gitlab rules

Uprev mesa to adapt to the latest changes in mesa-ci, including new container jobs and stages. Update the lava-submit script to align with recent mes-ci changes for using LAVA rootfs overlays. Modify gitLab rules to include scheduled pipelines. Also update the expectation files.

Pipeline link,
https://gitlab.freedesktop.org/vigneshraman/linux/-/pipelines/1358207

Link to v1,
https://lore.kernel.org/all/[email protected]/

Vignesh Raman (2):
drm/ci: uprev mesa
drm/ci: update gitlab rules
drm/ci: update expectation files

 drivers/gpu/drm/ci/build.sh                   |   2 +-
 drivers/gpu/drm/ci/build.yml                  | 104 +++++++++-
 drivers/gpu/drm/ci/container.yml              |  22 +-
 drivers/gpu/drm/ci/gitlab-ci.yml              | 195 ++++++++++--------
 drivers/gpu/drm/ci/igt_runner.sh              |  13 +-
 drivers/gpu/drm/ci/image-tags.yml             |  11 +-
 drivers/gpu/drm/ci/lava-submit.sh             | 100 ++++++---
 drivers/gpu/drm/ci/test.yml                   |  37 ++--
 drivers/gpu/drm/ci/xfails/vkms-none-fails.txt |   2 +
 9 files changed, 325 insertions(+), 161 deletions(-)
Signature · 1 line
2.43.0
author maintainer
#1 lore raw

PATCH v2 1/3 drm/ci: uprev mesa

Uprev mesa to adapt to the latest changes in mesa ci which includes new container jobs and stages. Also update lava-submit script to adapt to the recent changes in mesa to use LAVA rootfs overlays.

---

v2:
- Uprev mesa to the latest version and update the yaml files and scripts.

---
 drivers/gpu/drm/ci/build.sh       |   2 +-
 drivers/gpu/drm/ci/build.yml      | 103 +++++++++++++++++++++++++++++-
 drivers/gpu/drm/ci/container.yml  |  22 +++----
 drivers/gpu/drm/ci/gitlab-ci.yml  |  81 +++++++++++++++--------
 drivers/gpu/drm/ci/igt_runner.sh  |  13 ++--
 drivers/gpu/drm/ci/image-tags.yml |  11 +++-
 drivers/gpu/drm/ci/lava-submit.sh | 100 +++++++++++++++++++++--------
 drivers/gpu/drm/ci/test.yml       |  17 +++--
 8 files changed, 264 insertions(+), 85 deletions(-)
drivers/gpu/drm/ci/build.sh +1 -1
index 139b81db6312..19fe01257ab9 100644
@@ -132,7 +132,7 @@ fi
 # Pass needed files to the test stage
 mkdir -p install
 cp -rfv .gitlab-ci/* install/.
-cp -rfv ci/*  install/.
+cp -rfv bin/ci/*  install/.
 cp -rfv install/common install/ci-common
 cp -rfv drivers/gpu/drm/ci/* install/.
 
drivers/gpu/drm/ci/build.yml +102 -1

112 lines not on this page · raw message

drivers/gpu/drm/ci/container.yml +11 -11
index 2a94f54ce4cf..07dc13ff865d 100644
@@ -24,7 +24,7 @@ alpine/x86_64_build:
   rules:
     - when: never
 
-debian/x86_64_test-vk:
+debian/arm64_test-gl:
   rules:
     - when: never
 
@@ -32,7 +32,15 @@ debian/arm64_test-vk:
   rules:
     - when: never
 
-debian/arm64_test-gl:
+debian/ppc64el_build:
+  rules:
+    - when: never
+
+debian/s390x_build:
+  rules:
+    - when: never
+
+debian/x86_64_test-vk:
   rules:
     - when: never
 
@@ -56,14 +64,6 @@ windows_test_msvc:
   rules:
     - when: never
 
-.debian/x86_64_build-mingw:
-   rules:
-    - when: never
-
-rustfmt:
-   rules:
-    - when: never
-
 windows_msvc:
    rules:
-    - when: never
\ No newline at end of file
+    - when: never
drivers/gpu/drm/ci/gitlab-ci.yml +56 -25

147 lines not on this page · raw message

drivers/gpu/drm/ci/igt_runner.sh +5 -8
index f38836ec837c..68b042e43b7f 100755
@@ -47,7 +47,7 @@ else
     ARCH="x86_64"
 fi
 
-curl -L --retry 4 -f --retry-all-errors --retry-delay 60 -s ${FDO_HTTP_CACHE_URI:-}$PIPELINE_ARTIFACTS_BASE/$ARCH/igt.tar.gz | tar --zstd -v -x -C /
+curl -L --retry 4 -f --retry-all-errors --retry-delay 60 -s $PIPELINE_ARTIFACTS_BASE/$ARCH/igt.tar.gz | tar --zstd -v -x -C /
 
 TESTLIST="/igt/libexec/igt-gpu-tools/ci-testlist.txt"
 
@@ -69,7 +69,7 @@ igt-runner \
     run \
     --igt-folder /igt/libexec/igt-gpu-tools \
     --caselist $TESTLIST \
-    --output /results \
+    --output $RESULTS_DIR \
     -vvvv \
     $IGT_SKIPS \
     $IGT_FLAKES \
@@ -80,13 +80,10 @@ set -e
 
 deqp-runner junit \
    --testsuite IGT \
-   --results /results/failures.csv \
-   --output /results/junit.xml \
+   --results $RESULTS_DIR/failures.csv \
+   --output $RESULTS_DIR/junit.xml \
    --limit 50 \
-   --template "See https://$CI_PROJECT_ROOT_NAMESPACE.pages.freedesktop.org/-/$CI_PROJECT_NAME/-/jobs/$CI_JOB_ID/artifacts/results/{{testcase}}.xml"
-
-# Store the results also in the simpler format used by the runner in ChromeOS CI
-#sed -r 's/(dmesg-warn|pass)/success/g' /results/results.txt > /results/results_simple.txt
+   --template "See $ARTIFACTS_BASE_URL/results/{{testcase}}.xml"
 
 cd $oldpath
 exit $ret
drivers/gpu/drm/ci/image-tags.yml +9 -2
index 8d8b9e71852e..20049f3626b2 100644
@@ -1,5 +1,5 @@
 variables:
-   CONTAINER_TAG: "2024-09-09-uprevs"
+   CONTAINER_TAG: "20250204-mesa-uprev"
    DEBIAN_X86_64_BUILD_BASE_IMAGE: "debian/x86_64_build-base"
    DEBIAN_BASE_TAG: "${CONTAINER_TAG}"
 
@@ -7,9 +7,16 @@ variables:
    DEBIAN_BUILD_TAG: "${CONTAINER_TAG}"
 
    KERNEL_ROOTFS_TAG: "${CONTAINER_TAG}"
+   # default kernel for rootfs before injecting the current kernel tree
+   KERNEL_TAG: "v6.13-rc4-mesa-5e77"
+   KERNEL_REPO: "gfx-ci/linux"
+   PKG_REPO_REV: "bca9635d"
 
    DEBIAN_X86_64_TEST_BASE_IMAGE: "debian/x86_64_test-base"
    DEBIAN_X86_64_TEST_IMAGE_GL_PATH: "debian/x86_64_test-gl"
    DEBIAN_TEST_GL_TAG: "${CONTAINER_TAG}"
 
-   ALPINE_X86_64_LAVA_SSH_TAG: "${CONTAINER_TAG}"
\ No newline at end of file
+   DEBIAN_PYUTILS_IMAGE: "debian/x86_64_pyutils"
+   DEBIAN_PYUTILS_TAG: "${CONTAINER_TAG}"
+
+   ALPINE_X86_64_LAVA_SSH_TAG: "${CONTAINER_TAG}"
drivers/gpu/drm/ci/lava-submit.sh +72 -28

130 lines not on this page · raw message

drivers/gpu/drm/ci/test.yml +8 -9
index f0ef60c8f56d..c5c786bf419b 100644
@@ -1,21 +1,21 @@
 .test-rules:
   rules:
-    - if: '$FD_FARM == "offline" && $RUNNER_TAG =~ /^google-freedreno-/'
-      when: never
-    - if: '$COLLABORA_FARM == "offline" && $RUNNER_TAG =~ /^mesa-ci-x86-64-lava-/'
-      when: never
     - !reference [.no_scheduled_pipelines-rules, rules]
+    - !reference [.collabora-farm-rules, rules]
+    - !reference [.google-freedreno-farm-rules, rules]
     - when: on_success
 
 .lava-test:
   extends:
     - .test-rules
+    - .build-rules
+    - .container+build-rules
   timeout: "1h30m"
   script:
     # Note: Build dir (and thus install) may be dirty due to GIT_STRATEGY
     - rm -rf install
     - tar -xf artifacts/install.tar
-    - mv install/* artifacts/.
+    - mv -n install/* artifacts/.
     # Override it with our lava-submit.sh script
     - ./artifacts/lava-submit.sh
 
@@ -32,6 +32,7 @@
     - alpine/x86_64_lava_ssh_client
     - kernel+rootfs_arm32
     - debian/x86_64_build
+    - python-artifacts
     - testing:arm32
     - igt:arm32
 
@@ -48,6 +49,7 @@
     - alpine/x86_64_lava_ssh_client
     - kernel+rootfs_arm64
     - debian/x86_64_build
+    - python-artifacts
     - testing:arm64
     - igt:arm64
 
@@ -64,6 +66,7 @@
     - alpine/x86_64_lava_ssh_client
     - kernel+rootfs_x86_64
     - debian/x86_64_build
+    - python-artifacts
     - testing:x86_64
     - igt:x86_64
 
@@ -453,8 +456,6 @@ virtio_gpu:none:
   script:
     - ln -sf $CI_PROJECT_DIR/install /install
     - mv install/bzImage /lava-files/bzImage
-    - mkdir -p $CI_PROJECT_DIR/results
-    - ln -sf $CI_PROJECT_DIR/results /results
     - install/crosvm-runner.sh install/igt_runner.sh
   needs:
     - debian/x86_64_test-gl
@@ -476,8 +477,6 @@ vkms:none:
     - ln -sf $CI_PROJECT_DIR/install /install
     - mv install/bzImage /lava-files/bzImage
     - mkdir -p /lib/modules
-    - mkdir -p $CI_PROJECT_DIR/results
-    - ln -sf $CI_PROJECT_DIR/results /results
     - ./install/crosvm-runner.sh ./install/igt_runner.sh
   needs:
     - debian/x86_64_test-gl
Signature · 1 line
2.43.0
author maintainer
#2 lore raw

PATCH v2 2/3 drm/ci: update gitlab rules

In reply to Vignesh Raman

Update gitlab rules to include scheduled pipelines.

---

v2:
- No changes.

---
 drivers/gpu/drm/ci/build.yml     |   1 -
 drivers/gpu/drm/ci/gitlab-ci.yml | 116 +++++++++++++------------------
 drivers/gpu/drm/ci/test.yml      |  26 +++----
 3 files changed, 63 insertions(+), 80 deletions(-)
drivers/gpu/drm/ci/build.yml +0 -1
index a2baa00a20db..274f118533a7 100644
@@ -1,6 +1,5 @@
 .build:
   extends:
-    - .build-rules
     - .container+build-rules
   stage: build-only
   artifacts:
drivers/gpu/drm/ci/gitlab-ci.yml +49 -67

170 lines not on this page · raw message

drivers/gpu/drm/ci/test.yml +14 -12
index c5c786bf419b..6a1e059858e5 100644
@@ -1,16 +1,11 @@
-.test-rules:
-  rules:
-    - !reference [.no_scheduled_pipelines-rules, rules]
-    - !reference [.collabora-farm-rules, rules]
-    - !reference [.google-freedreno-farm-rules, rules]
-    - when: on_success
-
 .lava-test:
   extends:
-    - .test-rules
-    - .build-rules
     - .container+build-rules
   timeout: "1h30m"
+  rules:
+    - !reference [.scheduled_pipeline-rules, rules]
+    - !reference [.collabora-farm-rules, rules]
+    - when: on_success
   script:
     # Note: Build dir (and thus install) may be dirty due to GIT_STRATEGY
     - rm -rf install
@@ -74,8 +69,11 @@
   extends:
     - .baremetal-test-arm64
     - .use-debian/baremetal_arm64_test
-    - .test-rules
   timeout: "1h30m"
+  rules:
+    - !reference [.scheduled_pipeline-rules, rules]
+    - !reference [.google-freedreno-farm-rules, rules]
+    - when: on_success
   variables:
     FDO_CI_CONCURRENT: 10
     HWCI_TEST_SCRIPT: "/install/igt_runner.sh"
@@ -444,13 +442,15 @@ panfrost:g12b:
 virtio_gpu:none:
   stage: software-driver
   timeout: "1h30m"
+  rules:
+    - !reference [.scheduled_pipeline-rules, rules]
+    - when: on_success
   variables:
     CROSVM_GALLIUM_DRIVER: llvmpipe
     DRIVER_NAME: virtio_gpu
     GPU_VERSION: none
   extends:
     - .test-gl
-    - .test-rules
   tags:
     - kvm
   script:
@@ -465,12 +465,14 @@ virtio_gpu:none:
 vkms:none:
   stage: software-driver
   timeout: "1h30m"
+  rules:
+    - !reference [.scheduled_pipeline-rules, rules]
+    - when: on_success
   variables:
     DRIVER_NAME: vkms
     GPU_VERSION: none
   extends:
     - .test-gl
-    - .test-rules
   tags:
     - kvm
   script:
Signature · 1 line
2.43.0
author maintainer
#3 lore raw

PATCH v2 3/3 drm/ci: update expectation files

In reply to Vignesh Raman

Update expectation files for the mesa uprev.

---

v2:
- New commit in v2.

---
 drivers/gpu/drm/ci/xfails/vkms-none-fails.txt | 2 ++
 1 file changed, 2 insertions(+)
drivers/gpu/drm/ci/xfails/vkms-none-fails.txt +2 -0
index 85647eca4e55..6ebcc7d89fbd 100644
@@ -13,6 +13,8 @@ kms_cursor_legacy@flip-vs-cursor-crc-legacy,Fail
 kms_cursor_legacy@flip-vs-cursor-legacy,Fail
 kms_flip@flip-vs-modeset-vs-hang,Fail
 kms_flip@flip-vs-panning-vs-hang,Fail
+kms_flip@flip-vs-suspend,Fail
+kms_flip@flip-vs-suspend-interruptible,Fail
 kms_lease@lease-uevent,Fail
 kms_writeback@writeback-check-output,Fail
 kms_writeback@writeback-check-output-XRGB2101010,Fail
Signature · 1 line
2.43.0
#4 lore raw
In reply to Vignesh Raman

---- On Wed, 05 Feb 2025 05:16:45 -0300 Vignesh Raman wrote ---

Quoted 18 lines

Uprev mesa to adapt to the latest changes in mesa-ci, including new container jobs and stages. Update the lava-submit script to align with recent mes-ci changes for using LAVA rootfs overlays. Modify gitLab rules to include scheduled pipelines. Also update the expectation files.

Pipeline link,
https://gitlab.freedesktop.org/vigneshraman/linux/-/pipelines/1358207

Link to v1,
https://lore.kernel.org/all/[email protected]/

Vignesh Raman (2):
drm/ci: uprev mesa
drm/ci: update gitlab rules
drm/ci: update expectation files

Quoted 15 lines
 drivers/gpu/drm/ci/build.sh                   |   2 +- 
 drivers/gpu/drm/ci/build.yml                  | 104 +++++++++- 
 drivers/gpu/drm/ci/container.yml              |  22 +- 
 drivers/gpu/drm/ci/gitlab-ci.yml              | 195 ++++++++++-------- 
 drivers/gpu/drm/ci/igt_runner.sh              |  13 +- 
 drivers/gpu/drm/ci/image-tags.yml             |  11 +- 
 drivers/gpu/drm/ci/lava-submit.sh             | 100 ++++++--- 
 drivers/gpu/drm/ci/test.yml                   |  37 ++-- 
 drivers/gpu/drm/ci/xfails/vkms-none-fails.txt |   2 + 
 9 files changed, 325 insertions(+), 161 deletions(-) 
Signature · 1 line
2.43.0 

Applied to drm-misc-next

Thanks
Helen