From f7e8739eac7a27549559ea845599e6bcca273f0a Mon Sep 17 00:00:00 2001 From: Eric Huss Date: Wed, 10 Jan 2024 10:27:31 -0800 Subject: [PATCH] Add debug info for macOS CI actions --- src/ci/scripts/dump-environment.sh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/src/ci/scripts/dump-environment.sh b/src/ci/scripts/dump-environment.sh index c6774b52ab92d..812690181e9bd 100755 --- a/src/ci/scripts/dump-environment.sh +++ b/src/ci/scripts/dump-environment.sh @@ -1,6 +1,8 @@ #!/bin/bash # This script dumps information about the build environment to stdout. +source "$(cd "$(dirname "$0")" && pwd)/../shared.sh" + set -euo pipefail IFS=$'\n\t' @@ -17,3 +19,17 @@ set +o pipefail du . | sort -nr | head -n100 set -o pipefail echo + +if isMacOS +then + # Debugging information that might be helpful for diagnosing macOS + # performance issues. + # SIP + csrutil status + # Gatekeeper + spctl --status + # Authorization policy + DevToolsSecurity -status + # Spotlight status + mdutil -avs +fi