Skip to content

build(otel): Register agent without-auto-init tests as a suite target - #6632

Merged
runningcode merged 1 commit into
mainfrom
no/otel-agent-tests-suite-target
Nov 17, 2026
Merged

runningcode merged 1 commit into
mainfrom
no/otel-agent-tests-suite-target

Conversation

@runningcode

Copy link
Copy Markdown
Contributor

📜 Description

OtelAgentTestsPlugin now registers integrationTestOtelAgentWithoutAutoInit as a second target of the integrationTestOtelAgent JVM test suite, instead of as a hand-made Test task.

💡 Motivation and Context

The without-auto-init run uses the suite's classes and classpath and differs only in one JVM argument. A suite target gets its test classes, classpath, test framework and verification group from the suite, so the plugin no longer copies them by hand. Task names stay the same, and so do the Spring Boot matrix tasks.

💚 How did you test it?

  • ./gradlew :sentry-spring-boot:integrationTestOtelAgent :sentry-spring-boot:integrationTestOtelAgentWithoutAutoInit passes, with the same 22 tests in each
  • Checked that each task has a single ChildJvmTestArguments provider and its own sentry.test.agentAutoInit value (true and false)

📝 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

None.

#skip-changelog

🤖 Generated with Claude Code

The without-auto-init run uses the same classes and classpath as the
integrationTestOtelAgent suite and differs only in one JVM argument.
Registering it as a second target of the suite lets Gradle set up its
test classes, classpath and test framework, instead of copying them into
a hand-made Test task.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@sentry

sentry Bot commented Nov 17, 2026

Copy link
Copy Markdown

📲 Install Builds

Android

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

⚙️ sentry-android Build Distribution Settings

@runningcode
runningcode marked this pull request as ready for review November 17, 2026 09:16
@runningcode
runningcode requested review from a team and adinauer as code owners November 17, 2026 09:16
@runningcode
runningcode requested review from 0xadam-brown and romtsn and removed request for a team November 17, 2026 09:16
@github-actions github-actions Bot added the risk: low PR risk score: low label Nov 17, 2026
@runningcode
runningcode merged commit fdae88c into main Nov 17, 2026
50 checks passed
@runningcode
runningcode deleted the no/otel-agent-tests-suite-target branch November 17, 2026 09:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

risk: low PR risk score: low

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants