Skip to content

fix(scripts): empty the build cache's temp dir each run so Robolectric leftovers stop filling it - #106

Merged
GeiserX merged 1 commit into
mainfrom
fix/remote-gradle-tmp-cleanup
Nov 7, 2026
Merged

GeiserX merged 1 commit into
mainfrom
fix/remote-gradle-tmp-cleanup

Conversation

@GeiserX

@GeiserX GeiserX commented Nov 7, 2026

Copy link
Copy Markdown
Owner

#103 moved Java's temp directory into the persistent m2 cache, so Robolectric's jar download becomes an atomic rename. The side effect: Robolectric creates a temp directory per test and often fails to delete it ("Failed to destroy temp directory"). Before, those died with the container. Now they stay in the cache, and one day of screen-test runs left 2.1 GB there.

remote-gradle.sh now empties that directory at the start of each run. A staging file left from a killed run is junk anyway, and the finished jar lives in m2 proper, not in tmp.

@coderabbitai

coderabbitai Bot commented Nov 7, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 48 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 8ab5bff and 07b4514.

Files selected for processing: 1

  • scripts/remote-gradle.sh
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@GeiserX
GeiserX merged commit 3862be4 into main Nov 7, 2026
5 checks passed
@GeiserX
GeiserX deleted the fix/remote-gradle-tmp-cleanup branch November 7, 2026 16:29
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