You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
CI never runs format-check, so unformatted code lands on main (e2e/multiprotocol.sh did) #906
$ bazel run //:format.check
...
- bad "pod annotation missing the =tcp suffix"
+ ok "pod carries ports=8080,9000=tcp"
...
Formatted Shell in 0m0,031s
FAILED: A formatter tool exited with code 123
e2e/multiprotocol.sh uses two-space indentation; shfmt wants tabs. It landed in #901 (b087cd1) with ci and proxy both green, and nothing objected.
Cause
No CI job runs the formatter..github/workflows/ci.yaml has twelve jobs — changes, diff, chart-version-bump, deps-audit, shell, envoy-api-parity, proxy-pin, test, race, integration, e2e, ci — and none of them invokes //:format.check. The only reference to it anywhere in the repo is the format-check target in the Makefile. grep -rln 'format.check\|format_check\|//:format' .github/workflows/ Makefile returns the Makefile alone.
So the repo has formatters configured (bazel/format/BUILD.bazel: gofumpt, buildifier, shfmt, buf), a documented make format-check in CLAUDE.md, and nothing that makes either matter.
This is the same family as the vacuous gates already tracked here: a check that exists, is documented, and never runs. #853 was a shellcheck aspect that linted zero files. #882 was a counter whose zero meant nothing because it was never seeded. This one is a formatter that no pipeline invokes.
The tell is identical in all three: the green signal was never capable of turning red, so its greenness carried no information.
Note the asymmetry that let it hide — the shell job DOES run shellcheck on e2e/multiprotocol.sh (it is in an sh_library), and shellcheck passed. Lint coverage was real; format coverage was absent. Easy to conflate the two and assume the file was checked.
Fix
Reformat the offending file so main is clean.
Add a format-check job to ci.yaml and make it part of the required ci gate.
Prove the new job can fail before trusting it — introduce a formatting violation, watch it go red, revert.
Found while investigating whether a red format-check was blocking seven in-flight PRs. It was not, because it never runs.
Activity
ci: enforce formatting, and reformat the file that proved it was not (#…