Do not run concurrently tests for some modules

Closes #13395
This commit is contained in:
Cédric Krier
2024-07-14 09:20:25 +02:00
parent 4eb4c7de07
commit 63d20a42fa
2 changed files with 15 additions and 2 deletions
+4
View File
@@ -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
+11 -2
View File
@@ -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))