Skip to content
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

Python toolchain cache invalidation #2283

Open
ewhauser opened this issue Oct 9, 2024 · 11 comments
Open

Python toolchain cache invalidation #2283

ewhauser opened this issue Oct 9, 2024 · 11 comments

Comments

@ewhauser
Copy link

ewhauser commented Oct 9, 2024

🐞 bug report

Affected Rule

rules_python 0.35.0

Is this a regression?

Yes

Description

The latest version of rules_python is not caching the Python toolchain correctly on OSX.

🔬 Minimal Reproduction

 load("@rules_python//python:repositories.bzl", "py_repositories", "python_register_multi_toolchains")

 py_repositories()

 default_python_version = "3.11"

 python_register_multi_toolchains(
     name = "python",
     default_version = default_python_version,
     ignore_root_user_error = True,
     python_versions = [
         "3.9",
         "3.11",
     ],
 )

 load("@python_3_11//:defs.bzl", "interpreter")
 load("@python_3_9//:defs.bzl", _interpreter_39 = "interpreter")

 # Create a central repo that knows about the dependencies needed for
 # requirements.txt.
 load("@rules_python//python:pip.bzl", "pip_parse")

 pip_parse(
     name = "pypi",
     python_interpreter_target = interpreter,
     requirements_darwin = "//:requirements.macos.compiled",
     requirements_lock = "//:requirements.compiled",
 )

🌍 Your Environment

Operating System:

  
OSX Sonoma 14.7
  

Output of bazel version:

  
Bazelisk version: 1.22.0
Aspect CLI version: 5.10.14
Build label: 7.3.2
Build target: @@//src/main/java/com/google/devtools/build/lib/bazel:BazelServer
Build time: Tue Oct 1 17:48:21 2024 (1727804901)
Build timestamp: 1727804901
Build timestamp as int: 1727804901
  

Rules_python version:

  
0.35.0
  

Anything else relevant?

This occurs in both WORKSPACE and bzlmod builds.

@rickeylev
Copy link
Collaborator

Can you provide more info? In particular, reproduction steps or output that indicates something isn't being cached.

@ewhauser
Copy link
Author

ewhauser commented Oct 10, 2024 via email

@aignas
Copy link
Collaborator

aignas commented Oct 10, 2024

Does #2256 fix the cache invalidation you are seing?

@ewhauser
Copy link
Author

It appears so - I have not been able to reproduce using that commit. Closing.

@ewhauser ewhauser reopened this Oct 19, 2024
@aignas
Copy link
Collaborator

aignas commented Oct 21, 2024

@ewhauser, could you add context for reopening this issue?

@ewhauser
Copy link
Author

Think I closed this prematurely. This behavior still seems to exist in 0.37.0. Trying to track down a min-reproduction.

@aignas aignas added the need: repro Needs a minimal reproduction label Oct 24, 2024
@ewhauser
Copy link
Author

I bisected and this is the offending commit: 68c30483f80a55870eb113e17ab21ff65d5b97ed

@aignas
Copy link
Collaborator

aignas commented Oct 25, 2024

Interesting 68c3048 would have been my last guess here. What is the toolchain matching log if you pass --toolchain_resolution_debug=python?

FYI: @rickeylev

@ewhauser
Copy link
Author

Yes, I agree. I've bisected it 3 separate times and always ended up at this commit. Pinned to the previous commit in our monorepo and the problem is solved.

