From ccab97a1caea186b2251cfdcbe3115dbe90b2b02 Mon Sep 17 00:00:00 2001 From: Jakub Kadlcik Date: Tue, 23 May 2023 22:26:47 +0200 Subject: [PATCH] copr-backend: temporarily comment max_workers tasks See https://pagure.io/fedora-infrastructure/issue/11336 We need to temporarily comment the following few tasks. They fail because the `python3-jmespath` on batcave is provided older python version than we need. --- roles/copr/backend/tasks/main.yml | 48 ++++++++++++++++++------------- 1 file changed, 28 insertions(+), 20 deletions(-) diff --git a/roles/copr/backend/tasks/main.yml b/roles/copr/backend/tasks/main.yml index 499d0c815b..1579581346 100644 --- a/roles/copr/backend/tasks/main.yml +++ b/roles/copr/backend/tasks/main.yml @@ -192,28 +192,36 @@ # tags: # - provision_config # -- name: calculate the maximum resalloc workers per architecture - set_fact: "max_{{ item }}_workers={{ builders | community.general.json_query('*.'+item+'[0]') | sum() }}" - with_items: - - aarch64 - - ppc64le - - x86_64 - - s390x - tags: - - provision_config -- name: calculate max number of workers - set_fact: "max_workers={{ max_x86_64_workers|int + max_aarch64_workers|int + max_ppc64le_workers|int + max_s390x_workers|int }}" - tags: - - provision_config -- name: print max arch workers - debug: "var=max_{{ item }}_workers" - with_items: - - x86_64 - - aarch64 - tags: - - provision_config +# We need to temporarily comment the following few tasks. They fail +# because the `python3-jmespath` on batcave is provided older python +# version than we need. +# See https://pagure.io/fedora-infrastructure/issue/11336 +# +# - name: calculate the maximum resalloc workers per architecture +# set_fact: "max_{{ item }}_workers={{ builders | community.general.json_query('*.'+item+'[0]') | sum() }}" +# with_items: +# - aarch64 +# - ppc64le +# - x86_64 +# - s390x +# tags: +# - provision_config +# +# - name: calculate max number of workers +# set_fact: "max_workers={{ max_x86_64_workers|int + max_aarch64_workers|int + max_ppc64le_workers|int + max_s390x_workers|int }}" +# tags: +# - provision_config +# +# - name: print max arch workers +# debug: "var=max_{{ item }}_workers" +# with_items: +# - x86_64 +# - aarch64 +# tags: +# - provision_config + - name: resalloc import_tasks: resalloc.yml