Skip to content

Commit

Permalink
Stress test
Browse files Browse the repository at this point in the history
  • Loading branch information
aherrmann committed Oct 21, 2021
1 parent 355352f commit b62f16c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .bazelrc
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ build --remote_upload_local_results=false
# Do still push local build results to the local disk cache.
build --incompatible_remote_results_ignore_disk=true
# Enable the disk cache in addition to the http cache.
build:linux --disk_cache=.bazel-cache/disk
build:darwin --disk_cache=.bazel-cache/disk
#build:linux --disk_cache=.bazel-cache/disk
#build:darwin --disk_cache=.bazel-cache/disk
# `--repository_cache` must be repeated for all relevant actions.
# TODO: use `common` starting from Bazel 2.2.0
# See https://github.com/bazelbuild/bazel/issues/11232
Expand Down
6 changes: 4 additions & 2 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,10 @@ if [ -n "$SANDBOX_PID" ]; then
echo $SANDBOX_PID | xargs kill
fi

bazel clean

# Bazel test only builds targets that are dependencies of a test suite so do a full build first.
bazel build //... \
bazel build //... -j 100 \
--build_tag_filters "$tag_filter" \
--profile build-profile.json \
--experimental_profile_include_target_label \
Expand Down Expand Up @@ -68,7 +70,7 @@ stop_postgresql # in case it's running from a previous build
start_postgresql

# Run the tests.
bazel test //... \
bazel test //... -j 100 \
--build_tag_filters "$tag_filter" \
--test_tag_filters "$tag_filter" \
--test_env "POSTGRESQL_HOST=${POSTGRESQL_HOST}" \
Expand Down
4 changes: 2 additions & 2 deletions compatibility/.bazelrc
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ build --remote_upload_local_results=false
# Do still push local build results to the local disk cache.
build --incompatible_remote_results_ignore_disk=true
# Enable the disk cache in addition to the http cache.
build:linux --disk_cache=.bazel-cache/disk
build:darwin --disk_cache=.bazel-cache/disk
#build:linux --disk_cache=.bazel-cache/disk
#build:darwin --disk_cache=.bazel-cache/disk
# `--repository_cache` must be repeated for all relevant actions.
# TODO: use `common` starting from Bazel 2.2.0
# See https://github.com/bazelbuild/bazel/issues/11232
Expand Down

0 comments on commit b62f16c

Please sign in to comment.