Skip to content

ci(spring-matrix): Replace sed hacks with targeted Gradle builds#5397

Draft
runningcode wants to merge 2 commits intomainfrom
no/optimize-spring-matrix-ci
Draft

ci(spring-matrix): Replace sed hacks with targeted Gradle builds#5397
runningcode wants to merge 2 commits intomainfrom
no/optimize-spring-matrix-ci

Conversation

@runningcode
Copy link
Copy Markdown
Contributor

Summary

  • Remove sed-based Android module exclusion from settings.gradle.kts and build.gradle.kts in the three Spring Boot matrix workflows — unnecessary because org.gradle.configureondemand=true ensures Gradle only configures projects needed for the requested tasks
  • Replace the broad ./gradlew assemble --parallel (which built the entire non-Android project) with a single targeted Gradle invocation that builds only the specific artifacts needed (shadowJar/bootJar/war + OTel agent)
  • Remove redundant --build "true" from test runner invocations since artifacts are already pre-built

🤖 Generated with Claude Code

Remove the sed-based Android module exclusion from settings.gradle.kts
and build.gradle.kts in the Spring Boot matrix workflows. This is
unnecessary because `org.gradle.configureondemand=true` ensures Gradle
only configures projects needed for the requested tasks.

Replace the broad `./gradlew assemble --parallel` with a single
targeted Gradle invocation that builds only the specific artifacts
needed (shadowJar/bootJar/war + OTel agent). Remove redundant
`--build "true"` from test runner invocations since artifacts are
already built.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@sentry
Copy link
Copy Markdown

sentry Bot commented May 8, 2026

📲 Install Builds

Android

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

⚙️ sentry-android Build Distribution Settings

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 8, 2026

Performance metrics 🚀

  Plain With Sentry Diff
Startup time 349.57 ms 422.86 ms 73.30 ms
Size 0 B 0 B 0 B

Baseline results on branch: main

Startup times

Revision Plain With Sentry Diff
5865051 319.74 ms 365.60 ms 45.86 ms
0220a5c 452.20 ms 479.33 ms 27.12 ms
2124a46 319.19 ms 415.04 ms 95.85 ms
2195398 322.52 ms 361.91 ms 39.39 ms
bbc35bb 298.53 ms 372.17 ms 73.64 ms
d364ace 382.77 ms 443.21 ms 60.44 ms
d15471f 379.40 ms 470.76 ms 91.36 ms
9139b91 351.35 ms 355.63 ms 4.28 ms
fc5ccaf 322.49 ms 405.25 ms 82.76 ms
52feca7 314.77 ms 378.67 ms 63.90 ms

App size

Revision Plain With Sentry Diff
5865051 0 B 0 B 0 B
0220a5c 0 B 0 B 0 B
2124a46 1.58 MiB 2.12 MiB 551.51 KiB
2195398 0 B 0 B 0 B
bbc35bb 1.58 MiB 2.12 MiB 553.01 KiB
d364ace 1.58 MiB 2.11 MiB 539.75 KiB
d15471f 1.58 MiB 2.13 MiB 559.54 KiB
9139b91 1.58 MiB 2.13 MiB 559.52 KiB
fc5ccaf 1.58 MiB 2.13 MiB 557.54 KiB
52feca7 0 B 0 B 0 B

Previous results on branch: no/optimize-spring-matrix-ci

Startup times

Revision Plain With Sentry Diff
f3d133a 316.02 ms 369.14 ms 53.12 ms

App size

Revision Plain With Sentry Diff
f3d133a 0 B 0 B 0 B

Add testClasses tasks to the single Gradle invocation so test
sources are pre-compiled. The subsequent systemTest Gradle calls
then only execute tests without needing to compile anything.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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