Repository navigation
build: drive format and lint of proxy/ from the root - #1229
Merged
Merged
Conversation
7 tasks done
bpalermo
marked this pull request as ready for review
October 4, 2026 22:34
bpalermo
force-pushed
the
proxy-lint-format
branch
from
October 4, 2026 22:48
ad6b0c4 to
4f7064d
Compare
Audit of what covered the //proxy workspace's 10 Starlark and 4 shell files: - `make format-check` (//:format): nothing. .gitattributes marked `proxy/** rules-lint-ignored`, and every BUILD/BUILD.bazel is also `linguist-generated`, which the rules_lint format multirun skips too. - `make lint` (--config=lint): no proxy Starlark at all (proxy/ is in //.bazelignore; the buildifier aspect only visits bzl_library or tagged filegroups, of which the repo has none). ShellCheck reached the 4 shell files only through the //bazel/lint/proxy_shell symlink bridge, kept complete by scripts/check-proxy-shell-lint.sh. Now: - Format: proxy/ leaves rules-lint-ignored and its hand-written BUILD files are unmarked linguist-generated (no Gazelle runs there), so the root formatter covers proxy Starlark (buildifier) and shell (shfmt) in `make format` / `make format-check` and the `format` CI jobs. - Lint: scripts/lint-proxy.sh runs buildifier's linter (-warnings=all, the aspects' default) and ShellCheck (same binary and .shellcheckrc as the aspect) over the proxy files git lists, failing closed on an empty set. Wired into `make lint` (+ `make lint-proxy`), the proxy workflow's `shell` job (with a format check) and the ci workflow's `shell` job. - The direct run covers every proxy shell script with no mirror to keep complete, so the symlink bridge and its guard are retired. Fixes the new coverage flagged, all formatting/no-op: - proxy/MODULE.bazel: buildifier argument order in single_version_override. - proxy/bazel/get_workspace_status: shfmt (tabs). - proxy/BUILD.bazel: $(location) -> $(execpath) in the image_metadata genrule; the expanded command line is byte-identical (aquery). - proxy/bazel/platforms/BUILD.bazel: sorted exec_properties keys; the action key under --config=rbe-buildbuddy-arm64 is unchanged (aquery). - proxy/bazel/build_config/extensions_build_config.bzl: module docstring. All 14334 CppCompile/CppArchive/CppLink action keys in //:envoy's closure are identical to main's. Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr
bpalermo
force-pushed
the
proxy-lint-format
branch
from
October 5, 2026 01:28
4f7064d to
4239278
Compare
This was referenced Oct 5, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Stacked on #1228. The root now formats and lints
proxy/.Audit: what covered proxy/ before
proxy/has 10 Starlark files and 4 shell scripts (including the extensionlessbazel/get_workspace_status).make format-check(//:format).gitattributesmarkedproxy/** rules-lint-ignored, and everyBUILD/BUILD.bazelis alsolinguist-generated, which the rules_lint format multirun skips as wellrules-lint-ignoredmake lint(--config=lint)proxy/is in//.bazelignore, and the buildifier aspect only visitsbzl_libraryor tagged filegroups, of which the repo has none//bazel/lint/proxy_shellsymlink bridge, kept complete byscripts/check-proxy-shell-lint.shSide finding, not changed here: because of
linguist-generated, the root formatter also skips the root's own BUILD files (Gazelle formats them), and the root buildifier lint aspect visits no Starlark file anywhere.Now
proxy/is no longerrules-lint-ignored. Its hand-written BUILD files are set tolinguist-generated=false, since no Gazelle runs there. The root//:formatmultirun now covers proxy Starlark (buildifier) and shell (shfmt) inmake format,make format-check, theciformatjob, and a new format step in theproxyworkflow'sshelljob.scripts/lint-proxy.shruns buildifier's linter (-lint=warn -warnings=all, the aspects' default) and ShellCheck (same rules_lint binary and.shellcheckrcas the aspect) over the proxy filesgit ls-fileslists. It exits 2 if it finds no files of either kind. It is wired intomake lint(plus a newmake lint-proxy), theproxyworkflow'sshelljob, and theciworkflow'sshelljob. Thecijob is there because a root change, such as a buildifier or ShellCheck bump, can newly flag a proxy file..bazelignored tree is invisible to aspects, but a direct run of the same binaries over the files git lists covers every proxy shell script with no mirror to maintain. So//bazel/lint/proxy_shellandscripts/check-proxy-shell-lint.share deleted, and the references to them incheck-shell-lint.sh,bazel/BUILD.bazel,scripts/BUILD.bazeland the rootMODULE.bazelcomment are updated.What the new coverage flagged (fixed, formatting only)
proxy/MODULE.bazel: buildifier argument order insingle_version_override.proxy/bazel/get_workspace_status: shfmt (spaces to tabs).proxy/BUILD.bazel:68:make-locationwarning. Changed$(location)to$(execpath)in theimage_metadatagenrule; the expanded command line is byte-identical (aquery).proxy/bazel/platforms/BUILD.bazel:unsorted-dict-items. Sorted theexec_propertieskeys; the action key under--config=rbe-buildbuddy-arm64is unchanged (aquery before and after).proxy/bazel/build_config/extensions_build_config.bzl: added a module docstring.All 14,334 CppCompile/CppArchive/CppLink action keys in
//:envoy's closure are still identical to main's, so the proxy release this PR triggers (it touchesproxy/**) should be a cache hit.Proof the coverage is live (introduced, observed red, reverted)
proxy/bazel/build_config/extensions_build_config.bzlandproxy/bazel/BUILD:make format-checkreports# reformatfor both and fails.scripts/lint-proxy.shalso flags both, plus anunsorted-dict-itemswarning.echo $UNQUOTED_VARinproxy/integration/check_symtab.sh:scripts/lint-proxy.shfails with SC2086.make format-checkfails with a shfmt diff.Test plan
make format/make format-checkclean;scripts/lint-proxy.shclean (10 Starlark, 4 shell)bazel build --config=lint --@aspect_rules_lint//lint:fail_on_violation //...;scripts/check-shell-lint.sh(59 covered);make gazelle(no diff); rootbazel build //...bazel build --nobuild //...uses:🤖 Generated with Claude Code
https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr