Skip to content

Bump the memory-leak stress test heap so Gradle 9 script compilation fits on current runners - #742

Closed
takaharu-nakase wants to merge 1 commit into
Splitties:mainfrom
takaharu-nakase:bump-memory-leak-check-heap
Closed

Bump the memory-leak stress test heap so Gradle 9 script compilation fits on current runners#742
takaharu-nakase wants to merge 1 commit into
Splitties:mainfrom
takaharu-nakase:bump-memory-leak-check-heap

Conversation

@takaharu-nakase

Copy link
Copy Markdown

The "Check for memory leaks" step (counted-stress-test.sh 10 ./gradlew --daemon -Dorg.gradle.jvmargs="-Xmx150M") currently fails on run number 1, while compiling sample-groovy/buildSrc/build.gradle.kts — including on unmodified main:

Since it fails before any repeated builds happen, this is not a leak being caught: the baseline footprint of Gradle 9's Kotlin DSL script compilation on current GitHub-hosted runners no longer fits in 150 MiB, so the check now fails for every PR (e.g. #741). The last green run of this workflow dates back a while (main: 2025-08-16, last PR re-run: 2026-07-01), which matches an environment drift on the runner side rather than a regression in this repository.

This PR bumps the cap to 256 MiB, which keeps the check meaningful (10 successive builds in the same daemon must still fit a fixed budget, so monotonic leaks still blow up) while giving script compilation enough headroom.

Verified on my fork with unmodified plugin code + this workflow change: https://github.com/takaharu-nakase/refreshVersions/actions/runs/30515882804 — "Check plugins", "Check sample-kotlin", "Check for memory leaks" and "Check sample-groovy" all pass.

Note: in that verification run, the dispatch-only "Check sample-multi-modules" step (always skipped on pull_request events) fails with a pre-existing Kotlin compilation error in sample-multi-modules/buildSrc on unmodified main — unrelated to this change.

🤖 Generated with Claude Code

… current runners

The stress test OOMs on run number 1 while compiling
sample-groovy/buildSrc/build.gradle.kts, on unmodified main too,
so 150M no longer fits the baseline footprint and the check fails
for every PR.

Co-Authored-By: Claude Fable 5 <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