Skip to content

Commit

Permalink
Switch bazel exec logs to json format (digital-asset#11430)
Browse files Browse the repository at this point in the history
* Switch bazel exec logs to json format

changelog_begin
changelog_end

* change file extension

changelog_begin
changelog_end
  • Loading branch information
cocreature authored Oct 27, 2021
1 parent 12e782b commit 68d7f83
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
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 `
`-`-experimental_execution_log_file ${ARTIFACT_DIRS}/logs/build_execution_windows.log
`-`-execution_log_json_file ${ARTIFACT_DIRS}/logs/build_execution_windows.json

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 \
--experimental_execution_log_file "$ARTIFACT_DIRS/logs/build_execution${execution_log_postfix}.log"
--execution_log_json_file "$ARTIFACT_DIRS/logs/build_execution${execution_log_postfix}.json"

# 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 \
--experimental_execution_log_file "$ARTIFACT_DIRS/logs/test_execution${execution_log_postfix}.log"
--execution_log_json_file "$ARTIFACT_DIRS/logs/test_execution${execution_log_postfix}.json"

# Make sure that Bazel query works.
bazel query 'deps(//...)' >/dev/null
Expand Down

0 comments on commit 68d7f83

Please sign in to comment.