From ff928d9567a5d50d22b7505e4b355e4c5fef6c9e Mon Sep 17 00:00:00 2001 From: Christian Gmeiner Date: Fri, 7 Oct 2022 13:31:22 +0200 Subject: [PATCH] ci: Allow disabling the whole of austriancoder's farm 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 Reviewed-by: David Heidelberg Reviewed-by: Emma Anholt Part-of: --- .gitlab-ci.yml | 1 + .gitlab-ci/test-source-dep.yml | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index dd0b333..f7c7236 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -24,6 +24,7 @@ variables: IGALIA_FARM: "online" ANHOLT_FARM: "online" VALVE_FARM: "online" + AUSTRIANCODER_FARM: "online" # only etnaviv GPUs default: before_script: diff --git a/.gitlab-ci/test-source-dep.yml b/.gitlab-ci/test-source-dep.yml index 6859e59..834fe48 100644 --- a/.gitlab-ci/test-source-dep.yml +++ b/.gitlab-ci/test-source-dep.yml @@ -168,6 +168,10 @@ # 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. @@ -626,6 +630,7 @@ .etnaviv-rules: stage: etnaviv rules: + - !reference [.austriancoder-farm-rules, rules] - !reference [.gl-rules, rules] - changes: - src/etnaviv/**/* -- 2.7.4