Computing main repo mapping: 
Loading: 
Loading: 0 packages loaded
WARNING: Build option --toolchain_resolution_debug has changed, discarding analysis cache (this can be expensive, see https://bazel.build/advanced/performance/iteration-speed).
Analyzing: target //tools/pre-commit:pre-commit (0 packages loaded, 0 targets configured)
Analyzing: target //tools/pre-commit:pre-commit (0 packages loaded, 0 targets configured)
[0 / 1] [Prepa] BazelWorkspaceStatusAction stable-status.txt
INFO: ToolchainResolution: Target platform @@platforms//host:host: Selected execution platform @@platforms//host:host, 
INFO: ToolchainResolution: Performing resolution of @@rules_python~//python:exec_tools_toolchain_type for target platform @@platforms//host:host
      ToolchainResolution:   Rejected toolchain @@rules_python~~python~python_3_11_aarch64-apple-darwin//:py_exec_tools_toolchain; mismatching config settings: is_exec_tools_toolchain_enabled
      ToolchainResolution:   Rejected toolchain @@rules_python~~python~python_3_11_aarch64-unknown-linux-gnu//:py_exec_tools_toolchain; mismatching config settings: is_exec_tools_toolchain_enabled
      ToolchainResolution:   Rejected toolchain @@[unknown repo 'python_3_11_armv7-unknown-linux-gnu' requested from @@rules_python~~python~pythons_hub]//:py_exec_tools_toolchain; mismatching config settings: is_exec_tools_toolchain_enabled
      ToolchainResolution:   Rejected toolchain @@[unknown repo 'python_3_11_i386-unknown-linux-gnu' requested from @@rules_python~~python~pythons_hub]//:py_exec_tools_toolchain; mismatching config settings: is_exec_tools_toolchain_enabled
      ToolchainResolution:   Rejected toolchain @@rules_python~~python~python_3_11_ppc64le-unknown-linux-gnu//:py_exec_tools_toolchain; mismatching config settings: is_exec_tools_toolchain_enabled
      ToolchainResolution:   Rejected toolchain @@[unknown repo 'python_3_11_riscv64-unknown-linux-gnu' requested from @@rules_python~~python~pythons_hub]//:py_exec_tools_toolchain; mismatching config settings: is_exec_tools_toolchain_enabled
      ToolchainResolution:   Rejected toolchain @@rules_python~~python~python_3_11_s390x-unknown-linux-gnu//:py_exec_tools_toolchain; mismatching config settings: is_exec_tools_toolchain_enabled
      ToolchainResolution:   Rejected toolchain @@rules_python~~python~python_3_11_x86_64-apple-darwin//:py_exec_tools_toolchain; mismatching config settings: is_exec_tools_toolchain_enabled
      ToolchainResolution:   Rejected toolchain @@rules_python~~python~python_3_11_x86_64-pc-windows-msvc//:py_exec_tools_toolchain; mismatching config settings: is_exec_tools_toolchain_enabled
      ToolchainResolution:   Rejected toolchain @@rules_python~~python~python_3_11_x86_64-unknown-linux-gnu//:py_exec_tools_toolchain; mismatching config settings: is_exec_tools_toolchain_enabled
      ToolchainResolution:   Rejected toolchain @@rules_python~~python~python_3_8_aarch64-apple-darwin//:py_exec_tools_toolchain; mismatching config settings: is_exec_tools_toolchain_enabled
      ToolchainResolution:   Rejected toolchain @@rules_python~~python~python_3_8_aarch64-unknown-linux-gnu//:py_exec_tools_toolchain; mismatching config settings: is_exec_tools_toolchain_enabled
      ToolchainResolution:   Rejected toolchain @@[unknown repo 'python_3_8_armv7-unknown-linux-gnu' requested from @@rules_python~~python~pythons_hub]//:py_exec_tools_toolchain; mismatching config settings: is_exec_tools_toolchain_enabled
      ToolchainResolution:   Rejected toolchain @@[unknown repo 'python_3_8_i386-unknown-linux-gnu' requested from @@rules_python~~python~pythons_hub]//:py_exec_tools_toolchain; mismatching config settings: is_exec_tools_toolchain_enabled
      ToolchainResolution:   Rejected toolchain @@[unknown repo 'python_3_8_ppc64le-unknown-linux-gnu' requested from @@rules_python~~python~pythons_hub]//:py_exec_tools_toolchain; mismatching config settings: is_exec_tools_toolchain_enabled
      ToolchainResolution:   Rejected toolchain @@[unknown repo 'python_3_8_riscv64-unknown-linux-gnu' requested from @@rules_python~~python~pythons_hub]//:py_exec_tools_toolchain; mismatching config settings: is_exec_tools_toolchain_enabled
      ToolchainResolution:   Rejected toolchain @@[unknown repo 'python_3_8_s390x-unknown-linux-gnu' requested from @@rules_python~~python~pythons_hub]//:py_exec_tools_toolchain; mismatching config settings: is_exec_tools_toolchain_enabled
      ToolchainResolution:   Rejected toolchain @@rules_python~~python~python_3_8_x86_64-apple-darwin//:py_exec_tools_toolchain; mismatching config settings: is_exec_tools_toolchain_enabled
      ToolchainResolution:   Rejected toolchain @@rules_python~~python~python_3_8_x86_64-pc-windows-msvc//:py_exec_tools_toolchain; mismatching config settings: is_exec_tools_toolchain_enabled
      ToolchainResolution:   Rejected toolchain @@rules_python~~python~python_3_8_x86_64-unknown-linux-gnu//:py_exec_tools_toolchain; mismatching config settings: is_exec_tools_toolchain_enabled
      ToolchainResolution:   Rejected toolchain @@rules_python~~python~python_3_9_aarch64-apple-darwin//:py_exec_tools_toolchain; mismatching config settings: is_exec_tools_toolchain_enabled
      ToolchainResolution:   Rejected toolchain @@rules_python~~python~python_3_9_aarch64-unknown-linux-gnu//:py_exec_tools_toolchain; mismatching config settings: is_exec_tools_toolchain_enabled
      ToolchainResolution:   Rejected toolchain @@[unknown repo 'python_3_9_armv7-unknown-linux-gnu' requested from @@rules_python~~python~pythons_hub]//:py_exec_tools_toolchain; mismatching config settings: is_exec_tools_toolchain_enabled
      ToolchainResolution:   Rejected toolchain @@[unknown repo 'python_3_9_i386-unknown-linux-gnu' requested from @@rules_python~~python~pythons_hub]//:py_exec_tools_toolchain; mismatching config settings: is_exec_tools_toolchain_enabled
      ToolchainResolution:   Rejected toolchain @@rules_python~~python~python_3_9_ppc64le-unknown-linux-gnu//:py_exec_tools_toolchain; mismatching config settings: is_exec_tools_toolchain_enabled
      ToolchainResolution:   Rejected toolchain @@[unknown repo 'python_3_9_riscv64-unknown-linux-gnu' requested from @@rules_python~~python~pythons_hub]//:py_exec_tools_toolchain; mismatching config settings: is_exec_tools_toolchain_enabled
      ToolchainResolution:   Rejected toolchain @@rules_python~~python~python_3_9_s390x-unknown-linux-gnu//:py_exec_tools_toolchain; mismatching config settings: is_exec_tools_toolchain_enabled
      ToolchainResolution:   Rejected toolchain @@rules_python~~python~python_3_9_x86_64-apple-darwin//:py_exec_tools_toolchain; mismatching config settings: is_exec_tools_toolchain_enabled
      ToolchainResolution:   Rejected toolchain @@rules_python~~python~python_3_9_x86_64-pc-windows-msvc//:py_exec_tools_toolchain; mismatching config settings: is_exec_tools_toolchain_enabled
      ToolchainResolution:   Rejected toolchain @@rules_python~~python~python_3_9_x86_64-unknown-linux-gnu//:py_exec_tools_toolchain; mismatching config settings: is_exec_tools_toolchain_enabled
      ToolchainResolution:   Rejected toolchain @@rules_python~~python~python_3_10_aarch64-apple-darwin//:py_exec_tools_toolchain; mismatching config settings: is_exec_tools_toolchain_enabled
      ToolchainResolution:   Rejected toolchain @@rules_python~~python~python_3_10_aarch64-unknown-linux-gnu//:py_exec_tools_toolchain; mismatching config settings: is_exec_tools_toolchain_enabled
      ToolchainResolution:   Rejected toolchain @@[unknown repo 'python_3_10_armv7-unknown-linux-gnu' requested from @@rules_python~~python~pythons_hub]//:py_exec_tools_toolchain; mismatching config settings: is_exec_tools_toolchain_enabled
      ToolchainResolution:   Rejected toolchain @@[unknown repo 'python_3_10_i386-unknown-linux-gnu' requested from @@rules_python~~python~pythons_hub]//:py_exec_tools_toolchain; mismatching config settings: is_exec_tools_toolchain_enabled
      ToolchainResolution:   Rejected toolchain @@rules_python~~python~python_3_10_ppc64le-unknown-linux-gnu//:py_exec_tools_toolchain; mismatching config settings: is_exec_tools_toolchain_enabled
      ToolchainResolution:   Rejected toolchain @@[unknown repo 'python_3_10_riscv64-unknown-linux-gnu' requested from @@rules_python~~python~pythons_hub]//:py_exec_tools_toolchain; mismatching config settings: is_exec_tools_toolchain_enabled
      ToolchainResolution:   Rejected toolchain @@rules_python~~python~python_3_10_s390x-unknown-linux-gnu//:py_exec_tools_toolchain; mismatching config settings: is_exec_tools_toolchain_enabled
      ToolchainResolution:   Rejected toolchain @@rules_python~~python~python_3_10_x86_64-apple-darwin//:py_exec_tools_toolchain; mismatching config settings: is_exec_tools_toolchain_enabled
      ToolchainResolution:   Rejected toolchain @@rules_python~~python~python_3_10_x86_64-pc-windows-msvc//:py_exec_tools_toolchain; mismatching config settings: is_exec_tools_toolchain_enabled
      ToolchainResolution:   Rejected toolchain @@rules_python~~python~python_3_10_x86_64-unknown-linux-gnu//:py_exec_tools_toolchain; mismatching config settings: is_exec_tools_toolchain_enabled
      ToolchainResolution:   Rejected toolchain @@rules_python~~python~python_3_12_aarch64-apple-darwin//:py_exec_tools_toolchain; mismatching config settings: is_exec_tools_toolchain_enabled
      ToolchainResolution:   Rejected toolchain @@rules_python~~python~python_3_12_aarch64-unknown-linux-gnu//:py_exec_tools_toolchain; mismatching config settings: is_exec_tools_toolchain_enabled
      ToolchainResolution:   Rejected toolchain @@[unknown repo 'python_3_12_armv7-unknown-linux-gnu' requested from @@rules_python~~python~pythons_hub]//:py_exec_tools_toolchain; mismatching config settings: is_exec_tools_toolchain_enabled
      ToolchainResolution:   Rejected toolchain @@[unknown repo 'python_3_12_i386-unknown-linux-gnu' requested from @@rules_python~~python~pythons_hub]//:py_exec_tools_toolchain; mismatching config settings: is_exec_tools_toolchain_enabled
      ToolchainResolution:   Rejected toolchain @@rules_python~~python~python_3_12_ppc64le-unknown-linux-gnu//:py_exec_tools_toolchain; mismatching config settings: is_exec_tools_toolchain_enabled
      ToolchainResolution:   Rejected toolchain @@[unknown repo 'python_3_12_riscv64-unknown-linux-gnu' requested from @@rules_python~~python~pythons_hub]//:py_exec_tools_toolchain; mismatching config settings: is_exec_tools_toolchain_enabled
      ToolchainResolution:   Rejected toolchain @@rules_python~~python~python_3_12_s390x-unknown-linux-gnu//:py_exec_tools_toolchain; mismatching config settings: is_exec_tools_toolchain_enabled
      ToolchainResolution:   Rejected toolchain @@rules_python~~python~python_3_12_x86_64-apple-darwin//:py_exec_tools_toolchain; mismatching config settings: is_exec_tools_toolchain_enabled
      ToolchainResolution:   Rejected toolchain @@rules_python~~python~python_3_12_x86_64-pc-windows-msvc//:py_exec_tools_toolchain; mismatching config settings: is_exec_tools_toolchain_enabled
      ToolchainResolution:   Rejected toolchain @@rules_python~~python~python_3_12_x86_64-unknown-linux-gnu//:py_exec_tools_toolchain; mismatching config settings: is_exec_tools_toolchain_enabled
      ToolchainResolution:   Rejected toolchain @@rules_python~~python~python_3_11_4_aarch64-apple-darwin//:py_exec_tools_toolchain; mismatching config settings: is_exec_tools_toolchain_enabled
      ToolchainResolution:   Rejected toolchain @@rules_python~~python~python_3_11_4_aarch64-unknown-linux-gnu//:py_exec_tools_toolchain; mismatching config settings: is_exec_tools_toolchain_enabled
      ToolchainResolution:   Rejected toolchain @@[unknown repo 'python_3_11_4_armv7-unknown-linux-gnu' requested from @@rules_python~~python~pythons_hub]//:py_exec_tools_toolchain; mismatching config settings: is_exec_tools_toolchain_enabled
      ToolchainResolution:   Rejected toolchain @@[unknown repo 'python_3_11_4_i386-unknown-linux-gnu' requested from @@rules_python~~python~pythons_hub]//:py_exec_tools_toolchain; mismatching config settings: is_exec_tools_toolchain_enabled
      ToolchainResolution:   Rejected toolchain @@rules_python~~python~python_3_11_4_ppc64le-unknown-linux-gnu//:py_exec_tools_toolchain; mismatching config settings: is_exec_tools_toolchain_enabled
      ToolchainResolution:   Rejected toolchain @@[unknown repo 'python_3_11_4_riscv64-unknown-linux-gnu' requested from @@rules_python~~python~pythons_hub]//:py_exec_tools_toolchain; mismatching config settings: is_exec_tools_toolchain_enabled
      ToolchainResolution:   Rejected toolchain @@rules_python~~python~python_3_11_4_s390x-unknown-linux-gnu//:py_exec_tools_toolchain; mismatching config settings: is_exec_tools_toolchain_enabled
      ToolchainResolution:   Rejected toolchain @@rules_python~~python~python_3_11_4_x86_64-apple-darwin//:py_exec_tools_toolchain; mismatching config settings: is_exec_tools_toolchain_enabled
      ToolchainResolution:   Rejected toolchain @@rules_python~~python~python_3_11_4_x86_64-pc-windows-msvc//:py_exec_tools_toolchain; mismatching config settings: is_exec_tools_toolchain_enabled
      ToolchainResolution:   Rejected toolchain @@rules_python~~python~python_3_11_4_x86_64-unknown-linux-gnu//:py_exec_tools_toolchain; mismatching config settings: is_exec_tools_toolchain_enabled
      ToolchainResolution: No @@rules_python~//python:exec_tools_toolchain_type toolchain found for target platform @@platforms//host:host.
INFO: ToolchainResolution: Performing resolution of @@bazel_tools//tools/python:toolchain_type for target platform @@platforms//host:host
      ToolchainResolution:   Rejected toolchain @@rules_python~~python~python_3_11_aarch64-apple-darwin//:python_runtimes; mismatching config settings: _0000_python_3_11_aarch64-apple-darwin_3.11.9_1
      ToolchainResolution:   Rejected toolchain @@rules_python~~python~python_3_11_aarch64-unknown-linux-gnu//:python_runtimes; mismatching config settings: _0000_python_3_11_aarch64-unknown-linux-gnu_3.11.9_1
      ToolchainResolution:   Rejected toolchain @@[unknown repo 'python_3_11_armv7-unknown-linux-gnu' requested from @@rules_python~~python~pythons_hub]//:python_runtimes; mismatching config settings: _0000_python_3_11_armv7-unknown-linux-gnu_3.11.9_1
      ToolchainResolution:   Rejected toolchain @@[unknown repo 'python_3_11_i386-unknown-linux-gnu' requested from @@rules_python~~python~pythons_hub]//:python_runtimes; mismatching config settings: _0000_python_3_11_i386-unknown-linux-gnu_3.11.9_1
      ToolchainResolution:   Rejected toolchain @@rules_python~~python~python_3_11_ppc64le-unknown-linux-gnu//:python_runtimes; mismatching config settings: _0000_python_3_11_ppc64le-unknown-linux-gnu_3.11.9_1
      ToolchainResolution:   Rejected toolchain @@[unknown repo 'python_3_11_riscv64-unknown-linux-gnu' requested from @@rules_python~~python~pythons_hub]//:python_runtimes; mismatching config settings: _0000_python_3_11_riscv64-unknown-linux-gnu_3.11.9_1
      ToolchainResolution:   Rejected toolchain @@rules_python~~python~python_3_11_s390x-unknown-linux-gnu//:python_runtimes; mismatching config settings: _0000_python_3_11_s390x-unknown-linux-gnu_3.11.9_1
      ToolchainResolution:   Rejected toolchain @@rules_python~~python~python_3_11_x86_64-apple-darwin//:python_runtimes; mismatching config settings: _0000_python_3_11_x86_64-apple-darwin_3.11.9_1
      ToolchainResolution:   Rejected toolchain @@rules_python~~python~python_3_11_x86_64-pc-windows-msvc//:python_runtimes; mismatching config settings: _0000_python_3_11_x86_64-pc-windows-msvc_3.11.9_1
      ToolchainResolution:   Rejected toolchain @@rules_python~~python~python_3_11_x86_64-unknown-linux-gnu//:python_runtimes; mismatching config settings: _0000_python_3_11_x86_64-unknown-linux-gnu_3.11.9_1
      ToolchainResolution:   Rejected toolchain @@rules_python~~python~python_3_8_aarch64-apple-darwin//:python_runtimes; mismatching config settings: _0001_python_3_8_aarch64-apple-darwin_3.8.19_1
      ToolchainResolution:   Rejected toolchain @@rules_python~~python~python_3_8_aarch64-unknown-linux-gnu//:python_runtimes; mismatching config settings: _0001_python_3_8_aarch64-unknown-linux-gnu_3.8.19_1
      ToolchainResolution:   Rejected toolchain @@[unknown repo 'python_3_8_armv7-unknown-linux-gnu' requested from @@rules_python~~python~pythons_hub]//:python_runtimes; mismatching config settings: _0001_python_3_8_armv7-unknown-linux-gnu_3.8.19_1
      ToolchainResolution:   Rejected toolchain @@[unknown repo 'python_3_8_i386-unknown-linux-gnu' requested from @@rules_python~~python~pythons_hub]//:python_runtimes; mismatching config settings: _0001_python_3_8_i386-unknown-linux-gnu_3.8.19_1
      ToolchainResolution:   Rejected toolchain @@[unknown repo 'python_3_8_ppc64le-unknown-linux-gnu' requested from @@rules_python~~python~pythons_hub]//:python_runtimes; mismatching config settings: _0001_python_3_8_ppc64le-unknown-linux-gnu_3.8.19_1
      ToolchainResolution:   Rejected toolchain @@[unknown repo 'python_3_8_riscv64-unknown-linux-gnu' requested from @@rules_python~~python~pythons_hub]//:python_runtimes; mismatching config settings: _0001_python_3_8_riscv64-unknown-linux-gnu_3.8.19_1
      ToolchainResolution:   Rejected toolchain @@[unknown repo 'python_3_8_s390x-unknown-linux-gnu' requested from @@rules_python~~python~pythons_hub]//:python_runtimes; mismatching config settings: _0001_python_3_8_s390x-unknown-linux-gnu_3.8.19_1
      ToolchainResolution:   Rejected toolchain @@rules_python~~python~python_3_8_x86_64-apple-darwin//:python_runtimes; mismatching config settings: _0001_python_3_8_x86_64-apple-darwin_3.8.19_1
      ToolchainResolution:   Rejected toolchain @@rules_python~~python~python_3_8_x86_64-pc-windows-msvc//:python_runtimes; mismatching config settings: _0001_python_3_8_x86_64-pc-windows-msvc_3.8.19_1
      ToolchainResolution:   Rejected toolchain @@rules_python~~python~python_3_8_x86_64-unknown-linux-gnu//:python_runtimes; mismatching config settings: _0001_python_3_8_x86_64-unknown-linux-gnu_3.8.19_1
      ToolchainResolution:   Rejected toolchain @@rules_python~~python~python_3_9_aarch64-apple-darwin//:python_runtimes; mismatching config settings: _0002_python_3_9_aarch64-apple-darwin_3.9.19_1
      ToolchainResolution:   Rejected toolchain @@rules_python~~python~python_3_9_aarch64-unknown-linux-gnu//:python_runtimes; mismatching config settings: _0002_python_3_9_aarch64-unknown-linux-gnu_3.9.19_1
      ToolchainResolution:   Rejected toolchain @@[unknown repo 'python_3_9_armv7-unknown-linux-gnu' requested from @@rules_python~~python~pythons_hub]//:python_runtimes; mismatching config settings: _0002_python_3_9_armv7-unknown-linux-gnu_3.9.19_1
      ToolchainResolution:   Rejected toolchain @@[unknown repo 'python_3_9_i386-unknown-linux-gnu' requested from @@rules_python~~python~pythons_hub]//:python_runtimes; mismatching config settings: _0002_python_3_9_i386-unknown-linux-gnu_3.9.19_1
      ToolchainResolution:   Rejected toolchain @@rules_python~~python~python_3_9_ppc64le-unknown-linux-gnu//:python_runtimes; mismatching config settings: _0002_python_3_9_ppc64le-unknown-linux-gnu_3.9.19_1
      ToolchainResolution:   Rejected toolchain @@[unknown repo 'python_3_9_riscv64-unknown-linux-gnu' requested from @@rules_python~~python~pythons_hub]//:python_runtimes; mismatching config settings: _0002_python_3_9_riscv64-unknown-linux-gnu_3.9.19_1
      ToolchainResolution:   Rejected toolchain @@rules_python~~python~python_3_9_s390x-unknown-linux-gnu//:python_runtimes; mismatching config settings: _0002_python_3_9_s390x-unknown-linux-gnu_3.9.19_1
      ToolchainResolution:   Rejected toolchain @@rules_python~~python~python_3_9_x86_64-apple-darwin//:python_runtimes; mismatching config settings: _0002_python_3_9_x86_64-apple-darwin_3.9.19_1
      ToolchainResolution:   Rejected toolchain @@rules_python~~python~python_3_9_x86_64-pc-windows-msvc//:python_runtimes; mismatching config settings: _0002_python_3_9_x86_64-pc-windows-msvc_3.9.19_1
      ToolchainResolution:   Rejected toolchain @@rules_python~~python~python_3_9_x86_64-unknown-linux-gnu//:python_runtimes; mismatching config settings: _0002_python_3_9_x86_64-unknown-linux-gnu_3.9.19_1
      ToolchainResolution:   Rejected toolchain @@rules_python~~python~python_3_10_aarch64-apple-darwin//:python_runtimes; mismatching config settings: _0003_python_3_10_aarch64-apple-darwin_3.10.14_1
      ToolchainResolution:   Rejected toolchain @@rules_python~~python~python_3_10_aarch64-unknown-linux-gnu//:python_runtimes; mismatching config settings: _0003_python_3_10_aarch64-unknown-linux-gnu_3.10.14_1
      ToolchainResolution:   Rejected toolchain @@[unknown repo 'python_3_10_armv7-unknown-linux-gnu' requested from @@rules_python~~python~pythons_hub]//:python_runtimes; mismatching config settings: _0003_python_3_10_armv7-unknown-linux-gnu_3.10.14_1
      ToolchainResolution:   Rejected toolchain @@[unknown repo 'python_3_10_i386-unknown-linux-gnu' requested from @@rules_python~~python~pythons_hub]//:python_runtimes; mismatching config settings: _0003_python_3_10_i386-unknown-linux-gnu_3.10.14_1
      ToolchainResolution:   Rejected toolchain @@rules_python~~python~python_3_10_ppc64le-unknown-linux-gnu//:python_runtimes; mismatching config settings: _0003_python_3_10_ppc64le-unknown-linux-gnu_3.10.14_1
      ToolchainResolution:   Rejected toolchain @@[unknown repo 'python_3_10_riscv64-unknown-linux-gnu' requested from @@rules_python~~python~pythons_hub]//:python_runtimes; mismatching config settings: _0003_python_3_10_riscv64-unknown-linux-gnu_3.10.14_1
      ToolchainResolution:   Rejected toolchain @@rules_python~~python~python_3_10_s390x-unknown-linux-gnu//:python_runtimes; mismatching config settings: _0003_python_3_10_s390x-unknown-linux-gnu_3.10.14_1
      ToolchainResolution:   Rejected toolchain @@rules_python~~python~python_3_10_x86_64-apple-darwin//:python_runtimes; mismatching config settings: _0003_python_3_10_x86_64-apple-darwin_3.10.14_1
      ToolchainResolution:   Rejected toolchain @@rules_python~~python~python_3_10_x86_64-pc-windows-msvc//:python_runtimes; mismatching config settings: _0003_python_3_10_x86_64-pc-windows-msvc_3.10.14_1
      ToolchainResolution:   Rejected toolchain @@rules_python~~python~python_3_10_x86_64-unknown-linux-gnu//:python_runtimes; mismatching config settings: _0003_python_3_10_x86_64-unknown-linux-gnu_3.10.14_1
      ToolchainResolution:   Rejected toolchain @@rules_python~~python~python_3_12_aarch64-apple-darwin//:python_runtimes; mismatching config settings: _0004_python_3_12_aarch64-apple-darwin_3.12.3_1
      ToolchainResolution:   Rejected toolchain @@rules_python~~python~python_3_12_aarch64-unknown-linux-gnu//:python_runtimes; mismatching config settings: _0004_python_3_12_aarch64-unknown-linux-gnu_3.12.3_1
      ToolchainResolution:   Rejected toolchain @@[unknown repo 'python_3_12_armv7-unknown-linux-gnu' requested from @@rules_python~~python~pythons_hub]//:python_runtimes; mismatching config settings: _0004_python_3_12_armv7-unknown-linux-gnu_3.12.3_1
      ToolchainResolution:   Rejected toolchain @@[unknown repo 'python_3_12_i386-unknown-linux-gnu' requested from @@rules_python~~python~pythons_hub]//:python_runtimes; mismatching config settings: _0004_python_3_12_i386-unknown-linux-gnu_3.12.3_1
      ToolchainResolution:   Rejected toolchain @@rules_python~~python~python_3_12_ppc64le-unknown-linux-gnu//:python_runtimes; mismatching config settings: _0004_python_3_12_ppc64le-unknown-linux-gnu_3.12.3_1
      ToolchainResolution:   Rejected toolchain @@[unknown repo 'python_3_12_riscv64-unknown-linux-gnu' requested from @@rules_python~~python~pythons_hub]//:python_runtimes; mismatching config settings: _0004_python_3_12_riscv64-unknown-linux-gnu_3.12.3_1
      ToolchainResolution:   Rejected toolchain @@rules_python~~python~python_3_12_s390x-unknown-linux-gnu//:python_runtimes; mismatching config settings: _0004_python_3_12_s390x-unknown-linux-gnu_3.12.3_1
      ToolchainResolution:   Rejected toolchain @@rules_python~~python~python_3_12_x86_64-apple-darwin//:python_runtimes; mismatching config settings: _0004_python_3_12_x86_64-apple-darwin_3.12.3_1
      ToolchainResolution:   Rejected toolchain @@rules_python~~python~python_3_12_x86_64-pc-windows-msvc//:python_runtimes; mismatching config settings: _0004_python_3_12_x86_64-pc-windows-msvc_3.12.3_1
      ToolchainResolution:   Rejected toolchain @@rules_python~~python~python_3_12_x86_64-unknown-linux-gnu//:python_runtimes; mismatching config settings: _0004_python_3_12_x86_64-unknown-linux-gnu_3.12.3_1
      ToolchainResolution:   Toolchain @@rules_python~~python~python_3_11_4_aarch64-apple-darwin//:python_runtimes is compatible with target plaform, searching for execution platforms:
      ToolchainResolution:     Compatible execution platform @@platforms//host:host
      ToolchainResolution:   All execution platforms have been assigned a @@bazel_tools//tools/python:toolchain_type toolchain, stopping
      ToolchainResolution: Recap of selected @@bazel_tools//tools/python:toolchain_type toolchains for target platform @@platforms//host:host:
      ToolchainResolution:   Selected @@rules_python~~python~python_3_11_4_aarch64-apple-darwin//:python_runtimes to run on execution platform @@platforms//host:host
INFO: ToolchainResolution: Target platform @@platforms//host:host: Selected execution platform @@platforms//host:host, 
INFO: ToolchainResolution: Target platform @@platforms//host:host: Selected execution platform @@platforms//host:host, type @@bazel_tools//tools/python:toolchain_type -> toolchain @@rules_python~~python~python_3_11_4_aarch64-apple-darwin//:python_runtimes
INFO: ToolchainResolution: Target platform @@platforms//host:host: Selected execution platform @@platforms//host:host, 
INFO: ToolchainResolution: Performing resolution of @@rules_python~//python:exec_tools_toolchain_type for target platform @@platforms//host:host
      ToolchainResolution:   Rejected toolchain @@rules_python~~python~python_3_11_aarch64-apple-darwin//:py_exec_tools_toolchain; mismatching config settings: is_exec_tools_toolchain_enabled
      ToolchainResolution:   Rejected toolchain @@rules_python~~python~python_3_11_aarch64-unknown-linux-gnu//:py_exec_tools_toolchain; mismatching config settings: is_exec_tools_toolchain_enabled
      ToolchainResolution:   Rejected toolchain @@[unknown repo 'python_3_11_armv7-unknown-linux-gnu' requested from @@rules_python~~python~pythons_hub]//:py_exec_tools_toolchain; mismatching config settings: is_exec_tools_toolchain_enabled
      ToolchainResolution:   Rejected toolchain @@[unknown repo 'python_3_11_i386-unknown-linux-gnu' requested from @@rules_python~~python~pythons_hub]//:py_exec_tools_toolchain; mismatching config settings: is_exec_tools_toolchain_enabled
      ToolchainResolution:   Rejected toolchain @@rules_python~~python~python_3_11_ppc64le-unknown-linux-gnu//:py_exec_tools_toolchain; mismatching config settings: is_exec_tools_toolchain_enabled
      ToolchainResolution:   Rejected toolchain @@[unknown repo 'python_3_11_riscv64-unknown-linux-gnu' requested from @@rules_python~~python~pythons_hub]//:py_exec_tools_toolchain; mismatching config settings: is_exec_tools_toolchain_enabled
      ToolchainResolution:   Rejected toolchain @@rules_python~~python~python_3_11_s390x-unknown-linux-gnu//:py_exec_tools_toolchain; mismatching config settings: is_exec_tools_toolchain_enabled
      ToolchainResolution:   Rejected toolchain @@rules_python~~python~python_3_11_x86_64-apple-darwin//:py_exec_tools_toolchain; mismatching config settings: is_exec_tools_toolchain_enabled
      ToolchainResolution:   Rejected toolchain @@rules_python~~python~python_3_11_x86_64-pc-windows-msvc//:py_exec_tools_toolchain; mismatching config settings: is_exec_tools_toolchain_enabled
      ToolchainResolution:   Rejected toolchain @@rules_python~~python~python_3_11_x86_64-unknown-linux-gnu//:py_exec_tools_toolchain; mismatching config settings: is_exec_tools_toolchain_enabled
      ToolchainResolution:   Rejected toolchain @@rules_python~~python~python_3_8_aarch64-apple-darwin//:py_exec_tools_toolchain; mismatching config settings: is_exec_tools_toolchain_enabled
      ToolchainResolution:   Rejected toolchain @@rules_python~~python~python_3_8_aarch64-unknown-linux-gnu//:py_exec_tools_toolchain; mismatching config settings: is_exec_tools_toolchain_enabled
      ToolchainResolution:   Rejected toolchain @@[unknown repo 'python_3_8_armv7-unknown-linux-gnu' requested from @@rules_python~~python~pythons_hub]//:py_exec_tools_toolchain; mismatching config settings: is_exec_tools_toolchain_enabled
      ToolchainResolution:   Rejected toolchain @@[unknown repo 'python_3_8_i386-unknown-linux-gnu' requested from @@rules_python~~python~pythons_hub]//:py_exec_tools_toolchain; mismatching config settings: is_exec_tools_toolchain_enabled
      ToolchainResolution:   Rejected toolchain @@[unknown repo 'python_3_8_ppc64le-unknown-linux-gnu' requested from @@rules_python~~python~pythons_hub]//:py_exec_tools_toolchain; mismatching config settings: is_exec_tools_toolchain_enabled
      ToolchainResolution:   Rejected toolchain @@[unknown repo 'python_3_8_riscv64-unknown-linux-gnu' requested from @@rules_python~~python~pythons_hub]//:py_exec_tools_toolchain; mismatching config settings: is_exec_tools_toolchain_enabled
      ToolchainResolution:   Rejected toolchain @@[unknown repo 'python_3_8_s390x-unknown-linux-gnu' requested from @@rules_python~~python~pythons_hub]//:py_exec_tools_toolchain; mismatching config settings: is_exec_tools_toolchain_enabled
      ToolchainResolution:   Rejected toolchain @@rules_python~~python~python_3_8_x86_64-apple-darwin//:py_exec_tools_toolchain; mismatching config settings: is_exec_tools_toolchain_enabled
      ToolchainResolution:   Rejected toolchain @@rules_python~~python~python_3_8_x86_64-pc-windows-msvc//:py_exec_tools_toolchain; mismatching config settings: is_exec_tools_toolchain_enabled
      ToolchainResolution:   Rejected toolchain @@rules_python~~python~python_3_8_x86_64-unknown-linux-gnu//:py_exec_tools_toolchain; mismatching config settings: is_exec_tools_toolchain_enabled
      ToolchainResolution:   Rejected toolchain @@rules_python~~python~python_3_9_aarch64-apple-darwin//:py_exec_tools_toolchain; mismatching config settings: is_exec_tools_toolchain_enabled
      ToolchainResolution:   Rejected toolchain @@rules_python~~python~python_3_9_aarch64-unknown-linux-gnu//:py_exec_tools_toolchain; mismatching config settings: is_exec_tools_toolchain_enabled
      ToolchainResolution:   Rejected toolchain @@[unknown repo 'python_3_9_armv7-unknown-linux-gnu' requested from @@rules_python~~python~pythons_hub]//:py_exec_tools_toolchain; mismatching config settings: is_exec_tools_toolchain_enabled
      ToolchainResolution:   Rejected toolchain @@[unknown repo 'python_3_9_i386-unknown-linux-gnu' requested from @@rules_python~~python~pythons_hub]//:py_exec_tools_toolchain; mismatching config settings: is_exec_tools_toolchain_enabled
      ToolchainResolution:   Rejected toolchain @@rules_python~~python~python_3_9_ppc64le-unknown-linux-gnu//:py_exec_tools_toolchain; mismatching config settings: is_exec_tools_toolchain_enabled
      ToolchainResolution:   Rejected toolchain @@[unknown repo 'python_3_9_riscv64-unknown-linux-gnu' requested from @@rules_python~~python~pythons_hub]//:py_exec_tools_toolchain; mismatching config settings: is_exec_tools_toolchain_enabled
      ToolchainResolution:   Rejected toolchain @@rules_python~~python~python_3_9_s390x-unknown-linux-gnu//:py_exec_tools_toolchain; mismatching config settings: is_exec_tools_toolchain_enabled
      ToolchainResolution:   Rejected toolchain @@rules_python~~python~python_3_9_x86_64-apple-darwin//:py_exec_tools_toolchain; mismatching config settings: is_exec_tools_toolchain_enabled
      ToolchainResolution:   Rejected toolchain @@rules_python~~python~python_3_9_x86_64-pc-windows-msvc//:py_exec_tools_toolchain; mismatching config settings: is_exec_tools_toolchain_enabled
      ToolchainResolution:   Rejected toolchain @@rules_python~~python~python_3_9_x86_64-unknown-linux-gnu//:py_exec_tools_toolchain; mismatching config settings: is_exec_tools_toolchain_enabled
      ToolchainResolution:   Rejected toolchain @@rules_python~~python~python_3_10_aarch64-apple-darwin//:py_exec_tools_toolchain; mismatching config settings: is_exec_tools_toolchain_enabled
      ToolchainResolution:   Rejected toolchain @@rules_python~~python~python_3_10_aarch64-unknown-linux-gnu//:py_exec_tools_toolchain; mismatching config settings: is_exec_tools_toolchain_enabled
      ToolchainResolution:   Rejected toolchain @@[unknown repo 'python_3_10_armv7-unknown-linux-gnu' requested from @@rules_python~~python~pythons_hub]//:py_exec_tools_toolchain; mismatching config settings: is_exec_tools_toolchain_enabled
      ToolchainResolution:   Rejected toolchain @@[unknown repo 'python_3_10_i386-unknown-linux-gnu' requested from @@rules_python~~python~pythons_hub]//:py_exec_tools_toolchain; mismatching config settings: is_exec_tools_toolchain_enabled
      ToolchainResolution:   Rejected toolchain @@rules_python~~python~python_3_10_ppc64le-unknown-linux-gnu//:py_exec_tools_toolchain; mismatching config settings: is_exec_tools_toolchain_enabled
      ToolchainResolution:   Rejected toolchain @@[unknown repo 'python_3_10_riscv64-unknown-linux-gnu' requested from @@rules_python~~python~pythons_hub]//:py_exec_tools_toolchain; mismatching config settings: is_exec_tools_toolchain_enabled
      ToolchainResolution:   Rejected toolchain @@rules_python~~python~python_3_10_s390x-unknown-linux-gnu//:py_exec_tools_toolchain; mismatching config settings: is_exec_tools_toolchain_enabled
      ToolchainResolution:   Rejected toolchain @@rules_python~~python~python_3_10_x86_64-apple-darwin//:py_exec_tools_toolchain; mismatching config settings: is_exec_tools_toolchain_enabled
      ToolchainResolution:   Rejected toolchain @@rules_python~~python~python_3_10_x86_64-pc-windows-msvc//:py_exec_tools_toolchain; mismatching config settings: is_exec_tools_toolchain_enabled
      ToolchainResolution:   Rejected toolchain @@rules_python~~python~python_3_10_x86_64-unknown-linux-gnu//:py_exec_tools_toolchain; mismatching config settings: is_exec_tools_toolchain_enabled
      ToolchainResolution:   Rejected toolchain @@rules_python~~python~python_3_12_aarch64-apple-darwin//:py_exec_tools_toolchain; mismatching config settings: is_exec_tools_toolchain_enabled
      ToolchainResolution:   Rejected toolchain @@rules_python~~python~python_3_12_aarch64-unknown-linux-gnu//:py_exec_tools_toolchain; mismatching config settings: is_exec_tools_toolchain_enabled
      ToolchainResolution:   Rejected toolchain @@[unknown repo 'python_3_12_armv7-unknown-linux-gnu' requested from @@rules_python~~python~pythons_hub]//:py_exec_tools_toolchain; mismatching config settings: is_exec_tools_toolchain_enabled
      ToolchainResolution:   Rejected toolchain @@[unknown repo 'python_3_12_i386-unknown-linux-gnu' requested from @@rules_python~~python~pythons_hub]//:py_exec_tools_toolchain; mismatching config settings: is_exec_tools_toolchain_enabled
      ToolchainResolution:   Rejected toolchain @@rules_python~~python~python_3_12_ppc64le-unknown-linux-gnu//:py_exec_tools_toolchain; mismatching config settings: is_exec_tools_toolchain_enabled
      ToolchainResolution:   Rejected toolchain @@[unknown repo 'python_3_12_riscv64-unknown-linux-gnu' requested from @@rules_python~~python~pythons_hub]//:py_exec_tools_toolchain; mismatching config settings: is_exec_tools_toolchain_enabled
      ToolchainResolution:   Rejected toolchain @@rules_python~~python~python_3_12_s390x-unknown-linux-gnu//:py_exec_tools_toolchain; mismatching config settings: is_exec_tools_toolchain_enabled
      ToolchainResolution:   Rejected toolchain @@rules_python~~python~python_3_12_x86_64-apple-darwin//:py_exec_tools_toolchain; mismatching config settings: is_exec_tools_toolchain_enabled
      ToolchainResolution:   Rejected toolchain @@rules_python~~python~python_3_12_x86_64-pc-windows-msvc//:py_exec_tools_toolchain; mismatching config settings: is_exec_tools_toolchain_enabled
      ToolchainResolution:   Rejected toolchain @@rules_python~~python~python_3_12_x86_64-unknown-linux-gnu//:py_exec_tools_toolchain; mismatching config settings: is_exec_tools_toolchain_enabled
      ToolchainResolution:   Rejected toolchain @@rules_python~~python~python_3_11_4_aarch64-apple-darwin//:py_exec_tools_toolchain; mismatching config settings: is_exec_tools_toolchain_enabled
      ToolchainResolution:   Rejected toolchain @@rules_python~~python~python_3_11_4_aarch64-unknown-linux-gnu//:py_exec_tools_toolchain; mismatching config settings: is_exec_tools_toolchain_enabled
      ToolchainResolution:   Rejected toolchain @@[unknown repo 'python_3_11_4_armv7-unknown-linux-gnu' requested from @@rules_python~~python~pythons_hub]//:py_exec_tools_toolchain; mismatching config settings: is_exec_tools_toolchain_enabled
      ToolchainResolution:   Rejected toolchain @@[unknown repo 'python_3_11_4_i386-unknown-linux-gnu' requested from @@rules_python~~python~pythons_hub]//:py_exec_tools_toolchain; mismatching config settings: is_exec_tools_toolchain_enabled
      ToolchainResolution:   Rejected toolchain @@rules_python~~python~python_3_11_4_ppc64le-unknown-linux-gnu//:py_exec_tools_toolchain; mismatching config settings: is_exec_tools_toolchain_enabled
      ToolchainResolution:   Rejected toolchain @@[unknown repo 'python_3_11_4_riscv64-unknown-linux-gnu' requested from @@rules_python~~python~pythons_hub]//:py_exec_tools_toolchain; mismatching config settings: is_exec_tools_toolchain_enabled
      ToolchainResolution:   Rejected toolchain @@rules_python~~python~python_3_11_4_s390x-unknown-linux-gnu//:py_exec_tools_toolchain; mismatching config settings: is_exec_tools_toolchain_enabled
      ToolchainResolution:   Rejected toolchain @@rules_python~~python~python_3_11_4_x86_64-apple-darwin//:py_exec_tools_toolchain; mismatching config settings: is_exec_tools_toolchain_enabled
      ToolchainResolution:   Rejected toolchain @@rules_python~~python~python_3_11_4_x86_64-pc-windows-msvc//:py_exec_tools_toolchain; mismatching config settings: is_exec_tools_toolchain_enabled
      ToolchainResolution:   Rejected toolchain @@rules_python~~python~python_3_11_4_x86_64-unknown-linux-gnu//:py_exec_tools_toolchain; mismatching config settings: is_exec_tools_toolchain_enabled
      ToolchainResolution: No @@rules_python~//python:exec_tools_toolchain_type toolchain found for target platform @@platforms//host:host.
INFO: ToolchainResolution: Performing resolution of @@bazel_tools//tools/python:toolchain_type for target platform @@platforms//host:host
      ToolchainResolution:   Rejected toolchain @@rules_python~~python~python_3_11_aarch64-apple-darwin//:python_runtimes; mismatching config settings: _0000_python_3_11_aarch64-apple-darwin_3.11.9_1
      ToolchainResolution:   Rejected toolchain @@rules_python~~python~python_3_11_aarch64-unknown-linux-gnu//:python_runtimes; mismatching config settings: _0000_python_3_11_aarch64-unknown-linux-gnu_3.11.9_1
      ToolchainResolution:   Rejected toolchain @@[unknown repo 'python_3_11_armv7-unknown-linux-gnu' requested from @@rules_python~~python~pythons_hub]//:python_runtimes; mismatching config settings: _0000_python_3_11_armv7-unknown-linux-gnu_3.11.9_1
      ToolchainResolution:   Rejected toolchain @@[unknown repo 'python_3_11_i386-unknown-linux-gnu' requested from @@rules_python~~python~pythons_hub]//:python_runtimes; mismatching config settings: _0000_python_3_11_i386-unknown-linux-gnu_3.11.9_1
      ToolchainResolution:   Rejected toolchain @@rules_python~~python~python_3_11_ppc64le-unknown-linux-gnu//:python_runtimes; mismatching config settings: _0000_python_3_11_ppc64le-unknown-linux-gnu_3.11.9_1
      ToolchainResolution:   Rejected toolchain @@[unknown repo 'python_3_11_riscv64-unknown-linux-gnu' requested from @@rules_python~~python~pythons_hub]//:python_runtimes; mismatching config settings: _0000_python_3_11_riscv64-unknown-linux-gnu_3.11.9_1
      ToolchainResolution:   Rejected toolchain @@rules_python~~python~python_3_11_s390x-unknown-linux-gnu//:python_runtimes; mismatching config settings: _0000_python_3_11_s390x-unknown-linux-gnu_3.11.9_1
      ToolchainResolution:   Rejected toolchain @@rules_python~~python~python_3_11_x86_64-apple-darwin//:python_runtimes; mismatching config settings: _0000_python_3_11_x86_64-apple-darwin_3.11.9_1
      ToolchainResolution:   Rejected toolchain @@rules_python~~python~python_3_11_x86_64-pc-windows-msvc//:python_runtimes; mismatching config settings: _0000_python_3_11_x86_64-pc-windows-msvc_3.11.9_1
      ToolchainResolution:   Rejected toolchain @@rules_python~~python~python_3_11_x86_64-unknown-linux-gnu//:python_runtimes; mismatching config settings: _0000_python_3_11_x86_64-unknown-linux-gnu_3.11.9_1
      ToolchainResolution:   Rejected toolchain @@rules_python~~python~python_3_8_aarch64-apple-darwin//:python_runtimes; mismatching config settings: _0001_python_3_8_aarch64-apple-darwin_3.8.19_1
      ToolchainResolution:   Rejected toolchain @@rules_python~~python~python_3_8_aarch64-unknown-linux-gnu//:python_runtimes; mismatching config settings: _0001_python_3_8_aarch64-unknown-linux-gnu_3.8.19_1
      ToolchainResolution:   Rejected toolchain @@[unknown repo 'python_3_8_armv7-unknown-linux-gnu' requested from @@rules_python~~python~pythons_hub]//:python_runtimes; mismatching config settings: _0001_python_3_8_armv7-unknown-linux-gnu_3.8.19_1
      ToolchainResolution:   Rejected toolchain @@[unknown repo 'python_3_8_i386-unknown-linux-gnu' requested from @@rules_python~~python~pythons_hub]//:python_runtimes; mismatching config settings: _0001_python_3_8_i386-unknown-linux-gnu_3.8.19_1
      ToolchainResolution:   Rejected toolchain @@[unknown repo 'python_3_8_ppc64le-unknown-linux-gnu' requested from @@rules_python~~python~pythons_hub]//:python_runtimes; mismatching config settings: _0001_python_3_8_ppc64le-unknown-linux-gnu_3.8.19_1
      ToolchainResolution:   Rejected toolchain @@[unknown repo 'python_3_8_riscv64-unknown-linux-gnu' requested from @@rules_python~~python~pythons_hub]//:python_runtimes; mismatching config settings: _0001_python_3_8_riscv64-unknown-linux-gnu_3.8.19_1
      ToolchainResolution:   Rejected toolchain @@[unknown repo 'python_3_8_s390x-unknown-linux-gnu' requested from @@rules_python~~python~pythons_hub]//:python_runtimes; mismatching config settings: _0001_python_3_8_s390x-unknown-linux-gnu_3.8.19_1
      ToolchainResolution:   Rejected toolchain @@rules_python~~python~python_3_8_x86_64-apple-darwin//:python_runtimes; mismatching config settings: _0001_python_3_8_x86_64-apple-darwin_3.8.19_1
      ToolchainResolution:   Rejected toolchain @@rules_python~~python~python_3_8_x86_64-pc-windows-msvc//:python_runtimes; mismatching config settings: _0001_python_3_8_x86_64-pc-windows-msvc_3.8.19_1
      ToolchainResolution:   Rejected toolchain @@rules_python~~python~python_3_8_x86_64-unknown-linux-gnu//:python_runtimes; mismatching config settings: _0001_python_3_8_x86_64-unknown-linux-gnu_3.8.19_1
      ToolchainResolution:   Rejected toolchain @@rules_python~~python~python_3_9_aarch64-apple-darwin//:python_runtimes; mismatching config settings: _0002_python_3_9_aarch64-apple-darwin_3.9.19_1
      ToolchainResolution:   Rejected toolchain @@rules_python~~python~python_3_9_aarch64-unknown-linux-gnu//:python_runtimes; mismatching config settings: _0002_python_3_9_aarch64-unknown-linux-gnu_3.9.19_1
      ToolchainResolution:   Rejected toolchain @@[unknown repo 'python_3_9_armv7-unknown-linux-gnu' requested from @@rules_python~~python~pythons_hub]//:python_runtimes; mismatching config settings: _0002_python_3_9_armv7-unknown-linux-gnu_3.9.19_1
      ToolchainResolution:   Rejected toolchain @@[unknown repo 'python_3_9_i386-unknown-linux-gnu' requested from @@rules_python~~python~pythons_hub]//:python_runtimes; mismatching config settings: _0002_python_3_9_i386-unknown-linux-gnu_3.9.19_1
      ToolchainResolution:   Rejected toolchain @@rules_python~~python~python_3_9_ppc64le-unknown-linux-gnu//:python_runtimes; mismatching config settings: _0002_python_3_9_ppc64le-unknown-linux-gnu_3.9.19_1
      ToolchainResolution:   Rejected toolchain @@[unknown repo 'python_3_9_riscv64-unknown-linux-gnu' requested from @@rules_python~~python~pythons_hub]//:python_runtimes; mismatching config settings: _0002_python_3_9_riscv64-unknown-linux-gnu_3.9.19_1
      ToolchainResolution:   Rejected toolchain @@rules_python~~python~python_3_9_s390x-unknown-linux-gnu//:python_runtimes; mismatching config settings: _0002_python_3_9_s390x-unknown-linux-gnu_3.9.19_1
      ToolchainResolution:   Rejected toolchain @@rules_python~~python~python_3_9_x86_64-apple-darwin//:python_runtimes; mismatching config settings: _0002_python_3_9_x86_64-apple-darwin_3.9.19_1
      ToolchainResolution:   Rejected toolchain @@rules_python~~python~python_3_9_x86_64-pc-windows-msvc//:python_runtimes; mismatching config settings: _0002_python_3_9_x86_64-pc-windows-msvc_3.9.19_1
      ToolchainResolution:   Rejected toolchain @@rules_python~~python~python_3_9_x86_64-unknown-linux-gnu//:python_runtimes; mismatching config settings: _0002_python_3_9_x86_64-unknown-linux-gnu_3.9.19_1
      ToolchainResolution:   Rejected toolchain @@rules_python~~python~python_3_10_aarch64-apple-darwin//:python_runtimes; mismatching config settings: _0003_python_3_10_aarch64-apple-darwin_3.10.14_1
      ToolchainResolution:   Rejected toolchain @@rules_python~~python~python_3_10_aarch64-unknown-linux-gnu//:python_runtimes; mismatching config settings: _0003_python_3_10_aarch64-unknown-linux-gnu_3.10.14_1
      ToolchainResolution:   Rejected toolchain @@[unknown repo 'python_3_10_armv7-unknown-linux-gnu' requested from @@rules_python~~python~pythons_hub]//:python_runtimes; mismatching config settings: _0003_python_3_10_armv7-unknown-linux-gnu_3.10.14_1
      ToolchainResolution:   Rejected toolchain @@[unknown repo 'python_3_10_i386-unknown-linux-gnu' requested from @@rules_python~~python~pythons_hub]//:python_runtimes; mismatching config settings: _0003_python_3_10_i386-unknown-linux-gnu_3.10.14_1
      ToolchainResolution:   Rejected toolchain @@rules_python~~python~python_3_10_ppc64le-unknown-linux-gnu//:python_runtimes; mismatching config settings: _0003_python_3_10_ppc64le-unknown-linux-gnu_3.10.14_1
      ToolchainResolution:   Rejected toolchain @@[unknown repo 'python_3_10_riscv64-unknown-linux-gnu' requested from @@rules_python~~python~pythons_hub]//:python_runtimes; mismatching config settings: _0003_python_3_10_riscv64-unknown-linux-gnu_3.10.14_1
      ToolchainResolution:   Rejected toolchain @@rules_python~~python~python_3_10_s390x-unknown-linux-gnu//:python_runtimes; mismatching config settings: _0003_python_3_10_s390x-unknown-linux-gnu_3.10.14_1
      ToolchainResolution:   Rejected toolchain @@rules_python~~python~python_3_10_x86_64-apple-darwin//:python_runtimes; mismatching config settings: _0003_python_3_10_x86_64-apple-darwin_3.10.14_1
      ToolchainResolution:   Rejected toolchain @@rules_python~~python~python_3_10_x86_64-pc-windows-msvc//:python_runtimes; mismatching config settings: _0003_python_3_10_x86_64-pc-windows-msvc_3.10.14_1
      ToolchainResolution:   Rejected toolchain @@rules_python~~python~python_3_10_x86_64-unknown-linux-gnu//:python_runtimes; mismatching config settings: _0003_python_3_10_x86_64-unknown-linux-gnu_3.10.14_1
      ToolchainResolution:   Rejected toolchain @@rules_python~~python~python_3_12_aarch64-apple-darwin//:python_runtimes; mismatching config settings: _0004_python_3_12_aarch64-apple-darwin_3.12.3_1
      ToolchainResolution:   Rejected toolchain @@rules_python~~python~python_3_12_aarch64-unknown-linux-gnu//:python_runtimes; mismatching config settings: _0004_python_3_12_aarch64-unknown-linux-gnu_3.12.3_1
      ToolchainResolution:   Rejected toolchain @@[unknown repo 'python_3_12_armv7-unknown-linux-gnu' requested from @@rules_python~~python~pythons_hub]//:python_runtimes; mismatching config settings: _0004_python_3_12_armv7-unknown-linux-gnu_3.12.3_1
      ToolchainResolution:   Rejected toolchain @@[unknown repo 'python_3_12_i386-unknown-linux-gnu' requested from @@rules_python~~python~pythons_hub]//:python_runtimes; mismatching config settings: _0004_python_3_12_i386-unknown-linux-gnu_3.12.3_1
      ToolchainResolution:   Rejected toolchain @@rules_python~~python~python_3_12_ppc64le-unknown-linux-gnu//:python_runtimes; mismatching config settings: _0004_python_3_12_ppc64le-unknown-linux-gnu_3.12.3_1
      ToolchainResolution:   Rejected toolchain @@[unknown repo 'python_3_12_riscv64-unknown-linux-gnu' requested from @@rules_python~~python~pythons_hub]//:python_runtimes; mismatching config settings: _0004_python_3_12_riscv64-unknown-linux-gnu_3.12.3_1
      ToolchainResolution:   Rejected toolchain @@rules_python~~python~python_3_12_s390x-unknown-linux-gnu//:python_runtimes; mismatching config settings: _0004_python_3_12_s390x-unknown-linux-gnu_3.12.3_1
      ToolchainResolution:   Rejected toolchain @@rules_python~~python~python_3_12_x86_64-apple-darwin//:python_runtimes; mismatching config settings: _0004_python_3_12_x86_64-apple-darwin_3.12.3_1
      ToolchainResolution:   Rejected toolchain @@rules_python~~python~python_3_12_x86_64-pc-windows-msvc//:python_runtimes; mismatching config settings: _0004_python_3_12_x86_64-pc-windows-msvc_3.12.3_1
      ToolchainResolution:   Rejected toolchain @@rules_python~~python~python_3_12_x86_64-unknown-linux-gnu//:python_runtimes; mismatching config settings: _0004_python_3_12_x86_64-unknown-linux-gnu_3.12.3_1
      ToolchainResolution:   Toolchain @@rules_python~~python~python_3_11_4_aarch64-apple-darwin//:python_runtimes is compatible with target plaform, searching for execution platforms:
      ToolchainResolution:     Compatible execution platform @@platforms//host:host
      ToolchainResolution:   All execution platforms have been assigned a @@bazel_tools//tools/python:toolchain_type toolchain, stopping
      ToolchainResolution: Recap of selected @@bazel_tools//tools/python:toolchain_type toolchains for target platform @@platforms//host:host:
      ToolchainResolution:   Selected @@rules_python~~python~python_3_11_4_aarch64-apple-darwin//:python_runtimes to run on execution platform @@platforms//host:host
INFO: ToolchainResolution: Target platform @@platforms//host:host: Selected execution platform @@platforms//host:host, type @@bazel_tools//tools/python:toolchain_type -> toolchain @@rules_python~~python~python_3_11_4_aarch64-apple-darwin//:python_runtimes
INFO: ToolchainResolution: Target platform @@platforms//host:host: Selected execution platform @@platforms//host:host, 
INFO: ToolchainResolution: Target platform @@platforms//host:host: Selected execution platform @@platforms//host:host, 
INFO: ToolchainResolution: Target platform @@platforms//host:host: Selected execution platform @@platforms//host:host, 
INFO: ToolchainResolution: Target platform @@platforms//host:host: Selected execution platform @@platforms//host:host, 
INFO: ToolchainResolution: Target platform @@platforms//host:host: Selected execution platform @@platforms//host:host, 
INFO: Analyzed target //tools/pre-commit:pre-commit (0 packages loaded, 22922 targets configured).
INFO: Found 1 target...
Target //tools/pre-commit:pre-commit up-to-date:
  /private/var/tmp/_bazel_ewhauser/c1fee43d9f70be2c9377b78115996411/execroot/_main/bazel-out/darwin_arm64-fastbuild/bin/tools/pre-commit/pre-commit
INFO: Elapsed time: 0.398s, Critical Path: 0.02s
INFO: 1 process: 1 internal.
INFO: Build completed successfully, 1 total action

The other piece of information I can give is that the repro seems to be:

  1. Run bazel build //target
  2. Run bazel run //target

and the dependent repositories are invalidated. I've tried to extract this into a simple repo without luck yet.

@rickeylev
Copy link
Collaborator

That is a weird commit to be the cause. All that local toolchain stuff isn't active.

Maybe the changes to repo_utils.bzl? It introduces some getenv() and watch() calls. Maybe something about that is over-triggering?

@rickeylev
Copy link
Collaborator

Looking through the code, the new watch/getenv calls I see are:

  • which() calls getenv(PATH).
  • which() calls watch(binary).

which() is called as part some of the runtime repo setup, iirc.

In repo_utils (https://github.com/bazelbuild/rules_python/blob/main/python/private/repo_utils.bzl), if you:

  • Comment out L267, replace with path = 'junk'
  • Comment out L270

Does the invalidation go away?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants