Skip to content

Commit 8e3232f

Browse files
committed
CI: Use variable to make group counts neater.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
1 parent 35b0fc5 commit 8e3232f

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

.github/workflows/ci.yaml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,7 @@ jobs:
413413
# For speed, we run a first integration test using gcc -O3 and sqlite3, in 6 parts.
414414
# If that passes, we move on to the more obscure integration tests.
415415
first-integration:
416-
name: First Integration Tests (${{ matrix.GROUP }}/6)
416+
name: First Integration Tests (${{ matrix.GROUP }}/${{ matrix.GROUP_COUNT }})
417417
runs-on: ubuntu-24.04
418418
timeout-minutes: 120
419419
env:
@@ -425,6 +425,7 @@ jobs:
425425
matrix:
426426
CFG: [compile-gcc]
427427
GROUP: [1,2,3,4,5,6]
428+
GROUP_COUNT: [6]
428429
TEST_DB_PROVIDER: [sqlite3]
429430
COMPILER: [gcc]
430431
TEST_NETWORK: [regtest]
@@ -473,7 +474,7 @@ jobs:
473474
run: |
474475
env
475476
cat config.vars
476-
VALGRIND=0 sg wireshark "uv run eatmydata pytest tests/ -n $(($(nproc) + 1)) ${PYTEST_OPTS} --test-group=${{ matrix.GROUP }} --test-group-count=6"
477+
VALGRIND=0 sg wireshark "uv run eatmydata pytest tests/ -n $(($(nproc) + 1)) ${PYTEST_OPTS} --test-group=${{ matrix.GROUP }} --test-group-count=${{ matrix.GROUP_COUNT }}"
477478
- name: Upload test results
478479
if: always()
479480
uses: actions/upload-artifact@v4
@@ -584,7 +585,7 @@ jobs:
584585
if-no-files-found: ignore
585586

586587
integration-valgrind:
587-
name: Valgrind Test CLN (${{ matrix.GROUP }}/12)
588+
name: Valgrind Test CLN (${{ matrix.GROUP }}/${{ matrix.GROUP_COUNT }})
588589
runs-on: ubuntu-24.04
589590
timeout-minutes: 120
590591
env:
@@ -596,6 +597,7 @@ jobs:
596597
matrix:
597598
CFG: [compile-gcc-O1]
598599
GROUP: [1,2,3,4,5,6,7,8,9,10,11,12]
600+
GROUP_COUNT: [12]
599601
steps:
600602
- name: Checkout
601603
uses: actions/checkout@v4
@@ -633,7 +635,7 @@ jobs:
633635
TEST_DEBUG: 1
634636
PYTEST_OPTS: ${{ env.PYTEST_OPTS_BASE }} --test-group-random-seed=42
635637
run: |
636-
VALGRIND=1 sg wireshark "uv run eatmydata pytest tests/ -n $(($(nproc) + 1)) ${PYTEST_OPTS} --test-group=${{ matrix.GROUP }} --test-group-count=12"
638+
VALGRIND=1 sg wireshark "uv run eatmydata pytest tests/ -n $(($(nproc) + 1)) ${PYTEST_OPTS} --test-group=${{ matrix.GROUP }} --test-group-count=${{ matrix.GROUP_COUNT }}"
637639
- name: Upload test results
638640
if: always()
639641
uses: actions/upload-artifact@v4
@@ -643,7 +645,7 @@ jobs:
643645
if-no-files-found: ignore
644646

645647
integration-sanitizers:
646-
name: ASan/UBSan (${{ matrix.GROUP }}/6)
648+
name: ASan/UBSan (${{ matrix.GROUP }}/${{ matrix.GROUP_COUNT }})
647649
runs-on: ubuntu-24.04
648650
timeout-minutes: 120
649651
env:
@@ -657,6 +659,7 @@ jobs:
657659
matrix:
658660
CFG: [compile-clang-sanitizers]
659661
GROUP: [1,2,3,4,5,6]
662+
GROUP_COUNT: [6]
660663
steps:
661664
- name: Checkout
662665
uses: actions/checkout@v4
@@ -691,7 +694,7 @@ jobs:
691694
env:
692695
PYTEST_OPTS: ${{ env.PYTEST_OPTS_BASE }} --test-group-random-seed=42
693696
run: |
694-
sg wireshark "uv run eatmydata pytest tests/ -n $(($(nproc) + 1)) ${PYTEST_OPTS} --test-group=${{ matrix.GROUP }} --test-group-count=6"
697+
sg wireshark "uv run eatmydata pytest tests/ -n $(($(nproc) + 1)) ${PYTEST_OPTS} --test-group=${{ matrix.GROUP }} --test-group-count=${{ matrix.GROUP_COUNT }}"
695698
- name: Upload test results
696699
if: always()
697700
uses: actions/upload-artifact@v4

0 commit comments

Comments
 (0)