Skip to content

prebuilt: api_spec preflight and oapi driver run as dx subcommands (part of #13154) - #13423

Merged
TrapsterDK merged 1 commit into
mainfrom
issue-13154-multicall-2
Nov 18, 2026
Merged

TrapsterDK merged 1 commit into
mainfrom
issue-13154-multicall-2

Conversation

@TrapsterDK

Copy link
Copy Markdown
Collaborator

Part of #13154.

  • api_spec/private/codegen: preflight and oapi-codegen driver are one rust_library (api_spec_codegen), linked into dx.
  • dx api_spec_preflight and dx oapi_codegen registered in cli/cli/src/multicall.rs; api_spec/private/codegen.bzl runs them from @dx_prebuilt//:dx.
  • cargo-bazel-lock.json regenerated with Bazel (CARGO_BAZEL_REPIN=workspace).

Tests run locally:

  • bazel test //api_spec/private/codegen:all //api_spec/tests:all //cli/cli:dx_cli_test: all pass except //api_spec/tests:client_ts_test_typecheck_test, which fails on --isolatedDeclarations errors in redocly's generated client.ts (output this PR does not change).
  • tools/dx check --affected: generate fails in untouched files (d/private/fuzz, erlang/tests/conformance/lock, cli/os_sys).
  • Consumer and nested-Bazel tests were not run locally.

Remaining for #13154:

  • quality diff, msvc_link_exec, ocaml_cc_driver: invoked by program path or PATH name (argv[0] question)
  • appimage_packer: re-execs itself as file, needs an argv[0] alias
  • qt_rust_bridge, hpc_coverage, apple_ops and simulator tools, android_ops, capnpc_rust_dx, docs extractors and site tools, bench_report, gopls_tier, apple_post_action, depcheck
  • hpc_coverage, bench_report, android_ops launchers run at test time (target config), so they need a test exec-group dx, not the build exec dx
  • Done-when guard (from prebuilt: shared tool registry, generated pins and guard test (every rules_dx tool prebuilt) #13149) and the Windows no-symlink consumer check

🤖 Generated with Claude Code

https://claude.ai/code/session_01Xut2hvgPbKqbuDgsTasg7K

…art of #13154)

The api_spec preflight and the oapi-codegen driver become one library
crate linked into dx; the rules call `dx api_spec_preflight` and
`dx oapi_codegen` from @dx_prebuilt//:dx. cargo-bazel-lock.json
regenerated with CARGO_BAZEL_REPIN=workspace.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Xut2hvgPbKqbuDgsTasg7K
@TrapsterDK
TrapsterDK merged commit e7b7a72 into main Nov 18, 2026
6 of 8 checks passed
@TrapsterDK
TrapsterDK deleted the issue-13154-multicall-2 branch November 18, 2026 10:23
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