bazelbuild / rules_python

Bazel Python Rules
https://rules-python.readthedocs.io
Apache License 2.0
534 stars 541 forks source link

Python toolchain cache invalidation #2283

Open ewhauser opened 1 month ago

ewhauser commented 1 month ago

🐞 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 commented 1 month ago

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

ewhauser commented 1 month ago

Yes, the hermetic interpreters are downloaded again and all the pip dependencies are reinstalled

On Wed, Oct 9, 2024 at 5:31 PM Richard Levasseur @.***> wrote:

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

— Reply to this email directly, view it on GitHub https://github.com/bazelbuild/rules_python/issues/2283#issuecomment-2403617542, or unsubscribe https://github.com/notifications/unsubscribe-auth/AABACPPIXUJ45BBMQV7CYJTZ2W4F3AVCNFSM6AAAAABPVPI5P6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMBTGYYTONJUGI . You are receiving this because you authored the thread.Message ID: @.***>

aignas commented 1 month ago

Does #2256 fix the cache invalidation you are seing?

ewhauser commented 1 month ago

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

aignas commented 3 weeks ago

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

ewhauser commented 3 weeks ago

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

ewhauser commented 3 weeks ago

I bisected and this is the offending commit: 68c30483f80a55870eb113e17ab21ff65d5b97ed

aignas commented 3 weeks ago

Interesting https://github.com/bazelbuild/rules_python/commit/68c30483f80a55870eb113e17ab21ff65d5b97ed would have been my last guess here. What is the toolchain matching log if you pass --toolchain_resolution_debug=python?

FYI: @rickeylev

ewhauser commented 3 weeks ago

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 commented 3 weeks ago

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 commented 3 weeks ago

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

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:

Does the invalidation go away?