Skip to content

ocaml: exec toolchain type lives in //ocaml so consumers load no rules_ocaml (part of #14474) - #14633

Merged
TrapsterDK merged 1 commit into
mainfrom
cloud/14474
Nov 23, 2026
Merged

TrapsterDK merged 1 commit into
mainfrom
cloud/14474

Conversation

@TrapsterDK

Copy link
Copy Markdown
Collaborator

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/toolchain loads dune.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_type moves here, next to toolchain_type, in a package that loads no rule-set file (same as //erlang:exec_toolchain_type and //php:exec_toolchain_type).
  • ocaml/private/toolchain/BUILD.bazel, repos.bzl: drop the old target; EXEC_TOOLCHAIN_TYPE points at the new label.
  • api/labels.txt, docs/supported-surface.md: regenerated by bazel run //tools/api:update.

bazel query 'buildfiles(<exec toolchain type>)' loads 62 @rules_ocaml files 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 --apply on the 5 touched files: generate, format and typecheck clean; lint reports only the existing buildifier/constant-glob warnings on the untouched module_srcs globs.


Generated by Claude Code

…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

Copy link
Copy Markdown
Collaborator Author

affected tests (linux_x86_64, shard 4) failed in //core/modules:versions_contract, //core/modules:consumer_deps_test, //core/modules/tests:loaders_test, //config:workspace_policy and //cli/generate:dx_generate_test. All five fail the same way on main 4d1324d without this PR, run locally (every_bazel_dep_has_a_floor_comment_and_is_newest, every_nested_lock_has_the_root_registry_deps, every_non_dev_bazel_dep_has_a_consumer, render_tests::renders_rust). This PR only touches the ocaml toolchain type and the api snapshot, so these are main failures, not this PR's.


Generated by Claude Code

Copy link
Copy Markdown
Collaborator Author

affected tests (linux_x86_64, shard 15) failed in //gazelle/julia:stdlib_test, //gazelle/ocaml:ocaml_test (TestGenerateModules) and //gazelle/csharp:generation_test (TestFullGeneration/proto_import). All three fail the same way on main 4d1324d without this PR, run locally. They are main failures, not this PR's.


Generated by Claude Code

Copy link
Copy Markdown
Collaborator Author

affected tests (linux_x86_64, shard 13) failed in //elixir/tests/conformance:coverage_test (subject_matches_mode). It fails the same way on main 4d1324d without this PR, run locally, so it is a main failure, not this PR's.


Generated by Claude Code

Copy link
Copy Markdown
Collaborator Author

affected tests (linux_x86_64, shard 10) failed in //core/tests:pins (julia_src_lib* url names the version). It fails the same way on main 4d1324d without this PR, run locally, so it is a main failure, not this PR's.


Generated by Claude Code

Copy link
Copy Markdown
Collaborator Author

affected tests (linux_x86_64, shard 11) failed in //csharp/tests/fixtures/xunit:csharp_coverage_test_on. It fails the same way on main 4d1324d without this PR, run locally, so it is a main failure, not this PR's.


Generated by Claude Code

Copy link
Copy Markdown
Collaborator Author

affected tests (linux_x86_64, shard 24): 21 failures.

  • 19 also fail on main 4d1324d without this PR, run locally: the //tools/ci guards plus //tools/docs/ir/ir:site_shard_test, //tools/docs/languages:languages_test and //tools/docs/typescript/extract:dx_docs_typescript_extract_test.
  • The other two, //tools/docs/site:browser_test and //tools/docs/site:serve_test, pass locally on this PR's head a6cefdb (21 s and 19 s) and on main. The CI log doesn't show why they failed there.

None of the 21 is caused by this PR.


Generated by Claude Code

Copy link
Copy Markdown
Collaborator Author

affected tests (linux_x86_64, shard 25) failed in //tools/testing/consumer:apple_consumer_test, dart_consumer_test, root_module_test, //tools/testing/nested:dx_nested_test, //tools/testing:language_skeleton_test and //tools/testing:module_extension_srcs_test. All six fail on main 4d1324d without this PR, run locally (language_skeleton_test is a known main failure). They are main failures, not this PR's.


Generated by Claude Code

@TrapsterDK
TrapsterDK merged commit b204728 into main Nov 23, 2026
24 of 32 checks passed
@TrapsterDK
TrapsterDK deleted the cloud/14474 branch November 23, 2026 07:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api train Tested; land via merge train

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants