Skip to content

Commit

Permalink
Switch back to binary execution logs (digital-asset#11440)
Browse files Browse the repository at this point in the history
We are seeing lots of OOM issues on Windows after having switched to
the JSON format. They seem to happen after the actual build has
happened while writing out the exec log so trying to revert back to
the binary format seems promising.

changelog_begin
changelog_end
  • Loading branch information
cocreature authored Oct 28, 2021
1 parent ac28e61 commit 15cb840
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .bazelrc
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,12 @@ test:oracle --repo_env DAML_ORACLE_TESTING=true --test_env ORACLE_USERNAME --tes
# This will become the default in a future Bazel release.
build --experimental_strict_action_env

# Drop the heap size of Bazel to 3 GB and force TLS 1.2.
# Drop the heap size of Bazel to 2 GB and force TLS 1.2.
# With TLS 1.3, we run into the following error on Darwin.
# > No subject alternative DNS name matching github-releases.githubusercontent.com found.
# It looks like this is a result of SNI being broken on TLS 1.3 which results
# in us getting a certificate for githubassets.com instead.
startup --host_jvm_args=-Xms3g --host_jvm_args=-Xmx3g --host_jvm_args=-Djdk.tls.client.protocols=TLSv1.2
startup --host_jvm_args=-Xms2g --host_jvm_args=-Xmx2g --host_jvm_args=-Djdk.tls.client.protocols=TLSv1.2

# Enable sandboxing and caching for exclusive tests
build --incompatible_exclusive_test_sandboxed
Expand Down
2 changes: 1 addition & 1 deletion build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ bazel build //... `
`-`-experimental_profile_include_target_label `
`-`-build_event_json_file build-events.json `
`-`-build_event_publish_all_actions `
`-`-execution_log_json_file ${ARTIFACT_DIRS}/logs/build_execution_windows.json
`-`-experimental_execution_log_file ${ARTIFACT_DIRS}/logs/build_execution_windows.log

bazel shutdown

Expand Down
4 changes: 2 additions & 2 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ bazel build //... \
--experimental_profile_include_target_label \
--build_event_json_file build-events.json \
--build_event_publish_all_actions \
--execution_log_json_file "$ARTIFACT_DIRS/logs/build_execution${execution_log_postfix}.json"
--experimental_execution_log_file "$ARTIFACT_DIRS/logs/build_execution${execution_log_postfix}.log"

# Set up a shared PostgreSQL instance.
export POSTGRESQL_ROOT_DIR="${TMPDIR:-/tmp}/daml/postgresql"
Expand Down Expand Up @@ -79,7 +79,7 @@ bazel test //... \
--experimental_profile_include_target_label \
--build_event_json_file test-events.json \
--build_event_publish_all_actions \
--execution_log_json_file "$ARTIFACT_DIRS/logs/test_execution${execution_log_postfix}.json"
--experimental_execution_log_file "$ARTIFACT_DIRS/logs/test_execution${execution_log_postfix}.log"

# Make sure that Bazel query works.
bazel query 'deps(//...)' >/dev/null
Expand Down
4 changes: 2 additions & 2 deletions compatibility/.bazelrc
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,12 @@ test:oracle --repo_env DAML_ORACLE_TESTING=true --test_env ORACLE_USERNAME --tes
# This will become the default in a future Bazel release.
build --experimental_strict_action_env

# Drop the heap size of Bazel to 3 GB and force TLS 1.2.
# Drop the heap size of Bazel to 2 GB and force TLS 1.2.
# With TLS 1.3, we run into the following error on Darwin.
# > No subject alternative DNS name matching github-releases.githubusercontent.com found.
# It looks like this is a result of SNI being broken on TLS 1.3 which results
# in us getting a certificate for githubassets.com instead.
startup --host_jvm_args=-Xms3g --host_jvm_args=-Xmx3g --host_jvm_args=-Djdk.tls.client.protocols=TLSv1.2
startup --host_jvm_args=-Xms2g --host_jvm_args=-Xmx2g --host_jvm_args=-Djdk.tls.client.protocols=TLSv1.2

# Enable sandboxing and caching for exclusive tests
build --incompatible_exclusive_test_sandboxed
Expand Down

0 comments on commit 15cb840

Please sign in to comment.