Skip to content

Stop deleting Gradle lock files before assembleDebug (MOB-469) - #135

Merged
GenericJam merged 4 commits into
masterfrom
mob-469-gradle-locks
Oct 13, 2026
Merged

GenericJam merged 4 commits into
masterfrom
mob-469-gradle-locks

Conversation

@GenericJam

@GenericJam GenericJam commented Oct 13, 2026 •

Copy link
Copy Markdown
Owner

Removes clear_stale_gradle_locks/1 and its call in gradle_assemble/0, and the test that pinned it. Gradle's locks are OS-backed FileChannel locks released when the holding JVM exits; deleting the file only unlinks the inode and breaks mutual exclusion between concurrent builds (same class as MOB-468).

No lock-timeout hint: gradlew output is streamed, not captured, and Gradle's own timeout message is the diagnostic (owner PID when known).

Review: Codex (read-only). Round 1 DO NOT MERGE on CHANGELOG overstatement only (wrapper .lck timeouts don't name a PID; --stop only stops same-version daemons; the historical-cause claim wasn't supported) — fixed. Deletion itself judged correct; kill -9 during wrapper download doesn't leave a held lock (FileLock released on JVM exit; .part/.ok retry).

@GenericJam
GenericJam merged commit ccdecea into master Oct 13, 2026
6 checks passed
@GenericJam
GenericJam deleted the mob-469-gradle-locks branch October 13, 2026 20:35
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