Skip to content

build: [Sample Tests 15] Add an integrationTests task that runs every module's suites - #6303

Draft
runningcode wants to merge 2 commits into
no/boot2-graphql-kafka-testfrom
no/integration-tests-aggregate
Draft

runningcode wants to merge 2 commits into
no/boot2-graphql-kafka-testfrom
no/integration-tests-aggregate

Conversation

@runningcode

@runningcode runningcode commented Oct 20, 2026 •

Copy link
Copy Markdown
Contributor

PR Stack (Sample Tests)


📜 Description

Adds a root integrationTests task that runs every module's integration test suites in one invocation:

Suite Tests
:sentry-spring-boot:integrationTest (Boot 2) 24
:sentry-spring-boot-jakarta:integrationTest (Boot 3) 29
:sentry-spring-boot-jakarta:integrationTestOtelAgent (Boot 3 with the agent) 2
:sentry-spring-boot-4:integrationTest (Boot 4) 25

The suites live in separate modules, so they're separate tasks. Each one starts its own mock Sentry server, Spring app and Kafka broker on free ports, so they share nothing and Gradle (with org.gradle.parallel and the configuration cache) runs them all at once.

The tasks are listed explicitly rather than discovered, because the build uses configure-on-demand, and an explicit list also shows exactly what runs. New suites need adding here.

The suites also stay part of each module's check.

💡 Motivation and Context

This gives you one command, ./gradlew integrationTests, for every Spring Boot line's integration tests. Plain ./gradlew integrationTest already matches the three integrationTest tasks by name, but it misses the agent suite.

💚 How did you test it?

  • ./gradlew integrationTests --dry-run selects the four suites.
  • Ran all four with --rerun: 80 tests pass in 24.6s of wall time.
  • The test reports show the four suites starting within 0.5s of each other and overlapping. The tests finish within 15.3s, which is the agent suite's length. Run one after another, they'd take about 47s.

📝 Checklist

  • I added GH Issue ID & Linear ID
  • I added tests to verify the changes.
  • No new PII added or SDK only sends newly added PII if sendDefaultPII is enabled.
  • I updated the docs if needed.
  • I updated the wizard if needed.
  • Review from the native team if needed.
  • No breaking change or entry added to the changelog.
  • No breaking change for hybrid SDKs or communicated to hybrid SDKs.
  • Public API changes reviewed by another Mobile SDK team member or implemented according to the develop docs spec.

🔮 Next steps

Add new suites to the list as more samples move into modules: WebFlux, OTel without the agent, and the Boot 2 and 4 agent suites.

#skip-changelog

The Spring Boot 2, 3 and 4 integration suites live in separate modules,
so they are separate tasks. integrationTests runs all of them, the
jakarta agent suite included, in one invocation. Each suite starts its
own servers on free ports, so Gradle runs them in parallel.

The suites also stay part of check.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@sentry

sentry Bot commented Oct 20, 2026 •

Copy link
Copy Markdown

📲 Install Builds

Android

🔗 App Name App ID Version Configuration
SDK Size io.sentry.tests.size 8.61.0 (1) release

⚙️ sentry-android Build Distribution Settings

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

This branch has not been deployed

No deployments
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