Skip to content

Add Gradle caching and attempt to de-flicker the Windows build#894

Merged
DreierF merged 2 commits intomasterfrom
ts/gradle_caching
Apr 30, 2026
Merged

Add Gradle caching and attempt to de-flicker the Windows build#894
DreierF merged 2 commits intomasterfrom
ts/gradle_caching

Conversation

@DreierF
Copy link
Copy Markdown
Contributor

@DreierF DreierF commented Apr 30, 2026

No description provided.

DreierF and others added 2 commits April 30, 2026 09:32
The Windows job intermittently failed with "Connection reset by peer"
and exit value 100 from the Gradle test executor — symptoms of an
out-of-memory crash in the test JVM under TestKit + parallel workers
on RAM-constrained Windows runners.

- Cap test executor heap to 1g on Windows so an over-budget run throws
  a clean OOMError instead of crashing the JVM natively.
- Limit --max-workers=2 on the Windows job to reduce concurrent test
  JVMs and TestKit child daemons.
- Add the org.gradle.test-retry plugin and enable 2 retries when CI=true
  to absorb residual TestKit/file-locking flakes; local runs unaffected.
- Scope the JVM 11 Kotlin target override to compileKotlin only,
  silencing the "Inconsistent JVM-target compatibility" warning between
  compileTestJava (21) and compileTestKotlin (11). Production bytecode
  is unchanged.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@DreierF DreierF merged commit b955fd1 into master Apr 30, 2026
4 checks passed
@DreierF DreierF deleted the ts/gradle_caching branch April 30, 2026 09:43
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