Reset Windows cache (#8326)

changelog_begin
changelog_end
This commit is contained in:
Moritz Kiefer 2020-12-17 13:24:07 +01:00 committed by GitHub
parent a8776b0ba1
commit b32789025e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 1 deletions

View File

@ -48,6 +48,8 @@ function bazel() {
# which later causes issues on Bazel init (source forest creation) on Windows. A shutdown closes workers, # which later causes issues on Bazel init (source forest creation) on Windows. A shutdown closes workers,
# which is a workaround for this problem. # which is a workaround for this problem.
bazel shutdown 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 # Prefetch nodejs_dev_env to avoid permission denied errors on external/nodejs_dev_env/nodejs_dev_env/node.exe
# It isnt clear where exactly those errors are coming from. # It isnt clear where exactly those errors are coming from.

View File

@ -74,7 +74,7 @@ if is_windows; then
SUFFIX="${SUFFIX:0:3}" SUFFIX="${SUFFIX:0:3}"
echo "Platform suffix: $SUFFIX" echo "Platform suffix: $SUFFIX"
# We include an extra version at the end that we can bump manually. # We include an extra version at the end that we can bump manually.
CACHE_SUFFIX="$SUFFIX-v10" CACHE_SUFFIX="$SUFFIX-v11"
CACHE_URL="$CACHE_URL/$CACHE_SUFFIX" CACHE_URL="$CACHE_URL/$CACHE_SUFFIX"
echo "build:windows-ci --remote_http_cache=https://bazel-cache.da-ext.net/$CACHE_SUFFIX" >> .bazelrc.local echo "build:windows-ci --remote_http_cache=https://bazel-cache.da-ext.net/$CACHE_SUFFIX" >> .bazelrc.local
fi fi

View File

@ -37,6 +37,8 @@ function bazel() {
bazel shutdown bazel shutdown
# Temporary until nodes are reset
bazel clean --expunge
bazel fetch @nodejs_dev_env//... bazel fetch @nodejs_dev_env//...
bazel build ` bazel build `
`-`-experimental_execution_log_file ${ARTIFACT_DIRS}/build_execution_windows.log ` `-`-experimental_execution_log_file ${ARTIFACT_DIRS}/build_execution_windows.log `