Skip to content

Conversation

@dzbarsky
Copy link
Collaborator

  • Avoid depset flattening
  • Avoid explicit .path usage so we can enable path-mapping and dedupe the action across configs
  • Drive-by upgrade rules_rs so we can stop cloning multiple copies of UV repo

Changes are visible to end-users: no

Test plan

  • Covered by existing test cases

@dzbarsky dzbarsky requested a review from arrdem November 23, 2025 16:26
site_packages_pth_file,
env_file,
venv_tool,
] + py_toolchain.files.to_list()),
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

py_toolchain should already be in rfs

@aspect-workflows
Copy link

aspect-workflows bot commented Nov 23, 2025

test-os:linux-bzl:8 (Test)

⚠️ Buildkite build #1439 failed.

@@+uv+whl_install__pypi__default__bravado_core//:actual_install failed to build

unpack failed: error executing Action command (from target @@+uv+whl_install__pypi__default__bravado_core//:actual_install) bazel-out/k8-opt-exec-ST-a2b2cf5b3f92/bin/py/tools/unpack_bin/unpack --into bazel-out/k8-fastbuild/bin/external/+uv+whl_install__pypi__default__bravado_core/install --wheel ... (remaining 5 arguments skipped)
 
Use --sandbox_debug to see verbose messages from the sandbox and retain the sandbox build root for debugging
 
Error:   × Unable to run command:
  ├─▶ Didn't find exactly one wheel file to install!
  ╰─▶ got zero elements when exactly one was expected

//py/tests/py-binary:run_py_test_help failed to build

bash failed: error executing Genrule command (from target //py/tests/py-binary:run_py_test_help) /bin/bash -c ... (remaining 1 argument skipped)
 
Use --sandbox_debug to see verbose messages from the sandbox and retain the sandbox build root for debugging
 
Traceback (most recent call last):
  File "/mnt/ephemeral/output/rules_py/__main__/sandbox/linux-sandbox/913/execroot/_main/bazel-out/k8-opt-exec-ST-d57f47055a04/bin/external/+uv+venv__pypi__default/pytest/entrypoints/pytest.runfiles/+uv+venv__pypi__default/pytest/entrypoints/_pytest_entrypoint.py", line 2, in <module>
    from pytest import console_main
ModuleNotFoundError: No module named 'pytest'
Failed tests (5)
//py/tests/py-venv-standalone-interpreter:test [k8-fastbuild]                             🔗
//py/tests/py_venv_conflict:validate_import_roots [k8-fastbuild]                          🔗
//py/tests/py_venv_image_layer:py_amd64_image_command_test [k8-fastbuild]                 🔗
//py/tests/py_venv_image_layer:py_amd64_image_content_test [k8-fastbuild]                 🔗
//py/tests/py_venv_image_layer:py_arm64_image_content_test [k8-fastbuild]                 🔗

💡 To reproduce the build failures, run

bazel build @@+uv+whl_install__pypi__default__bravado_core//:actual_install //py/tests/py-binary:run_py_test_help

💡 To reproduce the test failures, run

bazel test //py/tests/py_venv_image_layer:py_amd64_image_content_test //py/tests/py_venv_image_layer:py_amd64_image_command_test //py/tests/py_venv_conflict:validate_import_roots //py/tests/py_venv_image_layer:py_arm64_image_content_test //py/tests/py-venv-standalone-interpreter:test

test-os:linux-bzl:latest (Test)

⚠️ Buildkite build #1439 failed.

//py/tests/py-binary:run_py_test_help failed to build

bash failed: error executing Genrule command (from target //py/tests/py-binary:run_py_test_help) /bin/bash -c ... (remaining 1 argument skipped)
 
Use --sandbox_debug to see verbose messages from the sandbox and retain the sandbox build root for debugging
 
Traceback (most recent call last):
  File "/mnt/ephemeral/output/rules_py/__main__/sandbox/linux-sandbox/793/execroot/_main/bazel-out/k8-opt-exec-ST-d57f47055a04/bin/external/+uv+venv__pypi__default/pytest/entrypoints/pytest.runfiles/+uv+venv__pypi__default/pytest/entrypoints/_pytest_entrypoint.py", line 2, in <module>
    from pytest import console_main
ModuleNotFoundError: No module named 'pytest'

@@+uv+whl_install__pypi__default__bravado_core//:actual_install failed to build

unpack failed: error executing Action command (from target @@+uv+whl_install__pypi__default__bravado_core//:actual_install) bazel-out/k8-opt-exec-ST-a2b2cf5b3f92/bin/py/tools/unpack_bin/unpack --into bazel-out/k8-fastbuild/bin/external/+uv+whl_install__pypi__default__bravado_core/install --wheel ... (remaining 5 arguments skipped)
 
Use --sandbox_debug to see verbose messages from the sandbox and retain the sandbox build root for debugging
 
Error:   × Unable to run command:
  ├─▶ Didn't find exactly one wheel file to install!
  ╰─▶ got zero elements when exactly one was expected
Failed tests (5)
//py/tests/py-venv-standalone-interpreter:test [k8-fastbuild]                             🔗
//py/tests/py_venv_conflict:validate_import_roots [k8-fastbuild]                          🔗
//py/tests/py_venv_image_layer:py_amd64_image_command_test [k8-fastbuild]                 🔗
//py/tests/py_venv_image_layer:py_amd64_image_content_test [k8-fastbuild]                 🔗
//py/tests/py_venv_image_layer:py_arm64_image_content_test [k8-fastbuild]                 🔗

💡 To reproduce the build failures, run

bazel build //py/tests/py-binary:run_py_test_help @@+uv+whl_install__pypi__default__bravado_core//:actual_install

💡 To reproduce the test failures, run

bazel test //py/tests/py_venv_image_layer:py_arm64_image_content_test //py/tests/py_venv_conflict:validate_import_roots //py/tests/py_venv_image_layer:py_amd64_image_command_test //py/tests/py_venv_image_layer:py_amd64_image_content_test //py/tests/py-venv-standalone-interpreter:test

test-os:linux-bzl:8 (Test)

e2e

⚠️ Buildkite build #1439 failed.

Failed tests (4)
//cases/uv-deps-650/airflow:airflow [k8-fastbuild-ST-ba1312b31f78]                        🔗
//cases/uv-deps-650/crossbuild:app_amd64_layers_test [k8-fastbuild]                       🔗
//cases/uv-deps-650/crossbuild:app_arm64_layers_test [k8-fastbuild]                       🔗
//cases/uv-deps-650/say:say [k8-fastbuild-ST-934aa07688c9]                                🔗

💡 To reproduce the test failures, run

bazel test //cases/uv-deps-650/crossbuild:app_amd64_layers_test //cases/uv-deps-650/airflow:airflow //cases/uv-deps-650/crossbuild:app_arm64_layers_test //cases/uv-deps-650/say:say

test-os:linux-bzl:latest (Test)

e2e

⚠️ Buildkite build #1439 failed.

Failed tests (4)
//cases/uv-deps-650/airflow:airflow [k8-fastbuild-ST-ba1312b31f78]                        🔗
//cases/uv-deps-650/crossbuild:app_amd64_layers_test [k8-fastbuild]                       🔗
//cases/uv-deps-650/crossbuild:app_arm64_layers_test [k8-fastbuild]                       🔗
//cases/uv-deps-650/say:say [k8-fastbuild-ST-934aa07688c9]                                🔗

💡 To reproduce the test failures, run

bazel test //cases/uv-deps-650/crossbuild:app_arm64_layers_test //cases/uv-deps-650/crossbuild:app_amd64_layers_test //cases/uv-deps-650/say:say //cases/uv-deps-650/airflow:airflow

test-os:linux-bzl:8 (Test)

examples/uv_pip_compile

All tests were cache hits

1 test (100.0%) was fully cached saving 335ms.


test-os:linux-bzl:latest (Test)

examples/uv_pip_compile

All tests were cache hits

1 test (100.0%) was fully cached saving 335ms.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants