Skip to content

ci: split integration tests into groups for isolated reruns - #87

Open
RaphaelManke wants to merge 1 commit into
masterfrom
RaphaelManke/split-integration-tests
Open

ci: split integration tests into groups for isolated reruns#87
RaphaelManke wants to merge 1 commit into
masterfrom
RaphaelManke/split-integration-tests

Conversation

@RaphaelManke

Copy link
Copy Markdown
Contributor

Summary

  • Splits the integration-test job into a fail-fast: false matrix over 7 groups (node, python, java, db, tracing, sls-plugin, other), defined in integration-tests/tests/vitest.groups.ts and wired into vitest via test.projects.
  • One group flaking no longer cancels or blocks the others, and GitHub's rerun-failed-jobs only reruns the group that actually failed instead of the full 25-file suite.
  • Running npm run test with no --project still runs everything, same as before.

Note

Draft PRs are not currently excluded from deploy/deploy-cdk/deploy-sls/integration-test in ci.yml (only the cheap unit-test jobs are), so this will still trigger a full AWS deploy + integration run. Happy to add a draft == false guard to those jobs in a follow-up if that's unwanted.

Test plan

  • Verify the Integration Test (*) matrix jobs appear and run independently in the Actions tab
  • Confirm all 24 test files still get picked up (verified locally: vitest list across all 7 --project flags matches the full file list, no gaps or duplicates)
  • Confirm cancelling/rerunning one group job doesn't affect the others

Groups tests by failure domain (node/python/java/db/tracing/sls-plugin/
other) using vitest projects, and fans the integration-test CI job out
into a fail-fast:false matrix over those groups. A flake in one group no
longer cancels or blocks the others, and GitHub's rerun-failed-jobs only
reruns the group that actually failed instead of all 25 test files.
@RaphaelManke
RaphaelManke marked this pull request as ready for review August 27, 2026 12:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant