Skip to content

chore(bazel): fold tools/ into bazel/ - #1200

Merged
bpalermo merged 4 commits into
mainfrom
chore/fold-tools-into-bazel
Oct 4, 2026
Merged

bpalermo merged 4 commits into
mainfrom
chore/fold-tools-into-bazel

Conversation

@bpalermo

@bpalermo bpalermo commented Oct 4, 2026

Copy link
Copy Markdown
Owner

Mechanical restructure (maintainer decision 2026-10-04): fold tools/ into bazel/, which already holds the rule definitions these tools serve (precedent: bazel/protodoc/ is a Go tool plus defs.bzl, the same shape as buildid). No behaviour change; tools/ no longer exists.

Moves (git mv, history follows)

Before After Contents
tools/buildid/ bazel/buildid/ defs.bzl rule, Go tool, release_build_ids
tools/chartconfig/ bazel/chartconfig/ Helm chart OCI config generator
tools/cosign/ bazel/cosign/ pinned signer wrapper, verify_image_signatures, version_test
tools/oras/ bazel/oras/ per-platform config_settings, oras_bin, version_test

References updated

Rewrite: //tools/{buildid,chartconfig,cosign,oras} to //bazel/<same>, bazel-bin/tools/buildid to bazel-bin/bazel/buildid, aethermesh.dev/tools/ to aethermesh.dev/bazel/. tools and bazel are the same length, so no doc paragraph needed rewrapping. Counts are matching lines per file.

File class Files Lines
Workflows (proxy-release.yml, publish-verify.yaml, publish.yaml, quay-smoke.yaml) 4 22
Moved packages' own BUILD/.bzl/.sh (self-labels, load(), Go importpath) 10 18
Other Bazel (bazel/helm/defs.bzl, bazel/img/go_multi_arch_image.bzl, scripts/BUILD.bazel visibility, MODULE.bazel comments, proxy/.bazelrc comment) 5 11
Scripts (quay-smoke.sh, verify-image-signatures.sh) 2 8
Makefile (check-build-id) 1 3
Docs (runbook.md, profiling-symbols.md, 040_quay-registry.md, charts/README.md) 4 16

There were no hits in bazel/img/BUILD.bazel, CLAUDE.md, nogo.json, lint configs, .github/CODEOWNERS (a single * @bpalermo) or the check-registry-config.sh allow-list. No Go package outside the moved ones imported aethermesh.dev/tools/.... make gazelle made no changes after the rewrite.

Proof

  • bazel build //...: passed
  • bazel test //bazel/... //charts/...: 63/63 passed (buildid_test, chartconfig_test, cosign:version_test, oras:version_test, helm:chart_push_test, img:registry_test, all chart lint/template tests)
  • make check-build-id (//bazel/buildid:release_build_ids, output at bazel-bin/bazel/buildid/release_build_ids.txt): passed
  • bazel run //bazel/cosign -- version: GitVersion: v3.1.2
  • bazel run //bazel/oras -- version: Version: 1.3.4
  • bazel build --config=lint --@aspect_rules_lint//lint:fail_on_violation //...: passed
  • make format-check: exit 0
  • make gazelle: no diff
  • scripts/check-registry-config.sh: exit 0. scripts/check-shell-lint.sh: exit 0 (58 scripts covered)
  • actionlint v1.7.7 on the four touched workflows: clean

Remaining tools/ hits (git grep -n "tools/" -- ':!**/*.go', git grep -n '//tools'), none of them ours

  • @bazel_tools//tools/... / @@bazel_tools//tools/... and the bazel_tools/tools/bash/runfiles/runfiles.bash runfiles path: Bazel's built-in repo (MODULE.bazel, MODULE.bazel.lock, proxy/MODULE.bazel, bazel/helm/defs.bzl, the moved cosign/oras scripts and BUILD files).
  • @io_k8s_client_go//tools/cache: client-go (agent/internal/cni/server, registry/internal/k8s BUILD files).
  • golang.org/x/tools/... / @org_golang_x_tools//...: x/tools (BUILD.bazel, MODULE.bazel, scripts/go-deps-audit.sh, go.sum).
  • android.googlesource.com/platform/tools/apksig: a lockfile mirror URL.
  • docs/proposals/010_custom-proxy-workspace.md:112 tools/: the proposed tree of the separate proxy/ workspace, not aether's root tools/.

🤖 Generated with Claude Code

https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr

bpalermo and others added 4 commits October 4, 2026 08:46
bazel/ already holds the rule definitions these tools serve (precedent:
bazel/protodoc/ is a Go tool plus defs.bzl, the same shape as buildid).
Pure move: tools/{buildid,chartconfig,cosign,oras} -> bazel/<same>, and
every //tools/... label, bazel-bin/tools/... path and aethermesh.dev/tools
import path rewritten to its bazel/ equivalent. tools/ no longer exists.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr
@bpalermo
bpalermo merged commit 064a666 into main Oct 4, 2026
25 checks passed
@bpalermo
bpalermo deleted the chore/fold-tools-into-bazel branch October 4, 2026 12:33
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