-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Run sysdiagnose at the end of Azure Pipelines jobs on macOS
This runs this with quite a lot of arguments, mostly to exclude the generated and/or time-sensitive logs, along with the larger log archive, for the sake of making this a sensible amount to store for each run. Notably, this does include crash and spin logs, which have already proven useful to track down intermittent crashes on Azure Pipelines.
- Loading branch information
Showing
2 changed files
with
19 additions
and
0 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,13 @@ | ||
steps: | ||
- script: | | ||
mkdir -p /Users/runner/sysdiagnose | ||
# No UI, and no time sensitive, generated, or archived logs | ||
sudo sysdiagnose -ub -PGR -f /Users/runner/sysdiagnose -A sysdiagnose_$(System.JobPositionInPhase) | ||
displayName: 'Collect sysdiagnose' | ||
condition: and(succeeded(), eq(variables['Agent.OS'], 'Darwin')) | ||
- task: PublishBuildArtifacts@1 | ||
displayName: 'Publish sysdiagnose' | ||
inputs: | ||
pathtoPublish: /Users/runner/sysdiagnose/ | ||
artifactName: sysdiagnose | ||
condition: and(succeeded(), eq(variables['Agent.OS'], 'Darwin')) |