From 63d20a42faa8271e75cc125e47dcac593e4afb47 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Sun, 14 Jul 2024 09:20:25 +0200 Subject: [PATCH] Do not run concurrently tests for some modules Closes #13395 --- .gitlab-ci-modules.yml | 4 ++++ .gitlab-scripts/generate-ci.py | 13 +++++++++++-- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci-modules.yml b/.gitlab-ci-modules.yml index 7f730120c0..4e1752131d 100644 --- a/.gitlab-ci-modules.yml +++ b/.gitlab-ci-modules.yml @@ -587,12 +587,14 @@ test-modules-account_payment_stripe-sqlite: variables: PACKAGE: modules/account_payment_stripe TAG_PATTERN: '/^account_payment_stripe-.*/' + resource_group: stripe test-modules-account_payment_stripe-postgresql: extends: .test-postgresql variables: PACKAGE: modules/account_payment_stripe TAG_PATTERN: '/^account_payment_stripe-.*/' + resource_group: stripe check-doc-modules-account_product: extends: .check-doc @@ -3477,12 +3479,14 @@ test-modules-web_shop_shopify-sqlite: variables: PACKAGE: modules/web_shop_shopify TAG_PATTERN: '/^web_shop_shopify-.*/' + resource_group: shopify test-modules-web_shop_shopify-postgresql: extends: .test-postgresql variables: PACKAGE: modules/web_shop_shopify TAG_PATTERN: '/^web_shop_shopify-.*/' + resource_group: shopify check-doc-modules-web_shop_vue_storefront: extends: .check-doc diff --git a/.gitlab-scripts/generate-ci.py b/.gitlab-scripts/generate-ci.py index 3814509cbd..a445378e0f 100755 --- a/.gitlab-scripts/generate-ci.py +++ b/.gitlab-scripts/generate-ci.py @@ -17,13 +17,17 @@ test-${name}-sqlite: variables: PACKAGE: ${package} TAG_PATTERN: '/^${tag_name}-.*/' - +${extra} test-${name}-postgresql: extends: .test-postgresql variables: PACKAGE: ${package} TAG_PATTERN: '/^${tag_name}-.*/' -""") +${extra}""") +RESOURCE_GROUPS = { + 'account_payment_stripe': 'stripe', + 'web_shop_shopify': 'shopify', + } def main(filename): @@ -40,10 +44,15 @@ def render(file): name = tag_name = package.replace('/', '-') if tag_name.startswith('modules-'): tag_name = tag_name[len('modules-'):] + if resource_group := RESOURCE_GROUPS.get(tag_name): + extra = ' resource_group: ' + resource_group + '\n' + else: + extra = '' mapping = { 'name': name, 'package': package, 'tag_name': tag_name, + 'extra': extra, } file.write(TEMPLATE.substitute(mapping))