Split integration less

This commit is contained in:
Daniel A. Wozniak 2025-01-21 13:29:57 -07:00 committed by Daniel Wozniak
parent 838d44301e
commit 1b24b47276
2 changed files with 10 additions and 2 deletions

View file

@ -64,8 +64,7 @@ jobs:
test-linux:
name: ${{ matrix.display_name }} ${{ matrix.tests-chunk }}
runs-on:
- ${{ matrix.arch == 'x86_64' && 'ubuntu-22.04' || inputs.linux_arm_runner }}
runs-on: ${{ matrix.arch == 'x86_64' && 'ubuntu-22.04' || inputs.linux_arm_runner }}
if: ${{ toJSON(fromJSON(inputs.matrix)['linux']) != '[]' }}
timeout-minutes: 120 # 2 Hours - More than this and something is wrong
strategy:

View file

@ -1706,6 +1706,8 @@ def workflow_config(
ctx.info(f"{pprint.pformat(pkg_test_matrix)}")
ctx.info(f"{'==== end pkg test matrix ====':^80s}")
# We need to be careful about how many chunks we make. We are limitied to
# 256 items in a matrix.
_splits = {
"functional": 4,
"integration": 5,
@ -1743,6 +1745,13 @@ def workflow_config(
for _ in TEST_SALT_LISTING[platform]
if _os_test_filter(_, transport, chunk)
]
for platform in platforms:
if len(test_matrix[platform]) > 256:
ctx.warn(
f"Number of jobs in {platform} test matrix exceeds 256 ({len(test_matrix[platform])}), jobs may not run."
)
ctx.info(f"{'==== test matrix ====':^80s}")
ctx.info(f"{pprint.pformat(test_matrix)}")
ctx.info(f"{'==== end test matrix ====':^80s}")