ci: Allow disabling the whole of austriancoder's farm
authorChristian Gmeiner <christian.gmeiner@gmail.com>
Fri, 7 Oct 2022 11:31:22 +0000 (13:31 +0200)
committerMarge Bot <emma+marge@anholt.net>
Thu, 8 Dec 2022 14:09:39 +0000 (14:09 +0000)
Add a global-level variable that allows disabling all jobs that would
have gone to my lab, to be used in case of outages.

Signed-off-by: Christian Gmeiner <christian.gmeiner@gmail.com>
Reviewed-by: David Heidelberg <david.heidelberg@collabora.com>
Reviewed-by: Emma Anholt <emma@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18997>

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

index dd0b333..f7c7236 100644 (file)
@@ -24,6 +24,7 @@ variables:
   IGALIA_FARM: "online"
   ANHOLT_FARM: "online"
   VALVE_FARM: "online"
+  AUSTRIANCODER_FARM: "online"  # only etnaviv GPUs
 
 default:
   before_script:
index 6859e59..834fe48 100644 (file)
     # so only enable automatic testing when running in the context of Mesa to
     # prevent failures in forks.
     - if: '$CI_PROJECT_NAMESPACE != "mesa"'
+
+.austriancoder-farm-rules:
+  rules:
+    - if: '$AUSTRIANCODER_FARM == "offline"'
       when: never
 
 # Skips freedreno jobs if either of the farms we use are offline.
 .etnaviv-rules:
   stage: etnaviv
   rules:
+    - !reference [.austriancoder-farm-rules, rules]
     - !reference [.gl-rules, rules]
     - changes:
       - src/etnaviv/**/*