From 3458f7f46f8c3a6ad3c4851bc45cc984ea61fcb2 Mon Sep 17 00:00:00 2001
From: Tobias Leibner <tobias.leibner@googlemail.com>
Date: Wed, 24 Nov 2021 08:32:06 +0100
Subject: [PATCH] [ci] Adjust tags to avoid OOM errors

---
 .ci/gitlab/config.yml         | 6 +++++-
 .ci/gitlab/config_template.py | 6 ++++--
 2 files changed, 9 insertions(+), 3 deletions(-)

diff --git a/.ci/gitlab/config.yml b/.ci/gitlab/config.yml
index 370689d00..c1036c908 100644
--- a/.ci/gitlab/config.yml
+++ b/.ci/gitlab/config.yml
@@ -184,6 +184,8 @@ clang_full cpp:
     variables:
         CI_IMAGE: debian_clang_full
         TESTS_MODULE_SUBDIR: gdt
+    tags:
+        - dustin
     stage: cpp
     needs: ["debian_clang_full"]
     script:
@@ -194,6 +196,8 @@ clang_full headercheck:
     variables:
         CI_IMAGE: debian_clang_full
         TESTS_MODULE_SUBDIR: gdt
+    tags:
+        - dustin
     stage: headercheck
     needs: ["debian_clang_full"]
     script:
@@ -228,7 +232,7 @@ clang_full python:
     variables:
         CI_IMAGE: debian_clang_full
     tags:
-        - dustin
+        - amm-only
     stage: python
     needs: ["debian_clang_full"]
     script:
diff --git a/.ci/gitlab/config_template.py b/.ci/gitlab/config_template.py
index cc8b07835..14bb2ca60 100755
--- a/.ci/gitlab/config_template.py
+++ b/.ci/gitlab/config_template.py
@@ -137,10 +137,8 @@ lint:
     variables:
         CI_IMAGE: {{ image }}
         TESTS_MODULE_SUBDIR: {{ subdir }}
-    {%- if 'gcc' in image %}
     tags:
         - dustin
-    {%- endif %}
     stage: {{kind}}
     needs: ["{{image}}"]
     script:
@@ -153,7 +151,11 @@ lint:
     variables:
         CI_IMAGE: {{ image }}
     tags:
+    {%- if 'clang' in image %}
+        - amm-only
+    {%- else %}
         - dustin
+    {%- endif %}
     stage: python
     needs: ["{{image}}"]
     script:
-- 
GitLab