Repository navigation
per-OS analysis fixes for whole-repo gate (part of #14802) - #14804
Merged
Merged
Conversation
- bcr_test_module: android_device_cc depends on the NDK's exec-host tool, so hosts without an NDK (linux_arm64) skip it as incompatible instead of failing toolchain resolution. - oci: distroless indexes publish arm64 as linux/arm64/v8; pull that, and give each image the base for its own platform instead of the build host's. - d: the diagnostics ldc alias covers every pinned LDC cell and carries D_COMPATIBLE_WITH. - ocaml: opam_binary selects over the lang.json cells and carries OCAML_COMPATIBLE_WITH. - deploy: conan_none is incompatible, so conan_deploy is skipped on hosts with no pinned conan. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Xut2hyBydsMejdwk6QdKus
Collaborator
Author
|
/evidence platforms=["windows_x86_64","windows_arm64","macos_arm64","linux_arm64"] task=test scope=//d/tests/fixtures/d_app/diagnostics:all //bcr_test_module:all //ocaml/private/tools:all //deploy/private/pins:all //deploy/private/image_demo:all |
…rt of #14802) With opam_binary and ldc fixed, the coverage gate reached the next analysis errors on Windows: dx_dune_build had no OCaml guard, the pins hub exec aliases and the Terraform provider aliases had selects with no default. Each now carries a target_compatible_with built from the same cells as its select, so Bazel skips dependents on uncovered hosts. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Xut2hyBydsMejdwk6QdKus
Contributor
|
Evidence started on |
This was referenced Nov 24, 2026
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 #14802: targets that failed analysis on one OS now analyse or are skipped as incompatible.
//bcr_test_module:android_device_cc(linux_arm64): the rule takes the C++ toolchain as optional and depends on@rules_dx//android:llvm_readelfin the exec config. On a host with no NDK that alias isno_ndk_host(incompatible,android_unsupported), so the target is skipped instead of failing toolchain resolution. The BCR presubmit task passes--skip_incompatible_explicit_targetsbecause it lists the target on ubuntu2204_arm64.//deploy/private/image_demo:image_java(macos_arm64): distroless indexes publish arm64 aslinux/arm64/v8, and rules_oci matches exactly, so the five distroless pulls now ask forlinux/arm64/v8(dotnet stayslinux/arm64, checked against its index).oci_image_from_binarynow uses the single-platform base for each image platform. Before, it used the hub alias, which follows the build host, so an amd64 image built on an arm64 host got the arm64 base.//ocaml/private/tools:opam_binary(windows_x86_64): the select now covers the cells inocaml/lang.json, and the alias carriesOCAML_COMPATIBLE_WITHfrom the same source.//d/tests/fixtures/d_app/diagnostics:ldc(windows_arm64): the select covers every pinned LDC cell (D_CELLS, which includes windows_arm64) and carriesD_COMPATIBLE_WITH.//deploy/private:conan_demo_config(windows_arm64): there is no pinned conan for that host, so//deploy/private/pins:conanresolved to the emptyconan_noneand the config rule failed.conan_noneis now incompatible, soconan_deploytargets are skipped there.conan_filesno longer defaults to the pinned files when you set your ownconan.Errors the earlier aborts were hiding on Windows:
dx_dune_buildanddx_dune_bootstrapnow appendOCAML_COMPATIBLE_WITH, asocaml_dune_libraryalready did (this fixes//ocaml/private/coverage:bisect_driver_exe). Hub exec aliases frompins_hub(for example@dx_ocaml_toolchains//:stdlib_cmi) and Terraform provider aliases (//terraform/tests:hub_nullon windows_arm64) had selects with no default. Each now gets atarget_compatible_withselect over the same cells.Local checks: I ran analysis with
--host_platformset to linux_arm64, windows_arm64 and windows_x86_64. Each target was skipped as incompatible or analysed. Before this change, linux_arm64 reproduced the CI toolchain error. Image configs:image_multiarm64 = linux/arm64/v8, amd64 = linux/amd64,image_java= linux/amd64.🤖 Generated with Claude Code
https://claude.ai/code/session_01Xut2hyBydsMejdwk6QdKus