-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Windows build: Enable RBE build in Windows CI (#11107)
Commit Message: Enable RBE build in Windows CI - Bumps envoy-build-tools and bazel-toolchains - Bumps envoy-build-ubuntu image tag - Running Windows CI via docker uses the same mechanism as Linux to find the image tag, the tags are the same for Windows and Linux images - Temporarily adds a patch to fix rules_go for Windows RBE issue executing batch scripts, see #11657 - Tags/fixes some additional tests that fail in CI Additional Description: N/A Risk Level: Low, but we may observe differences in performance of Windows CI running remotely, we may need to adjust the worker pool accordingly Testing: N/A Docs Changes: N/A Release Notes: N/A Fixes #10619 Signed-off-by: Sunjay Bhatia <[email protected]> Co-authored-by: William A Rowe Jr <[email protected]>
- Loading branch information
1 parent
84c35a7
commit 8614e83
Showing
14 changed files
with
79 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# | ||
# Bazel RBE on Windows GCP workers currently will not invoke cmd.exe batch files correctly | ||
# | ||
# Symptom is program not found 'bazel-out', because of the way that the CreateProcess command | ||
# is constructed by bazel with actions.run with forward slashes, e.g. the command | ||
# cmd.exe /c "bazel-out/host/bin/external/go_sdk/builder.exe.bat" | ||
# where cmd.exe on GCP is treating 'bazel-out' as the target, and /host as a command line switch. | ||
# This problem was not observed on Azure CI pipelines or locally by the developers. The eventual | ||
# fix is not specific to rules_go; this patch simply addresses immediate breakage and can be removed | ||
# once the underlying issue within Bazel/RBE is fixed. | ||
# See: | ||
# - https://github.com/bazelbuild/rules_go/pull/2542 | ||
# - https://github.com/envoyproxy/envoy/issues/11657 | ||
# | ||
diff --git a/go/private/rules/binary.bzl b/go/private/rules/binary.bzl | ||
index b88dfd96..e68b5ece 100644 | ||
--- a/go/private/rules/binary.bzl | ||
+++ b/go/private/rules/binary.bzl | ||
@@ -128,8 +128,9 @@ def _go_tool_binary_impl(ctx): | ||
content = cmd, | ||
) | ||
ctx.actions.run( | ||
- executable = bat, | ||
- inputs = sdk.libs + sdk.headers + sdk.tools + ctx.files.srcs + [sdk.go], | ||
+ executable = "cmd.exe", | ||
+ arguments = ["/S", "/C", bat.path.replace("/", "\\")], | ||
+ inputs = sdk.libs + sdk.headers + sdk.tools + ctx.files.srcs + [sdk.go, bat], | ||
outputs = [cout], | ||
env = {"GOROOT": sdk.root_file.dirname}, # NOTE(#2005): avoid realpath in sandbox | ||
mnemonic = "GoToolchainBinaryCompile", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters