Port Bazel CI wrappers to Python

This commit is contained in:
Adam Perry
2026-06-09 19:45:50 +00:00
parent a71e040df5
commit 28f1a29c56
12 changed files with 782 additions and 462 deletions
@@ -214,6 +214,20 @@ class RunBazelWithBuildBuddyTest(unittest.TestCase):
],
)
def test_bazel_command_can_explicitly_disable_remote_configuration(self) -> None:
self.assertEqual(
run_bazel_with_buildbuddy.bazel_command(
"query",
"//codex-rs/...",
env={
"BUILDBUDDY_API_KEY": "token",
"CODEX_BAZEL_BIN": "fake-bazel",
},
enable_remote_config=False,
),
["fake-bazel", "query", "//codex-rs/..."],
)
def test_main_preserves_spaced_argument_and_child_exit_status(self) -> None:
spaced_arg = (
r"--test_env=PATH=C:\Program Files\PowerShell\7;C:\Program Files\Git\bin"