Skip to content

Commit e8e7a0c

Browse files
authored
Update to run tests with 4 nodes to reduce infra load (#3681)
This PR optimizes the integration test execution in CI to reduce infrastructure load and improve test reliability. This change splits the integration-tests-full-ci Makefile target into 3 sequential batches instead of running all 6 test suites together with high parallelism. Additionally, the number of parallel nodes is reduced from 12 to 4 in the GitHub Actions workflow. Test suites are now grouped logically into batches that run sequentially with controlled parallelism to prevent infrastructure overload while maintaining reasonable test execution time.
1 parent cd3a469 commit e8e7a0c

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

.github/workflows/tests-integration-reusable.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ on:
1818

1919
env:
2020
ENV_NAME: ${{ inputs.env-name }}
21-
NODES: 12
21+
NODES: 4
2222
FLAKE_ATTEMPTS: ${{ vars.TEST_FLAKE_ATTEMPTS || '5' }}
2323
BBL_CLI_VERSION: ${{ vars.BBL_CLI_VERSION }}
2424
BOSH_CLI_VERSION: ${{ vars.BOSH_CLI_VERSION }}

Makefile

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -140,9 +140,13 @@ integration-full-tests: integration-tests-full
140140
integration-tests-full: build integration-cleanup integration-isolated integration-push integration-experimental integration-plugin integration-global integration-selfcontained ## Run all isolated, push, experimental, plugin, selfcontained, and global integration tests
141141

142142
integration-tests-full-ci: install-test-deps integration-cleanup
143-
$(ginkgo_int) -nodes $(NODES) \
144-
integration/shared/isolated integration/v7/isolated integration/shared/plugin integration/shared/experimental integration/v7/experimental integration/v7/push
145-
$(ginkgo_int) integration/shared/global integration/v7/global
143+
$(ginkgo_int) -nodes $(NODES) -flake-attempts $(FLAKE_ATTEMPTS) \
144+
integration/shared/isolated integration/v7/isolated
145+
$(ginkgo_int) -nodes $(NODES) -flake-attempts $(FLAKE_ATTEMPTS) \
146+
integration/shared/plugin integration/shared/experimental
147+
$(ginkgo_int) -nodes $(NODES) -flake-attempts $(FLAKE_ATTEMPTS) \
148+
integration/v7/experimental integration/v7/push
149+
$(ginkgo_int) -flake-attempts $(FLAKE_ATTEMPTS) integration/shared/global integration/v7/global
146150

147151
lint: format ## Runs all linters and formatters
148152
@echo "Running linters..."

0 commit comments

Comments
 (0)