From 33c3b676b61501f0fd44d27f86f1845bfed5bc40 Mon Sep 17 00:00:00 2001 From: Ignas Anikevicius <240938+aignas@users.noreply.github.com> Date: Fri, 18 Apr 2025 08:38:02 +0900 Subject: [PATCH] exp(uv): support uv lock build action on Google RBE Work towards #1975 --- python/uv/private/lock.bzl | 5 +++++ tests/uv/lock/lock_tests.bzl | 6 ------ 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/python/uv/private/lock.bzl b/python/uv/private/lock.bzl index 2731d6b009..a227676250 100644 --- a/python/uv/private/lock.bzl +++ b/python/uv/private/lock.bzl @@ -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 [ diff --git a/tests/uv/lock/lock_tests.bzl b/tests/uv/lock/lock_tests.bzl index 35c7c19328..fd5867a45c 100644 --- a/tests/uv/lock/lock_tests.bzl +++ b/tests/uv/lock/lock_tests.bzl @@ -35,9 +35,6 @@ 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", ) @@ -45,9 +42,6 @@ def lock_test_suite(name): 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(