Skip to content

Commit a7713d7

Browse files
authored
Rollup merge of rust-lang#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.
2 parents ef1e49a + f7e8739 commit a7713d7

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

Diff for: src/ci/scripts/dump-environment.sh

+16
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
#!/bin/bash
22
# This script dumps information about the build environment to stdout.
33

4+
source "$(cd "$(dirname "$0")" && pwd)/../shared.sh"
5+
46
set -euo pipefail
57
IFS=$'\n\t'
68

@@ -17,3 +19,17 @@ set +o pipefail
1719
du . | sort -nr | head -n100
1820
set -o pipefail
1921
echo
22+
23+
if isMacOS
24+
then
25+
# Debugging information that might be helpful for diagnosing macOS
26+
# performance issues.
27+
# SIP
28+
csrutil status
29+
# Gatekeeper
30+
spctl --status
31+
# Authorization policy
32+
DevToolsSecurity -status
33+
# Spotlight status
34+
mdutil -avs
35+
fi

0 commit comments

Comments
 (0)