Skip to content

Commit

Permalink
Allow network for rules_java override
Browse files Browse the repository at this point in the history
  • Loading branch information
hvadehra committed Oct 18, 2023
1 parent 67e457e commit 21c709a
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 4 deletions.
24 changes: 20 additions & 4 deletions src/test/shell/bazel/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -323,6 +323,10 @@ sh_test(
"//src:java_tools_prebuilt.zip",
"@bazel_tools//tools/bash/runfiles",
],
tags = [
# bzlmod usage requires network
"requires-network",
],
)

sh_test(
Expand Down Expand Up @@ -530,7 +534,11 @@ sh_test(
"//src:java_tools_zip",
"//tools/test/CoverageOutputGenerator/java/com/google/devtools/coverageoutputgenerator:coverage_output_generator_repo",
],
tags = ["no_windows"],
tags = [
"no_windows",
# bzlmod usage requires network
"requires-network",
],
)
for java_version in JAVA_VERSIONS_COVERAGE
]
Expand Down Expand Up @@ -957,7 +965,11 @@ sh_test(
srcs = ["cc_integration_test.sh"],
data = [":test-deps"],
shard_count = 10,
tags = ["no_windows"],
tags = [
"no_windows",
# bzlmod usage requires network
"requires-network",
],
)

sh_test(
Expand Down Expand Up @@ -1118,7 +1130,10 @@ sh_test(
"@bazel_tools//tools/bash/runfiles",
],
exec_compatible_with = ["//:highcpu_machine"],
tags = ["block-network"],
tags = [
# bzlmod usage requires network
"requires-network",
],
)

sh_test(
Expand All @@ -1137,7 +1152,8 @@ sh_test(
],
exec_compatible_with = ["//:highcpu_machine"],
tags = [
"block-network",
# bzlmod usage requires network
"requires-network",
"no_windows",
],
)
Expand Down
4 changes: 4 additions & 0 deletions src/test/shell/bazel/android/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,8 @@ android_sh_test(
# See https://github.com/bazelbuild/bazel/issues/17784.
"no-remote",
"no_windows",
# bzlmod usage requires network
"requires-network",
],
)

Expand Down Expand Up @@ -130,6 +132,8 @@ android_sh_test(
# See https://github.com/bazelbuild/bazel/issues/17784.
"no-remote",
"no_windows",
# bzlmod usage requires network
"requires-network",
],
)

Expand Down

0 comments on commit 21c709a

Please sign in to comment.