You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
cuda: declare //cuda:toolchain_type without loading rules_cuda, so cuda/private/toolchain/hub stops being public (follow-up of #10073) #14447
Follow-up of #10073. cuda/private/toolchain/hub/BUILD.bazel is public (package(default_visibility = ["//visibility:public"])) and has no private-visibility allowlist line, so //tools/testing:language_skeleton_test reports it on main. The hub owns the CUDA toolchain_type, which layout.md puts at @rules_dx//cuda:toolchain_type. The type can't simply move to cuda/BUILD.bazel: that file loads //cuda/private:defs.bzl, which loads @rules_cuda. Every registered toolchain names its type, so rules_cuda would come back on the toolchain-resolution path that #14360 took it off.
Where
cuda/private/toolchain/hub/BUILD.bazel:3 (public package default), :5 (toolchain_type), :13 and the second toolchain() (toolchain_type = ":toolchain_type").
cuda/BUILD.bazel:3 loads //cuda/private:defs.bzl for the cublas, cufft and curandcuda_component_library targets.
Move the three cuda_component_library targets into a cuda/private package. Keep @rules_dx//cuda:cublas, :cufft and :curand as public aliases in cuda/BUILD.bazel, the way ocaml/BUILD.bazel aliases //ocaml/private/.... Then cuda/BUILD.bazel loads no rules_cuda .bzl.
Declare toolchain_type(name = "toolchain_type", visibility = ["//visibility:public"]) in cuda/BUILD.bazel. Point the hub toolchains, check.bzl:7 and the patch at //cuda:toolchain_type, and narrow the hub package default to //:__subpackages__ (registration doesn't check visibility).
Run bazel run //tools/api:update, //cuda/tests:all, //tools/testing:toolchain_gate_test, //tools/testing:language_skeleton_test and //tools/testing/consumer:cold_start_test. The cold-start lists must not gain rules_cuda.
Next slice: #14521 moves the type to //cuda:toolchain_type and makes the hub private. It is draft until the cold_start_test evidence run passes. After that, MODULE.bazel still registers //cuda/private/toolchain/hub:all, and the language skeleton test reports that as register-label. To fix it, register the toolchains through a dx_cuda_toolchains hub repo.
Activity
TrapsterDK commentedon Nov 21, 2026
cloud-claim d04a3080
Generated by Claude Code
TrapsterDK commentedon Nov 21, 2026
Next slice: #14521 moves the type to
//cuda:toolchain_typeand makes the hub private. It is draft until the cold_start_test evidence run passes. After that,MODULE.bazelstill registers//cuda/private/toolchain/hub:all, and the language skeleton test reports that asregister-label. To fix it, register the toolchains through adx_cuda_toolchainshub repo.Generated by Claude Code
ci: keep a test_suite that wraps another repository's tests in the af…
ci: find wrapping suites by their tests attr, not rdeps
cuda: keep the component libraries in //cuda, move the toolkit check …