refactor(bazel): move the flag/rc helpers into bazel/flags.axl - #1371
Conversation
✨ Aspect Workflows Tasks📅 Sun Aug 16 07:16:34 UTC 2026 ❌ 1 failed task
|
1e2cafa to
b89c359
Compare
7483e4c to
b05f36b
Compare
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
Included review availability: Your plan includes up to 3 reviews per rolling hour; 2 remain after this review. 📝 WalkthroughWalkthroughThe Bazel helpers now live in a public ChangesBazel namespace migration
Estimated code review effort: 4 (Complex) | ~45 minutes Merge Risk: ⚪ Minimal · up to This refactor reorganizes Bazel helpers without an identified behavior change, and no actionable merge-blocking risk remains beyond normal checks and review. 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
`private/lib/bazel_flags.axl` becomes `bazel/flags.axl`, reached through the
`bazel` namespace the `@aspect//bazel.axl` facade now assembles. The helpers
drop their `bazel_trait` parameter and read `ctx.traits[BazelTrait]`
themselves, so a task passes only `ctx`:
bazel_flag_args("the build") -> bzl.flags.args("the build")
announce_bazel_args("the build") -> bzl.announce.args("the build")
resolve_bazel_announce(ctx) -> bzl.announce.resolve(ctx)
setup_bazel_command(ctx, cmd, trait) -> bzl.setup_command(ctx, cmd)
sibling_rc(ctx, trait, transform) -> bzl.sibling_rc(ctx, transform)
expand_config_flags(ctx, trait, flags) -> bzl.flags.expand_config(ctx, flags)
aspect_endpoint_auth_flags(ctx, ...) -> bzl.endpoint_auth_flags(ctx, ...)
`core_args` / `targets_arg` consolidate the arg bundles the bazel-driving
tasks were each spelling out.
Pure move: no behavior change. Endpoint auth rides along unchanged here and
re-homes to the deployment feature separately.
b05f36b to
5fa88cc
Compare
private/lib/bazel_flags.axlbecomesbazel/flags.axl, reached through thebazelnamespace the@aspect//bazel.axlfacade now assembles. The helpers drop theirbazel_traitparameter and readctx.traits[BazelTrait]themselves, so a task passes onlyctx:core_args/targets_argconsolidate the arg bundles the bazel-driving tasks were each spelling out.Pure move: no behaviour change. Endpoint auth rides along unchanged here and re-homes to the deployment feature separately.
Changes are visible to end-users: no
Test plan