Skip to content

docs: avro, d, fortran, lua, perl and zig extractors run as dx subcommands (part of #13154) - #13790

Merged
TrapsterDK merged 1 commit into
mainfrom
docs-extract-dx-13154
Nov 19, 2026
Merged

TrapsterDK merged 1 commit into
mainfrom
docs-extract-dx-13154

Conversation

@TrapsterDK

Copy link
Copy Markdown
Collaborator

Part of #13154.

The avro, d, fortran, lua, perl and zig docs extractors now run as dx <lang>_extract subcommands instead of separate binaries.

  • tools/docs/ir/ir/src/tool.rs: a shared run_process that returns the exit code. main calls it, so the other 18 extractors are unchanged. A new unit test checks that a parse error returns 2.
  • tools/docs/{avro,d,fortran,lua,perl,zig}/extract: deleted src/main.rs, the rust_binary and the [[bin]] entry. Each lib.rs now has run_process. Each library is visible to //cli/cli:__pkg__.
  • defs.bzl and aspect.bzl: _extract now defaults to @dx_prebuilt//:dx, and the shard action passes <lang>_extract as the first argument.
  • cli/cli: six new subcommands in multicall.rs, dispatched from main.rs, with the libraries added to dx's deps. Exit codes and stdout/stderr are unchanged.
  • tools/docs/ir/dx_extract_test.bzl: a new analysis test, used in each fixture, that checks the extract action runs .../dx <lang>_extract.
  • cargo-bazel-lock.json: repinning with CARGO_BAZEL_REPIN=workspace bazel fetch --repo=@crates produced no diff, so the lock is unchanged.

depcheck and gopls_tier are maintainer-only, so they belong on the #13722 allowlist rather than in dx.

Remaining for #13154 (tracked in): #13768 (the other 18 extractors), #13769 (docs site tools), #13770 (buf diff, msvc_link_exec, ocaml_cc_driver, appimage file), #13771 (hpc_coverage, bench_report, android_ops), #13772 (apple_ops, simulator hooks, apple_post_action), #13773 (qt_rust_bridge), the done-when guard and the Windows no-symlink consumer check.

Tests:

  • bazel test //cli/cli/... //tools/docs/ir/... //tools/docs/{avro,d,fortran,lua,perl,zig}/...: 23 passed, 1 skipped (dx_opt_pdb_test), 1 failed. The failure is //tools/docs/ir/ir:site_shard_test, which asserts a line number in the untouched tools/docs/rust/fixture/src/lib.rs. This PR does not change that fixture.
  • tools/dx check on the same scope: its findings are all in files this PR does not touch, plus cli/cli/src/main.rs formatting at lines 180 and 463, which also fails on main.
  • Not run locally: nested-Bazel and consumer tests.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Xut2hvgPbKqbuDgsTasg7K

…mands (part of #13154)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Xut2hvgPbKqbuDgsTasg7K
@TrapsterDK
TrapsterDK merged commit a0a00a9 into main Nov 19, 2026
4 checks passed
@TrapsterDK
TrapsterDK deleted the docs-extract-dx-13154 branch November 19, 2026 07:35
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