release: 2.41.0#352
Open
stainless-app[bot] wants to merge 3 commits into
Open
Conversation
- Enable the Gradle daemon and give the Kotlin daemon its own JVM args with full tiered JIT compilation (the old -XX:TieredStopAtLevel=1 crippled the long-lived, CPU-bound Kotlin compiler; cold compile 84s -> 62s) - Audit the daemon JVM flags against measurements: drop no-op or unhelpful flags (-XX:+OptimizeStringConcat is default-on, -XX:+UseStringDeduplication had no measurable effect, -Xms2g/-XX:GCTimeRatio/-XX:CICompilerCount tuned the old no-daemon setup) and document why each kept flag earns its place - Cap daemon heaps so the Gradle daemon, Kotlin daemon, and test workers fit in a 16 GB GitHub Actions runner; uncapped daemons got CI jobs killed - Fix CI caching: setup-java's 'cache: gradle' restored ~/.gradle first, which made setup-gradle skip both restoring and saving its own cache (including the build cache), so CI recompiled everything every run - Unify on gradle/actions/setup-gradle v4 (the test and release workflows used the deprecated gradle-build-action v2) and wire cache-encryption-key so configuration-cache data can be saved/restored on CI - Generate the anthropic-java javadoc JAR from aggregated source sets on its own dokkaJavadoc task instead of the root dokkaJavadocCollector task, whose outputs overlap with the per-module dokka tasks' outputs, disabling build caching and re-documenting every module on every CI build (~17 min cold); warm CI publish step is now ~13s with dokka fully cached - Raise the build job timeout to 30 minutes so the first cache-seeding run (full compile + full dokka) can complete; cached runs are much faster - Make anthropic-java-proguard-test configuration-cache compatible (pass the shadow JAR path instead of the task to ProGuard's injars) and declare inputs/outputs on the ProGuard/R8 tasks so warm test runs skip ~15s of re-verification - Remove forkEvery=100 from test tasks and fix the underlying flakiness: SLF4J prints a 'no providers' warning to stderr on first use, corrupting tests that assert on exact stderr contents; binding slf4j-nop on the test runtime classpath keeps SLF4J silent (also ~4s faster test execution) - Raise the Gradle daemon heap to 6g: Dokka generates documentation in-process and a cold build OOMs the daemon at 3g (locally: 10.5 min of GC thrash, then OOM; at 6g the same cold publish completes in 1.5 min) - Run the anthropic-java dokkaJavadoc task after every other module's: two large in-process Dokka generations running concurrently can exhaust the daemon heap regardless of machine size (a CI run hung for 25 minutes this way); serializing them costs ~6s on a cold build - Move CI jobs to ubuntu-latest-16-core runners (16 vCPU / 64 GB vs 4 vCPU / 16 GB), cutting the cold-cache build job to ~10 min and lint to ~1 min
Contributor
Author
|
🧪 Testing To try out this version of the SDK: Expires at: Sat, 11 Jul 2026 20:57:47 GMT |
30c6c30 to
f8712fa
Compare
Contributor
Author
Release version edited manuallyThe Pull Request version has been manually set to If you instead want to use the version number |
f8712fa to
213d307
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Automated Release PR
2.41.0 (2026-06-11)
Full Changelog: v2.40.1...v2.41.0
Build System
This pull request is managed by Stainless's GitHub App.
The semver version number is based on included commit messages. Alternatively, you can manually set the version number in the title of this pull request.
For a better experience, it is recommended to use either rebase-merge or squash-merge when merging this pull request.
🔗 Stainless website
📚 Read the docs
🙋 Reach out for help or questions