Skip to content

Commit f2372d0

Browse files
committed
debug bazel cpu rbe presubmit for windows
1 parent 165bb00 commit f2372d0

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

.github/workflows/bazel_cpu_rbe.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
name: Run Bazel CPU tests (RBE)
22

33
on:
4-
# pull_request:
5-
# branches:
6-
# - main
4+
pull_request:
5+
branches:
6+
- main
77
workflow_dispatch:
88
inputs:
99
halt-for-connection:
@@ -24,7 +24,7 @@ jobs:
2424
shell: bash
2525
strategy:
2626
matrix:
27-
runner: ["windows-x86-n2-64", "linux-x86-n2-16", "linux-arm64-t2a-16"]
27+
runner: ["windows-x86-n2-64"] #, "linux-x86-n2-16", "linux-arm64-t2a-16"]
2828

2929
runs-on: ${{ matrix.runner }}
3030
container: ${{ (contains(matrix.runner, 'linux-x86') && 'us-central1-docker.pkg.dev/tensorflow-sigs/tensorflow/build:670606426-python3.12') ||

ci/run_bazel_test_cpu_rbe.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,13 @@ source "ci/utilities/setup_build_environment.sh"
3636
os=$(uname -s | awk '{print tolower($0)}')
3737
arch=$(uname -m)
3838

39+
# Adjust the values when running on Windows x86 to match the config in
40+
# .bazelrc
41+
if [[ $os =~ "msys_nt" ]] && [[ $arch == "x86_64" ]]; then
42+
os="windows"
43+
arch="amd64"
44+
fi
45+
3946
# When running on Mac or Linux Aarch64, we only build the test targets and
4047
# not run them. These platforms do not have native RBE support so we
4148
# RBE cross-compile them on remote Linux x86 machines. As the tests still

0 commit comments

Comments
 (0)