Skip to content

chore: fix make format-check + exclude proxy workspace from root formatter - #197

Merged
bpalermo merged 1 commit into
mainfrom
chore/fix-make-format
Jun 16, 2026
Merged

bpalermo merged 1 commit into
mainfrom
chore/fix-make-format

Conversation

@bpalermo

Copy link
Copy Markdown
Owner

Summary

make format-check was broken and, once fixed, revealed the root formatter reaching into the separate proxy/ workspace.

  • //:format.check alias — make format-check ran bazel run //:format.check, but the root BUILD.bazel only aliased //:format. format_multirun generates the check sibling as //bazel/format:format.check, so the //: form never existed. Added the matching alias.
  • Exclude proxy/ from root format/lint — the formatter discovers files via git ls-files (which ignores //.bazelignore), so it swept the separate proxy Bazel workspace and wanted to reformat its Starlark/shell, including the upstream-mirrored extensions_build_config.bzl (634-line churn that breaks diffing against Envoy). aspect_rules_lint honors the rules-lint-ignored git attribute, so proxy/** rules-lint-ignored=true keeps the root tooling out of a workspace that has its own Envoy-derived formatters.

Verification

  • make format-check → exit 0 (was: no such target '//:format.check').
  • make format is idempotent — no proxy files touched; git check-attr rules-lint-ignored reports true for proxy paths.

🤖 Generated with Claude Code

`make format-check` ran `//:format.check`, which never existed — the root
alias only covered `//:format`, while format_multirun generates the check
target as `//bazel/format:format.check`. Add a matching `//:format.check`
alias so the Makefile target resolves.

With the target working, the root formatter (which discovers files via
`git ls-files`, ignoring //.bazelignore) also swept the separate proxy/
Bazel workspace and wanted to reformat its Starlark/shell — including the
upstream-mirrored extensions_build_config.bzl (634-line churn). rules_lint
honors the `rules-lint-ignored` git attribute, so mark proxy/** with it to
keep the root format/lint out of the proxy workspace, which has its own
Envoy-derived tooling.

Verified: `make format` and `make format-check` both pass and are
idempotent; proxy files report rules-lint-ignored=true.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
@bpalermo
bpalermo merged commit df048a1 into main Jun 16, 2026
10 checks passed
@bpalermo
bpalermo deleted the chore/fix-make-format branch June 16, 2026 15:07
bpalermo added a commit that referenced this pull request Sep 26, 2026
…r QUIC mTLS) (#952)

* proxy: bump the Envoy snapshot to 1.40.0-dev.20260926.726d7ac

The envoy bazel-registry published its first new snapshot since 2026-09-04
this morning (registry #197/#198, commit 263a259e), and it carries the one
upstream change proposal 038 Phase 4 was blocked on:

  envoyproxy/envoy#47623 "quic: make it support SDS for mTLS" (77d1a4a48e,
  2026-09-25). At 13144fb a QUIC downstream that requires a client certificate
  is rejected at load unless its trust anchor is a static trusted_ca; the
  mesh's inbound validates callers against the SDS-served trust bundle, so the
  per-pod HTTP/3 inbound could not exist on the old pin ("QUIC downstream TLS
  context requires a client certificate but no validation_context.trusted_ca
  is configured", from `envoy --mode validate` on the generated bootstrap).
  After #47623 the load-time check only needs a validation context to be
  configured and the trust anchor is checked once SDS delivers it.

Also in the 369 commits: #47219 (QUIC resumption default off), #47341
(optional client certificates), and #47217 "bazel: Remove WORKSPACE", which
is what most of this diff is:

  - MODULE.bazel: envoy/envoy_api -> 20260926.726d7ac; the .envoy closure to
    what that snapshot requests (quiche 260922-7f07dc4, rules_rust 0.74.0,
    toolchains_llvm 1.9.1, envoy_toolshed via MVS) and abseil-cpp 20260817.0,
    rules_cc 0.2.25, googletest 1.18.0.bcr.1 likewise. googleurl and quiche
    leave the flag-only dep list: upstream no longer wires them from .bazelrc.
  - .bazelrc: registry -> 263a259e (comment rewritten with the why); the
    WORKSPACE-era `--@quiche//:*_impl_lib`, `--@grpc//third_party:*`,
    `--@googleurl//...`, `--@protobuf//:zlib`, `--@envoy//bazel:enable_bzlmod`
    and `--incompatible_enable_proto_toolchain_resolution` lines are gone
    (the registry modules carry those wirings now); upstream's new
    `--@envoy//bazel:deprecated_repo_arg_allowed=false`,
    `--@rules_rust//rust/settings:skip_fission_for_rust=true`, the rustfmt
    setting, and the renamed `--@protobuf//bazel/toolchains:prefer_prebuilt_protoc`
    with its THIS_CC_TOOLCHAIN_IS_BROKEN guard are in.
  - BUILD.bazel + aether_stats/BUILD: the deprecated `repository = "@envoy"`
    argument dropped from every envoy_cc_* macro call -- the strict flag above
    refuses it, as upstream does.
  - build_config: 345 upstream extensions - 32 dropped = 313 compiled in.
  - MODULE.bazel.lock regenerated (bazel mod deps).

Proven locally: `bazel mod deps` resolves the whole closure at 263a259e,
`bazel mod explain` selects exactly the pinned versions, and
`bazel build --nobuild --config=release //:envoy` analyzes clean (46,159
targets). The compile itself is the `proxy` workflow's job (both arches, RBE).
scripts/check-envoy-api-parity.sh: OK (bindings v1.39, proxy 1.40-dev).

Docs: proxy README/image_metadata example strings, runbook pin string, and
038's Q4 answered.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr

* proxy: emit STABLE_CERT_EPOCH_YEAR for Envoy's build-time test certificates

envoyproxy/envoy#47255 (in the 726d7ac snapshot) generates Envoy's integration
test certificates at build time, stamped from STABLE_CERT_EPOCH_YEAR in
bazel-out/stable-status.txt. Upstream's get_workspace_status emits it; ours
did not, so both proxy CI legs failed in @envoy//test/config/integration/certs:
certs_gen for the one target that links Envoy's test utilities
(aether_stats_integration_test). The //:envoy binary itself analyzed and
built. Mirrors upstream: `date -u +%Y`.

Proven locally: `bazel build @envoy//test/config/integration/certs:certs`.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr

---------

Co-authored-by: Claude Fable 5.1 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant