ci: introduce the VALVE_FARM variable

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) <martin.roukala@mupuf.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19556>
This commit is contained in:
Martin Roukala (né Peres)
2022-11-06 17:49:09 +02:00
committed by Marge Bot
parent bedbdb5554
commit 078020c45e
3 changed files with 21 additions and 4 deletions

View File

@@ -23,6 +23,7 @@ variables:
LIMA_FARM: "online"
IGALIA_FARM: "online"
ANHOLT_FARM: "online"
VALVE_FARM: "online"
default:
before_script:

View File

@@ -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:

View File

@@ -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