about summary refs log tree commit diff
diff options
context:
space:
mode:
authorTakayuki Maeda <takoyaki0316@gmail.com>2024-01-11 15:41:47 +0900
committerGitHub <noreply@github.com>2024-01-11 15:41:47 +0900
commita7713d76e07e2326fcd726e4447f597ee37f9a3c (patch)
treeb6d2ee96c6f1cd3a54b6263da11a368a6eb723ae
parentef1e49a641e00d30066c5c32e53972cf76e7838c (diff)
parentf7e8739eac7a27549559ea845599e6bcca273f0a (diff)
downloadrust-a7713d76e07e2326fcd726e4447f597ee37f9a3c.tar.gz
rust-a7713d76e07e2326fcd726e4447f597ee37f9a3c.zip
Rollup merge of #119829 - ehuss:macos-sip, r=Kobzol
Add debug info for macOS CI actions

This adds some debugging information to the CI logs about the macOS runners to potentially help diagnose performance issues. I think this is unlikely to help, since I think the most likely issue is over-provisioning, but I figured it might be a worthy shot in the dark. The macos-12 runners definitely have issues with SIP randomly being enabled, but I have not seen evidence of that for macos-13.
-rwxr-xr-xsrc/ci/scripts/dump-environment.sh16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/ci/scripts/dump-environment.sh b/src/ci/scripts/dump-environment.sh
index c6774b52ab9..812690181e9 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