Skip to content

fix(tools): route bazel config to vanilla bazel - #1390

Merged
mcook42 merged 2 commits into
mainfrom
fix/bazel-config-routing
Aug 14, 2026
Merged

fix(tools): route bazel config to vanilla bazel#1390
mcook42 merged 2 commits into
mainfrom
fix/bazel-config-routing

Conversation

@mcook42

@mcook42 mcook42 commented Aug 13, 2026

Copy link
Copy Markdown
Member

Split out of #1370 (fix 3 of 3) . See that PR's description for full context on all three defects found in the same investigation.

$ bazel config --dump_all --output=json
error: unrecognized subcommand 'config'

BAZEL_VERBS in tools/bazel was generated from bazel help's "Available commands" list, which hides config. A verb missing from that table is treated as a custom aspect task and routed to aspect. The IntelliJ Bazel plugin calls bazel config --dump_all --output=json during sync and parses stdout as JSON, so this failed the sync on its own.

The authoritative list is bazel help completion's BAZEL_COMMAND_LIST, which includes hidden commands — verified against Bazel 9.0.1, config is the sole difference. The regeneration recipe and why it must not be bazel help are now recorded in both the script comment and tools/bazel.md:

bazel help completion | sed -n 's/^BAZEL_COMMAND_LIST="\(.*\)"$/\1/p'

The gap also silently degraded the pre-verb disambiguation walk, since KNOWN_VERBS_STR is built from the same table.

Also ignores .idea/ and .bazelbsp/, both of which are generated by the plugin.

Test plan

  • Manual verification on this branch: tools/bazel config --dump_all --output=json now reaches vanilla Bazel's own config subcommand (Bazel's own "No configurations found" message) instead of the aspect wrapper's unrecognized subcommand 'config'.

@coderabbitai

coderabbitai Bot commented Aug 13, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: bb3bb16f-cae9-4d3d-ad4a-ec1e3046ee2b

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Comment @coderabbitai help to get the list of available commands.

@aspect-workflows

aspect-workflows Bot commented Aug 13, 2026

Copy link
Copy Markdown

✨ Aspect Workflows Tasks

📅 Thu Aug 13 22:32:16 UTC 2026

❌ 1 failed task

  • ❌ delivery-uncacheable [delivery] · ⏱ 32.4s · ✨ Aspect · 🐙 GitHub Actions
    💬 failed in deliver · Delivery failed (1 delivery fail)

⚠️ 3 flagged tasks

  • ⚠️ delivery-gha-debug [delivery] · ⏱ 49.2s · ✨ Aspect · 🐙 GitHub Actions · ☑️ Check
    💬 Delivery complete (1 delivered · 2 warn · 4 skipped)
  • ⚠️ delivery-gha [delivery] · ⏱ 45.2s · ✨ Aspect · 🐙 GitHub Actions · ☑️ Check
    💬 Delivery complete (1 delivered · 2 warn · 4 skipped)
  • ⚠️ delivery-uncacheable-warn [delivery] · ⏱ 12.5s · ✨ Aspect · 🐙 GitHub Actions
    💬 Delivery complete (1 warn)

