Skip to content

chore(claude): route the commit and push hooks through gradle-queue - #7750

Merged
jamesarich merged 1 commit into
mainfrom
chore/hook-gradle-queue
Oct 23, 2026
Merged

jamesarich merged 1 commit into
mainfrom
chore/hook-gradle-queue

Conversation

@jamesarich

Copy link
Copy Markdown
Collaborator

The commit and push hooks ran spotlessApply and detekt as bare ./gradlew, so on a machine with the gradle-queue wrapper they raced other sessions' builds and twice sat out the hook's 300 s timeout.

🧹 Chores

  • pre-bash-guard.sh runs Gradle through ~/.claude/bin/gradle-queue when installed, the same probe the gradle-runner agent uses, and ./gradlew otherwise.
  • A push goes through when the queue exits 75 (the build never started) instead of blocking as a detekt failure.

The pre-bash guard ran spotlessApply and detekt as bare ./gradlew, so on a
machine with the queue wrapper they raced other sessions' builds and twice
sat out the hook's 300 s timeout. Use the same probe as the gradle-runner
agent, and let a push through when the queue reports exit 75 (never started).
@coderabbitai

coderabbitai Bot commented Oct 23, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

Note

Currently processing new changes in this PR. This may take a few minutes, please wait...

⚙️ Run configuration
📥 Commits

Reviewing files that changed from the base of the PR and between bacb891 and aa2008d.

📒 Files selected for processing: 1
  • .claude/hooks/pre-bash-guard.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

Comment @coderabbitai help to get the list of available commands.

@github-actions github-actions Bot added the chore label Oct 23, 2026
@jamesarich
jamesarich marked this pull request as ready for review October 23, 2026 19:08
@jamesarich
jamesarich merged commit a96e6ba into main Oct 23, 2026
5 of 6 checks passed
@jamesarich
jamesarich deleted the chore/hook-gradle-queue branch October 23, 2026 19:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant