mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
Fail gracefully when DMG smoketest fails (#30975)
It seems that timing issues (related to MacOS or the GitHub MacOS) runners can sometimes cause `hdiutil detach` to fail. Instead of having this cause the entire build to fail, fail gracefully. This is essentially a non-issue as the CI environment is always cleaned up when using GitHub Actions. Fixes #30757.
This commit is contained in:
parent
bbadef3365
commit
3353db71d2
2 changed files with 5 additions and 2 deletions
2
.github/workflows/mac.yml
vendored
2
.github/workflows/mac.yml
vendored
|
@ -111,7 +111,7 @@ jobs:
|
||||||
command: python3 ./mach test-unit --${{ inputs.profile }}
|
command: python3 ./mach test-unit --${{ inputs.profile }}
|
||||||
- name: Build mach package
|
- name: Build mach package
|
||||||
run: python3 ./mach package --${{ inputs.profile }}
|
run: python3 ./mach package --${{ inputs.profile }}
|
||||||
- name: Run smoketest for mach package
|
- name: Run DMG smoketest
|
||||||
uses: nick-fields/retry@v2
|
uses: nick-fields/retry@v2
|
||||||
with: # See https://github.com/servo/servo/issues/30757
|
with: # See https://github.com/servo/servo/issues/30757
|
||||||
timeout_minutes: 5
|
timeout_minutes: 5
|
||||||
|
|
|
@ -24,4 +24,7 @@ grep 'success' /tmp/out
|
||||||
|
|
||||||
# Clean up.
|
# Clean up.
|
||||||
popd
|
popd
|
||||||
hdiutil detach /Volumes/Servo
|
|
||||||
|
hdiutil detach /Volumes/Servo || \
|
||||||
|
echo "WARNING: Could not detach /Volumes/Servo. " \
|
||||||
|
"Please detach with hdiutil manually."
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue