From 078020c45ecb7894ab4861e184369fb8683d4e7a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Martin=20Roukala=20=28n=C3=A9=20Peres=29?= Date: Sun, 6 Nov 2022 17:49:09 +0200 Subject: [PATCH] ci: introduce the VALVE_FARM variable MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit This mirrors all the other *_FARM variables, and allows developers to quickly disable all the jobs that would otherwise run on Valve's CI infrastructure by setting it to the 'offline' value. To this end, .radv_rules gets split into .radv-collabora-rules and .radv-valve-rules, since the driver will be testable in two different test farms. Every radv job is then made to inherit from the right farm. Signed-off-by: Martin Roukala (né Peres) Part-of: --- .gitlab-ci.yml | 1 + .gitlab-ci/test-source-dep.yml | 18 +++++++++++++++++- src/amd/ci/gitlab-ci.yml | 6 +++--- 3 files changed, 21 insertions(+), 4 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index e3c170e..d55feab 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -23,6 +23,7 @@ variables: LIMA_FARM: "online" IGALIA_FARM: "online" ANHOLT_FARM: "online" + VALVE_FARM: "online" default: before_script: diff --git a/.gitlab-ci/test-source-dep.yml b/.gitlab-ci/test-source-dep.yml index 0e51770..b9119b1 100644 --- a/.gitlab-ci/test-source-dep.yml +++ b/.gitlab-ci/test-source-dep.yml @@ -160,6 +160,11 @@ - if: '$ANHOLT_FARM == "offline"' when: never +.valve-farm-rules: + rules: + - if: '$VALVE_FARM == "offline"' + when: never + # Skips freedreno jobs if either of the farms we use are offline. .freedreno-farm-rules: rules: @@ -347,13 +352,24 @@ .radv-rules: stage: amd rules: - - !reference [.collabora-farm-rules, rules] - !reference [.vulkan-rules, rules] - changes: &radv_file_list - src/amd/**/* - src/vulkan/**/* when: on_success +.radv-collabora-rules: + stage: amd + rules: + - !reference [.collabora-farm-rules, rules] + - !reference [.radv-rules, rules] + +.radv-valve-rules: + stage: amd + rules: + - !reference [.valve-farm-rules, rules] + - !reference [.radv-rules, rules] + .virgl-rules: stage: layered-backends rules: diff --git a/src/amd/ci/gitlab-ci.yml b/src/amd/ci/gitlab-ci.yml index 772e9c8..abb6ff1 100644 --- a/src/amd/ci/gitlab-ci.yml +++ b/src/amd/ci/gitlab-ci.yml @@ -24,7 +24,7 @@ .radv-stoney-test:amd64: extends: - .stoney-test:amd64 - - .radv-rules + - .radv-collabora-rules variables: DEQP_VER: vk DRIVER_NAME: radv @@ -83,7 +83,7 @@ radeonsi-stoney-traces:amd64: .radv-raven-test:amd64: extends: - .raven-test:amd64 - - .radv-rules + - .radv-collabora-rules variables: GPU_VERSION: radv-raven VK_DRIVER: radeon @@ -160,7 +160,7 @@ radeonsi-raven-va:amd64: ############### Valve Infra .test-radv: extends: - - .radv-rules + - .radv-valve-rules variables: VK_DRIVER: radeon DRIVER_NAME: radv -- 2.7.4