Repository navigation
docs: avro, d, fortran, lua, perl and zig extractors run as dx subcommands (part of #13154) - #13790
Merged
Merged
Conversation
…mands (part of #13154) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Xut2hvgPbKqbuDgsTasg7K
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of #13154.
The avro, d, fortran, lua, perl and zig docs extractors now run as
dx <lang>_extractsubcommands instead of separate binaries.tools/docs/ir/ir/src/tool.rs: a sharedrun_processthat returns the exit code.maincalls 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: deletedsrc/main.rs, therust_binaryand the[[bin]]entry. Eachlib.rsnow hasrun_process. Each library is visible to//cli/cli:__pkg__.defs.bzlandaspect.bzl:_extractnow defaults to@dx_prebuilt//:dx, and the shard action passes<lang>_extractas the first argument.cli/cli: six new subcommands inmulticall.rs, dispatched frommain.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 withCARGO_BAZEL_REPIN=workspace bazel fetch --repo=@cratesproduced 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 untouchedtools/docs/rust/fixture/src/lib.rs. This PR does not change that fixture.tools/dx checkon the same scope: its findings are all in files this PR does not touch, pluscli/cli/src/main.rsformatting at lines 180 and 463, which also fails on main.🤖 Generated with Claude Code
https://claude.ai/code/session_01Xut2hvgPbKqbuDgsTasg7K