Repository navigation
ocaml: exec toolchain type lives in //ocaml so consumers load no rules_ocaml (part of #14474) - #14633
Conversation
…s_ocaml The OCaml hub registers one toolchain per cell for the dune exec toolchain type (#14598). Toolchain resolution loads the package of every registered toolchain type, and //ocaml/private/toolchain loads dune.bzl, which loads @rules_ocaml. So every consumer, even a core-only one, fetched the rules_ocaml pin: record run 44967558236 measured one repo over each quickstart budget, rules_dx++dx_pins+rules_ocaml. //ocaml:exec_toolchain_type sits next to //ocaml:toolchain_type, in a package that loads no rule-set file, as erlang and php do. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Xut2hvib3dG63tF1yf59sw
|
affected tests (linux_x86_64, shard 4) failed in Generated by Claude Code |
|
affected tests (linux_x86_64, shard 15) failed in Generated by Claude Code |
|
affected tests (linux_x86_64, shard 13) failed in Generated by Claude Code |
|
affected tests (linux_x86_64, shard 10) failed in Generated by Claude Code |
|
affected tests (linux_x86_64, shard 11) failed in Generated by Claude Code |
|
affected tests (linux_x86_64, shard 24): 21 failures.
None of the 21 is caused by this PR. Generated by Claude Code |
|
affected tests (linux_x86_64, shard 25) failed in Generated by Claude Code |
Part of #14474.
Since #14598 the OCaml hub registers one toolchain per cell for the dune exec toolchain type. Toolchain resolution loads the package of every registered toolchain's type, and
//ocaml/private/toolchainloadsdune.bzl, which loads@rules_ocaml. So every consumer, even a core-only one, fetched the rules_ocaml pin. Record run 44967558236 on #14449 measured exactly that one repo over each quickstart budget:rules_dx++dx_pins+rules_ocaml.ocaml/BUILD.bazel:exec_toolchain_typemoves here, next totoolchain_type, in a package that loads no rule-set file (same as//erlang:exec_toolchain_typeand//php:exec_toolchain_type).ocaml/private/toolchain/BUILD.bazel,repos.bzl: drop the old target;EXEC_TOOLCHAIN_TYPEpoints at the new label.api/labels.txt,docs/supported-surface.md: regenerated bybazel run //tools/api:update.bazel query 'buildfiles(<exec toolchain type>)'loads 62@rules_ocamlfiles before and 0 after.Once this lands, #14449's rules_ocaml budget bump (3f5aba4: core 237, python 240/251) can go back to 236/239/250.
Tested:
//tools/api:api_test,//ocaml/tests:all(29 pass, 1 skipped),//core/quality:unsupported_platform_analysis(incl.zanuda_windows_coverage) all passed.tools/dx check --applyon the 5 touched files: generate, format and typecheck clean; lint reports only the existingbuildifier/constant-globwarnings on the untouchedmodule_srcsglobs.Generated by Claude Code