Merge fix/web-app-gitlab/design-stack-host into feature/store-i18n

GitLab#0 of fork run 42465517680 attempt 6: the logo slurp now runs once on the stack host.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
kevinveenbirkenbachandClaude Opus 5.5 committed 2026-11-08 12:51:18 +00:00
commit 1c922d39f3
2 files changed
+24

No files matched your search

@@ -21,5 +21,7 @@
loop: "{{ GITLAB_DESIGN_UPLOADS }}"
loop_control:
label: "{{ item.file }}"
delegate_to: "{{ STACK_HOST }}"
run_once: true
register: gitlab_design_files
when: design_branding.logo is string
@@ -0,0 +1,22 @@
import unittest
from utils.cache.yaml import load_yaml_any
from . import PROJECT_ROOT
DESIGN = PROJECT_ROOT / "roles" / "web-app-gitlab" / "tasks" / "utils" / "design.yml"
class TestDesign(unittest.TestCase):
def test_the_logo_read_runs_once_on_the_stack_host(self) -> None:
block = load_yaml_any(str(DESIGN))[0]["block"]
read = next(task for task in block if "ansible.builtin.slurp" in task)
self.assertEqual(
(read.get("delegate_to"), read.get("run_once")),
("{{ STACK_HOST }}", True),
"design_assets renders the logo set only where IS_STACK_HOST holds, so a swarm worker that slurps it finds no file",
)
if __name__ == "__main__":
unittest.main()