Skip to content

CI never runs format-check, so unformatted code lands on main (e2e/multiprotocol.sh did) #906

Closed

Description

@bpalermo

Observed

make format-check is currently red on main:

$ 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.

Why this belongs with #853 and #882

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

  1. Reformat the offending file so main is clean.
  2. Add a format-check job to ci.yaml and make it part of the required ci gate.
  3. 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.

🤖 Generated with Claude Code

https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr

Activity

  1. added a commit that references this issue on Sep 23, 2026
    7de67d2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions