hooks: skip lint-less infra modules in pre-push backstop
- Commit
267aee0ff1956a58bc03b21f146bebb365aa9d5b- Author
- Vayun Mathur <[email protected]>
- When
- 2026-12-02 08:10 UTC (3 days ago)
- Parents
2789f54
The pre-push backstop derived :build-logic:lintVitalRelease and :lint-rules:lint from pushed paths, but neither project has such a task (build-logic is an included build; lint-rules is the lint implementation itself), so every push failed task selection in one second before any lint ran. The pre-commit hook already skips both; pre-push now mirrors it. Verified: the remaining 71 derived tasks pass --continue on main; push retried after this commit.
Diff
.githooks/pre-push
diff --git a/.githooks/pre-push b/.githooks/pre-pushindex dbc0a6990a..5598afd632 100755--- a/.githooks/pre-push+++ b/.githooks/pre-push@@ -33,6 +33,10 @@ while read -r local_ref local_sha remote_ref remote_sha; do [ -f "$m/build.gradle.kts" ] || continue g="$(echo "$m" | tr / :)" case "$m" in *-wear) g="${g%-wear}:wear" ;; esac+ # Pure infra carries no lint task at all (mirrors pre-commit).+ if [ "$g" = "lint-rules" ] || [ "$g" = "build-logic" ]; then+ continue+ fi # Pure-JVM/library modules have no release variant — gate on :lint. if grep -Eq 'common-conventions-library|java-library|kotlin\("jvm"\)|org.jetbrains.kotlin.jvm' "$m/build.gradle.kts" 2>/dev/null; then tasks="$tasks :${g}:lint"