✅ 28 successful tasks

  • ✅ axl-smoke-gha-bootstrap [build] · ⏱ 1m 19s · ✨ Aspect · 🐙 GitHub Actions · ☑️ Check
    💬 Bazel build complete (1 built)
  • ✅ run-axl-smoke [run] · ⏱ 21.3s · 🐙 GitHub Actions · ☑️ Check
    💬 Ran //examples/deliverable:py_deliverable
  • ✅ run-axl-smoke-2 [run] · ⏱ 12.1s · 🐙 GitHub Actions · ☑️ Check
    💬 Ran //examples/deliverable:sh_deliverable
  • ✅ axl-tests-gha-bootstrap [build] · ⏱ 1m 11s · ✨ Aspect · 🐙 GitHub Actions · ☑️ Check
    💬 Bazel build complete (1 built)
  • ✅ build-gha-debug [build] · ⏱ 10m 41s · ✨ Aspect · 🐙 GitHub Actions · ☑️ Check
    💬 Bazel build complete (172 built)
  • ✅ build-gha [build] · ⏱ 44.7s · ✨ Aspect · 🐙 GitHub Actions · ☑️ Check
    💬 Bazel build complete (172 built)
  • ✅ build-gha-ephemeral [build] · ⏱ 31.2s · 🐙 GitHub Actions · ☑️ Check
    💬 Bazel build complete (10 built)
  • ✅ buildifier-gha-debug [buildifier] · ⏱ 34.5s · 🐙 GitHub Actions · ☑️ Check
    💬 Format complete (clean)
  • ✅ buildifier-gha [buildifier] · ⏱ 27.5s · 🐙 GitHub Actions · ☑️ Check
    💬 Format complete (clean)
  • ✅ delivery-no-remote-exec [delivery] · ⏱ 6.5s · ✨ Aspect · 🐙 GitHub Actions
    💬 Delivery complete (no deliveries)
  • ✅ format-gha-debug [format] · ⏱ 1m 37s · 🐙 GitHub Actions · ☑️ Check
    💬 Format complete (clean)
  • ✅ format-format-repeat-task [format] · ⏱ 1m 32s · 🐙 GitHub Actions · ☑️ Check
    💬 Format complete (clean)
  • ✅ format-format-repeat-task-2 [format] · ⏱ 9.4s · 🐙 GitHub Actions · ☑️ Check
    💬 Format complete (clean)
  • ✅ format-format-repeat-task-3 [format] · ⏱ 8.4s · 🐙 GitHub Actions · ☑️ Check
    💬 Format complete (clean)
  • ✅ format-format-repeat-task-4 [format] · ⏱ 8.9s · 🐙 GitHub Actions · ☑️ Check
    💬 Format complete (clean)
  • ✅ format-gha [format] · ⏱ 1m 25s · 🐙 GitHub Actions · ☑️ Check
    💬 Format complete (clean)
  • ✅ gazelle-gha-debug [gazelle] · ⏱ 28.4s · 🐙 GitHub Actions · ☑️ Check
    💬 Gazelle complete (clean)
  • ✅ gazelle-from-source-gha-debug [gazelle] · ⏱ 2m 26s · 🐙 GitHub Actions · ☑️ Check
    💬 Gazelle complete (clean)
  • ✅ gazelle-from-source-gha [gazelle] · ⏱ 2m 10s · 🐙 GitHub Actions · ☑️ Check
    💬 Gazelle complete (clean)
  • ✅ gazelle-gha [gazelle] · ⏱ 31.2s · 🐙 GitHub Actions · ☑️ Check
    💬 Gazelle complete (clean)
  • ✅ init-shell [build] · ⏱ 39.6s · 🐙 GitHub Actions · ☑️ Check
    💬 Bazel build complete (10 built)
  • ✅ lint-gha-debug [lint] · ⏱ 36.1s · 🐙 GitHub Actions · ☑️ Check
    💬 Lint complete (clean)
  • ✅ lint-gha [lint] · ⏱ 35.5s · 🐙 GitHub Actions · ☑️ Check
    💬 Lint complete (clean)
  • ✅ test-gha-debug [test] · ⏱ 4m 6s · ✨ Aspect · 🐙 GitHub Actions · ☑️ Check
    💬 Bazel test complete (26/26 passed · 26 cached)
  • ✅ test-gha-coverage [test] · ⏱ 26.4s · ✨ Aspect · 🐙 GitHub Actions · ☑️ Check
    💬 Bazel test complete (1/1 passed · 1 cached)
  • ✅ test-gha-target-pattern-file [test] · ⏱ 26.2s · ✨ Aspect · 🐙 GitHub Actions · ☑️ Check
    💬 Bazel test complete (1/1 passed · 1 cached)
  • ✅ test-gha [test] · ⏱ 5m 47s · ✨ Aspect · 🐙 GitHub Actions · ☑️ Check
    💬 Bazel test complete (26/26 passed · 26 cached)
  • ✅ test-gha-ephemeral [test] · ⏱ 1m 31s · 🐙 GitHub Actions · ☑️ Check
    💬 Bazel test complete (1/1 passed)

🔁 Reproduce

❌ delivery (delivery-uncacheable · delivery-gha-debug · delivery-gha · delivery-uncacheable-warn)

# --mode=always --track-state=false for off-runner with no state backend.
aspect delivery \
  --commit-sha=67c8a09a1ef0c3183c882c8142fe254850bcce9b \
  --mode=always \
  --track-state=false \
  --dry-run=true

Install aspect: aspect.build/docs/cli/install


⏱ Last updated Thu Aug 13 22:47:56 UTC 2026 · 📊 GitHub API quota 2,656/15,000 (18% used, resets in 27m)
🚀 Powered by Aspect CLI (v0.0.0-dev)  |  Aspect Build · X · LinkedIn · YouTube

@mcook42
mcook42 force-pushed the fix/bazel-config-routing branch from 6ae978a to a369598 Compare August 13, 2026 16:03
`BAZEL_VERBS` was generated from `bazel help`'s "Available commands"
list, which hides `config`. A verb missing from that table is treated as
a custom aspect task, so `bazel config` became `aspect config` →
`error: unrecognized subcommand 'config'`.

The IntelliJ Bazel plugin calls `bazel config --dump_all --output=json`
during sync and parses stdout as JSON, so this failed the sync outright.

Regenerate from `bazel help completion`'s `BAZEL_COMMAND_LIST`, which
includes hidden commands — verified against Bazel 9.0.1, `config` is the
sole difference. Record the regeneration recipe and *why* it must not be
`bazel help` in the comment, and in tools/bazel.md.

The gap also silently degraded the pre-verb disambiguation walk, since
KNOWN_VERBS_STR is built from the same table.
Both are generated: .idea/ by the IDE, .bazelbsp/ by the JetBrains Bazel
plugin (its injected aspect .bzl files), and both showed as untracked
after an IntelliJ sync.
@mcook42
mcook42 force-pushed the fix/bazel-config-routing branch from a369598 to 67c8a09 Compare August 13, 2026 22:25
@mcook42
mcook42 marked this pull request as ready for review August 14, 2026 14:32
@mcook42
mcook42 merged commit ebf4a68 into main Aug 14, 2026
73 checks passed
@mcook42
mcook42 deleted the fix/bazel-config-routing branch August 14, 2026 14:32
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.

2 participants