From d2c3c92f5e5935b143b37dc3a2c1ef009448958c Mon Sep 17 00:00:00 2001 From: Eric Engestrom Date: Sat, 30 Aug 2025 17:09:32 +0200 Subject: [PATCH] ci/gitlab_gql: keep track of job tags Part-of: --- bin/ci/gitlab_gql.py | 2 ++ bin/ci/pipeline_details.gql | 1 + 2 files changed, 3 insertions(+) diff --git a/bin/ci/gitlab_gql.py b/bin/ci/gitlab_gql.py index 5c48e76eadd..6729d63950c 100755 --- a/bin/ci/gitlab_gql.py +++ b/bin/ci/gitlab_gql.py @@ -29,6 +29,7 @@ DEFAULT_TERMINAL_SIZE: int = 80 # columns class DagNode(TypedDict): needs: set[str] stage: str + tags: set[str] # `name` is redundant but is here for retro-compatibility name: str @@ -254,6 +255,7 @@ def extract_stages_and_job_needs( stage_sequence[job["stage"]["name"]].add(job["name"]) dag_job: DagNode = { "name": job["name"], + "tags": set(job["tags"] or []), # jobs with no tags defined return None here "stage": job["stage"]["name"], "needs": set([j["node"]["name"] for j in job["needs"]["edges"]]), } diff --git a/bin/ci/pipeline_details.gql b/bin/ci/pipeline_details.gql index 2c8be9fc5ba..084c40a6a28 100644 --- a/bin/ci/pipeline_details.gql +++ b/bin/ci/pipeline_details.gql @@ -28,6 +28,7 @@ query jobs($projectPath: ID!, $iid: ID!, $cursor: String) { stage { name } + tags } } }