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.
This commit is contained in:
Takayuki Maeda 2024-01-11 15:41:47 +09:00 committed by GitHub
commit a7713d76e0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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