Skip to content

Commit 9dd6a2c

Browse files
ci: Disable PerfPowerServices process on macos-15-intel (#2641)
* Disable the PerfPowerServices process on macos-15-intel runners to address known macOS 15 bug that significantly slows down the runner. - c.f. actions/runner-images#13358
1 parent cad5592 commit 9dd6a2c

File tree

3 files changed

+21
-0
lines changed

3 files changed

+21
-0
lines changed

.github/workflows/ci.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,13 @@ jobs:
3939
python-version: '3.13'
4040

4141
steps:
42+
# c.f. https://github.com/actions/runner-images/issues/13358
43+
- name: Work around x86 macOS bug for multiple CPU cores
44+
if: matrix.os == 'macos-15-intel'
45+
run: |
46+
sudo defaults -currentHost write /Library/Preferences/com.apple.powerlogd SMCMonitorCadence 0
47+
sudo killall PerfPowerServices || true
48+
4249
- uses: actions/checkout@v6
4350

4451
- name: Set up Python ${{ matrix.python-version }}

.github/workflows/dependencies-head.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,13 @@ jobs:
2424
python-version: ['3.13']
2525

2626
steps:
27+
# c.f. https://github.com/actions/runner-images/issues/13358
28+
- name: Work around x86 macOS bug for multiple CPU cores
29+
if: matrix.os == 'macos-15-intel'
30+
run: |
31+
sudo defaults -currentHost write /Library/Preferences/com.apple.powerlogd SMCMonitorCadence 0
32+
sudo killall PerfPowerServices || true
33+
2734
- uses: actions/checkout@v6
2835

2936
- name: Set up Python ${{ matrix.python-version }}

.github/workflows/release_tests.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,13 @@ jobs:
3232
fail-fast: false
3333

3434
steps:
35+
# c.f. https://github.com/actions/runner-images/issues/13358
36+
- name: Work around x86 macOS bug for multiple CPU cores
37+
if: matrix.os == 'macos-15-intel'
38+
run: |
39+
sudo defaults -currentHost write /Library/Preferences/com.apple.powerlogd SMCMonitorCadence 0
40+
sudo killall PerfPowerServices || true
41+
3542
- uses: actions/checkout@v6
3643

3744
- name: Set up Python ${{ matrix.python-version }}

0 commit comments

Comments
 (0)