Skip to content

exp(uv): support uv lock build action on Google RBE #2785

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

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions python/uv/private/lock.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,11 @@ def _lock_impl(ctx):
],
progress_message = "Creating a requirements.txt with uv: %{label}",
env = ctx.attr.env,
execution_requirements = {
# This is to support Google RBE service, PRs to support other RBE
# providers that do not break the existing ones are welcome.
"dockerNetwork": "standard",
},
)

return [
Expand Down
6 changes: 0 additions & 6 deletions tests/uv/lock/lock_tests.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -35,19 +35,13 @@ def lock_test_suite(name):
"testdata/build_constraints.txt",
"testdata/build_constraints2.txt",
],
# It seems that the CI remote executors for the RBE do not have network
# connectivity due to current CI setup.
tags = ["no-remote-exec"],
out = "testdata/requirements.txt",
)

lock(
name = "requirements_new_file",
srcs = ["testdata/requirements.in"],
out = "does_not_exist.txt",
# It seems that the CI remote executors for the RBE do not have network
# connectivity due to current CI setup.
tags = ["no-remote-exec"],
)

py_reconfig_test(
Expand Down