Skip to content

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

Merged
runningcode merged 3 commits into
mainfrom
no/optimize-spring-matrix-ci
Jun 9, 2026
Merged

ci(spring-matrix): Replace sed hacks with targeted Gradle builds#5397
runningcode merged 3 commits into
mainfrom
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

@sentry

sentry Bot commented May 8, 2026

Copy link
Copy Markdown

📲 Install Builds

Android

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

⚙️ sentry-android Build Distribution Settings

@github-actions

github-actions Bot commented May 8, 2026

Copy link
Copy Markdown
Contributor

Performance metrics 🚀

  Plain With Sentry Diff
Startup time 352.90 ms 423.10 ms 70.20 ms
Size 0 B 0 B 0 B

Baseline results on branch: main

Startup times

Revision Plain With Sentry Diff
91bb874 314.47 ms 440.00 ms 125.53 ms
2195398 309.39 ms 354.53 ms 45.14 ms
9770665 315.64 ms 378.00 ms 62.36 ms
abfcc92 337.38 ms 427.39 ms 90.00 ms
b77456b 393.26 ms 441.10 ms 47.84 ms
8687935 332.52 ms 362.23 ms 29.71 ms
14ff5ee 419.75 ms 495.73 ms 75.98 ms
48277cd 320.38 ms 379.90 ms 59.52 ms
694d587 305.45 ms 378.38 ms 72.94 ms
4c04bb8 350.71 ms 413.63 ms 62.92 ms

App size

Revision Plain With Sentry Diff
91bb874 1.58 MiB 2.13 MiB 559.07 KiB
2195398 0 B 0 B 0 B
9770665 0 B 0 B 0 B
abfcc92 1.58 MiB 2.13 MiB 557.31 KiB
b77456b 1.58 MiB 2.12 MiB 548.11 KiB
8687935 1.58 MiB 2.19 MiB 619.17 KiB
14ff5ee 1.58 MiB 2.10 MiB 535.08 KiB
48277cd 0 B 0 B 0 B
694d587 1.58 MiB 2.19 MiB 620.06 KiB
4c04bb8 0 B 0 B 0 B

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

Startup times

Revision Plain With Sentry Diff
65a4617 380.30 ms 472.48 ms 92.18 ms
f3d133a 316.02 ms 369.14 ms 53.12 ms

App size

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

@runningcode runningcode force-pushed the no/optimize-spring-matrix-ci branch from 353e4fd to 3e69be9 Compare May 27, 2026 15:58
@runningcode runningcode marked this pull request as ready for review May 27, 2026 15:59
runningcode and others added 3 commits June 9, 2026 10:50
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>
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>
Already set in gradle.properties.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@runningcode runningcode force-pushed the no/optimize-spring-matrix-ci branch from 3e69be9 to 2d63603 Compare June 9, 2026 08:50
@runningcode runningcode merged commit 887fd58 into main Jun 9, 2026
68 checks passed
@runningcode runningcode deleted the no/optimize-spring-matrix-ci branch June 9, 2026 09:25
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.

2 participants