-
-
Notifications
You must be signed in to change notification settings - Fork 586
[Bazel CI] Error While resolving toolchains for target //tests/base_rules/py_test. No matching toolchains found for types. #2850
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
We have some analysis tests that force the platform to windows/mac in order to test the windows code paths. Here's one of the failing ones mentioned in the error: It sets config_settings:
Where cc toolchain and crosstool are set to an no-op impl. Platforms is shown below. I'm guessing either the "default_test_toolchain_type" Bazel sets up is misconfigured, the config state those tests enter isn't quite valid, or the custom platform definition used for the test isn't quite valid. Here's the basic mac platform it uses: https://github.com/bazel-contrib/rules_python/blob/main/tests/support/BUILD.bazel#L27
@katre @gregestren -- Would one of you know about the "default test" toolchain type and/or if the config state/platform the test are switching to is correct? |
https://buildkite.com/bazel/bazel-auto-sheriff-face-with-cowboy-hat/builds/2002 identifies bazelbuild/bazel@2780393 as the culprit. /cc @fmeum |
I will send a fix soon. |
Sent #2861 |
…2861) This is required as of bazelbuild/bazel@2780393 as tests now require an execution platform that matches their target constraints by default. Fixes #2850
Fixes: ``` ERROR: /Users/fmeum/git/rules_python/tests/pypi/env_marker_setting/BUILD.bazel:3:30: Illegal ambiguous match on configurable attribute "platform_machine" in //tests/pypi/env_marker_setting:test_expr_python_full_version_lt_negative_subject: @@platforms//cpu:aarch64 @@platforms//cpu:arm64 Multiple matches are not allowed unless one is unambiguously more specialized or they resolve to the same value. See https://bazel.build/reference/be/functions#select. ``` Work towards #2850. Work towards #2826.
@fmeum Error still exists in Downstream CI https://buildkite.com/bazel/bazel-at-head-plus-downstream/builds/4652#0196a3c6-540e-4e81-a7f3-00fe72ccebf3 |
@fmeum Sorry for the confusion. Thanks for pointing me about the commit. |
CI: https://buildkite.com/bazel/bazel-at-head-plus-downstream/builds/4641#01968ee3-034a-44a1-9599-541d19ea7f77
Platform: Ubuntu, MacOS, Debian
Logs:
Steps:
CC Greenteam @meteorcloudy
The text was updated successfully, but these errors were encountered: