-
Notifications
You must be signed in to change notification settings - Fork 791
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ci] Produce and upload bazel execution logs
Execution logs can be used to debug caching and understand better what bazel is doing. This commit introduces a general mecanism to upload those logs. Only convert the SW build and test step for now. Signed-off-by: Amaury Pouly <[email protected]>
- Loading branch information
Showing
2 changed files
with
30 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# Copyright lowRISC contributors. | ||
# Licensed under the Apache License, Version 2.0, see LICENSE for details. | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
# Azure template for publishing bazel execution logs so they can be analyzed | ||
# offline. | ||
# | ||
# This template expects that a variable $BAZEL_EXEC_LOG_ROOT is set and it | ||
# will upload a zip file containing all the files in this directory. | ||
|
||
steps: | ||
- bash: | | ||
set -e | ||
cd $BAZEL_EXEC_LOG_ROOT | ||
zip $(Build.ArtifactStagingDirectory)/exec_logs.zip * | ||
displayName: Create zip with execution logs | ||
- publish: "$(Build.ArtifactStagingDirectory)/exec_logs.zip" | ||
# The PhaseName is the string after the "job" key in the build description, | ||
# e.g. "job: my_phase_name". | ||
artifact: exec-logs-$(System.PhaseName) | ||
displayName: Upload execution logs | ||
|