Skip to content

Commit

Permalink
Rollup merge of rust-lang#119829 - ehuss:macos-sip, r=Kobzol
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
TaKO8Ki authored Jan 11, 2024
2 parents ef1e49a + f7e8739 commit a7713d7
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/ci/scripts/dump-environment.sh
Original file line number Diff line number Diff line change
@@ -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'

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

0 comments on commit a7713d7

Please sign in to comment.