From ba4f6e87c7bd7a638407bbc948367e3c0a1c876f Mon Sep 17 00:00:00 2001 From: Eric Engestrom Date: Sat, 4 Nov 2023 14:53:17 +0000 Subject: [PATCH] ci/gitlab_gql: stop re-compiling regex now that all users pre-compile it Part-of: --- bin/ci/gitlab_gql.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/ci/gitlab_gql.py b/bin/ci/gitlab_gql.py index 82002c7b2a5..e925c886108 100755 --- a/bin/ci/gitlab_gql.py +++ b/bin/ci/gitlab_gql.py @@ -175,7 +175,7 @@ def create_job_needs_dag(gl_gql: GitlabGQL, params) -> tuple[Dag, dict[str, dict def filter_dag(dag: Dag, regex: Pattern) -> Dag: - return {job: needs for job, needs in dag.items() if re.match(regex, job)} + return {job: needs for job, needs in dag.items() if regex.match(job)} def print_dag(dag: Dag) -> None: