From d469800b1eda603063e3eda1c3dcf8a6b367914f Mon Sep 17 00:00:00 2001 From: Varun Gandhi Date: Tue, 9 Aug 2022 11:04:30 +0800 Subject: [PATCH] ci: Save Bazel execution logs for debugging. --- .buildkite/pipeline.yaml | 1 + .buildkite/test-indexer.sh | 3 +++ 2 files changed, 4 insertions(+) diff --git a/.buildkite/pipeline.yaml b/.buildkite/pipeline.yaml index aa11e32748..b4c314b408 100644 --- a/.buildkite/pipeline.yaml +++ b/.buildkite/pipeline.yaml @@ -34,6 +34,7 @@ steps: command: .buildkite/test-indexer.sh artifact_paths: - "_out_/profile*.json" + - "_out_/*.log" agents: queue: stateless env: diff --git a/.buildkite/test-indexer.sh b/.buildkite/test-indexer.sh index 1a5377e48c..5b3cc69700 100755 --- a/.buildkite/test-indexer.sh +++ b/.buildkite/test-indexer.sh @@ -59,6 +59,7 @@ build_args=( ./bazel build \ --experimental_generate_json_trace_profile \ --profile=_out_/profile_build.json \ + --experimental_execution_log_file=_out_/build.log \ "${build_args[@]}" || err=$? echo "+++ Running snapshot tests" @@ -73,6 +74,7 @@ test_args=( ./bazel test \ --experimental_generate_json_trace_profile \ --profile=_out_/profile_snapshot_tests.json \ + --experimental_execution_log_file=_out_/snapshot_test.log \ --test_summary=terse \ --test_output=errors \ "${test_args[@]}" || err=$? @@ -98,6 +100,7 @@ test_args=( ./bazel test \ --experimental_generate_json_trace_profile \ --profile=_out_/profile_repo_tests.json \ + --experimental_execution_log_file=_out_/repo_test.log \ --test_summary=terse \ --test_output=errors \ "${test_args[@]}" || err=$?