Skip to content

Commit 7ec8cea

Browse files
authored
Try working around xcrun failures (#4449)
I expect the change here will try rerunning a couple times, then fail if it's a permanent failure. I've seen similar failures, and believe this is flaky. Here's the specific example that caused me to try a workaround: https://github.com/carbon-language/carbon-lang/actions/runs/11560505812/job/32177497296 I don't see a difference in the runner information between failing and passing runs, which might've indicated a canary. That's why I'm doing this as a trivial retry.
1 parent 2c7166b commit 7ec8cea

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/actions/build-setup-macos/action.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,13 @@ runs:
1414
- name: Free up disk space
1515
shell: bash
1616
run: |
17+
# The xcrun occasionally fails (maybe a race condition?), so retry a few
18+
# times. Example failure:
19+
# "data" couldn't be moved to "Deleting-<ID>"
1720
echo '*** Delete iOS simulators'
18-
xcrun simctl delete all
21+
xcrun simctl delete all || \
22+
xcrun simctl delete all || \
23+
xcrun simctl delete all
1924
sudo rm -rf ~/Library/Developer/CoreSimulator/Caches/*
2025
2126
# Install and cache LLVM 16 from Homebrew. Some runners may have LLVM 16,

0 commit comments

Comments
 (0)