Split the test jobs in two halves

The clusterioctl, plugin system and instance integration tests take
about half of the test time, so they run on one runner and the rest of
the tests on another, each half with its own controller and host.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
bbassieandClaude Opus 5.5 committed 2026-10-30 20:31:32 +00:00
1 parent 3707fc35fc
commit 75cdfbad8d
1 file changed
+12 -3
+12 -3
View File
@@ -35,10 +35,19 @@ jobs:
# Supported factorio versions are latest stable and one minor version before stable (even if from a previous major) # Supported factorio versions are latest stable and one minor version before stable (even if from a previous major)
factorio-version: [1.1.110, 2.0.77, 2.1.17] factorio-version: [1.1.110, 2.0.77, 2.1.17]
# The tests run in two halves of similar length on separate runners,
# the clusterioctl, plugin system and instance integration tests and the rest.
tests: [ctl, other]
# Coverage is performed on the older of the supported node versions # Coverage is performed on the older of the supported node versions
include: include:
- node-version: 22.x - node-version: 22.x
factorio-version: 2.1.17 factorio-version: 2.1.17
tests: ctl
coverage: true
- node-version: 22.x
factorio-version: 2.1.17
tests: other
coverage: true coverage: true
steps: steps:
@@ -51,10 +60,10 @@ jobs:
run: wget -q -O factorio.tar.gz https://www.factorio.com/get-download/${{ matrix.factorio-version }}/headless/linux64 && tar -xf factorio.tar.gz && rm factorio.tar.gz run: wget -q -O factorio.tar.gz https://www.factorio.com/get-download/${{ matrix.factorio-version }}/headless/linux64 && tar -xf factorio.tar.gz && rm factorio.tar.gz
- name: Run tests - name: Run tests
if: ${{ !matrix.coverage }} if: ${{ !matrix.coverage }}
run: pnpm test run: pnpm test --grep "^(Integration of Clusterio (clusterioctl|plugin system)|Clusterio Instance) " ${{ matrix.tests == 'other' && '--invert' || '' }}
- name: Run coverage - name: Run coverage
if: ${{ matrix.coverage }} if: ${{ matrix.coverage }}
run: pnpm run ci-cover run: pnpm run ci-cover --grep "^(Integration of Clusterio (clusterioctl|plugin system)|Clusterio Instance) " ${{ matrix.tests == 'other' && '--invert' || '' }}
- name: Upload coverage to Codecov - name: Upload coverage to Codecov
if: ${{ matrix.coverage }} if: ${{ matrix.coverage }}
uses: codecov/codecov-action@v7 uses: codecov/codecov-action@v7
@@ -67,7 +76,7 @@ jobs:
if: ${{ !cancelled() }} if: ${{ !cancelled() }}
uses: actions/upload-artifact@v7 uses: actions/upload-artifact@v7
with: with:
name: logs-${{ matrix.node-version }}-${{ matrix.factorio-version }} name: logs-${{ matrix.node-version }}-${{ matrix.factorio-version }}-${{ matrix.tests }}
path: temp/test/logs path: temp/test/logs
version-compat: version-compat: