From f98b92d7ba0bc316fe0bd9ece33d26e90b617899 Mon Sep 17 00:00:00 2001 From: Gary Verhaegen Date: Wed, 16 Sep 2020 22:38:40 +0200 Subject: [PATCH] reset Windows cache (#7423) CHANGELOG_BEGIN CHANGELOG_END --- build.ps1 | 2 ++ ci/configure-bazel.sh | 2 +- compatibility/build-release-artifacts-windows.ps1 | 2 ++ compatibility/test-windows.ps1 | 2 ++ 4 files changed, 7 insertions(+), 1 deletion(-) diff --git a/build.ps1 b/build.ps1 index 062a4e22e0..17dcf92951 100644 --- a/build.ps1 +++ b/build.ps1 @@ -48,6 +48,8 @@ function bazel() { # which later causes issues on Bazel init (source forest creation) on Windows. A shutdown closes workers, # which is a workaround for this problem. bazel shutdown +# Temporary until nodes are reset +bazel clean --expunge # Prefetch nodejs_dev_env to avoid permission denied errors on external/nodejs_dev_env/nodejs_dev_env/node.exe # It isn’t clear where exactly those errors are coming from. diff --git a/ci/configure-bazel.sh b/ci/configure-bazel.sh index ea212fa685..46283a6417 100755 --- a/ci/configure-bazel.sh +++ b/ci/configure-bazel.sh @@ -74,7 +74,7 @@ if is_windows; then SUFFIX="${SUFFIX:0:3}" echo "Platform suffix: $SUFFIX" # We include an extra version at the end that we can bump manually. - CACHE_SUFFIX="$SUFFIX-v9" + CACHE_SUFFIX="$SUFFIX-v10" CACHE_URL="$CACHE_URL/$CACHE_SUFFIX" echo "build:windows-ci --remote_http_cache=https://bazel-cache.da-ext.net/$CACHE_SUFFIX" >> .bazelrc.local fi diff --git a/compatibility/build-release-artifacts-windows.ps1 b/compatibility/build-release-artifacts-windows.ps1 index ed0facae8f..2d25dfba59 100644 --- a/compatibility/build-release-artifacts-windows.ps1 +++ b/compatibility/build-release-artifacts-windows.ps1 @@ -37,6 +37,8 @@ function bazel() { bazel shutdown +# Temporary until nodes are reset +bazel clean --expunge bazel fetch @nodejs_dev_env//... bazel build ` `-`-experimental_execution_log_file ${ARTIFACT_DIRS}/build_execution_windows.log ` diff --git a/compatibility/test-windows.ps1 b/compatibility/test-windows.ps1 index 85a77bdc38..04d37f09c0 100644 --- a/compatibility/test-windows.ps1 +++ b/compatibility/test-windows.ps1 @@ -45,6 +45,8 @@ cd compatibility cp ../.bazelrc .bazelrc bazel shutdown +# Temporary until nodes are reset +bazel clean --expunge bazel fetch @nodejs_dev_env//... bazel build //... bazel shutdown