Build: Mac: Keep the signing-related keychain unlocked#2927
Conversation
This fixes hanging Mac build runs in CI which got stuck as they required interactive unlocking of the keychain. This issue only became appareant after the switch to universal builds as that made the build take longer than the re-lock interval. Fixes: jamulussoftware#2925
|
@daryu maybe you experienced something like this too? Could you please comment? |
|
One other comment: why did the build hang rather than fail? Do we know? Is that something that could have been prevented and made to fail with a useful error? |
pljones
left a comment
There was a problem hiding this comment.
If it works, it works. Subject to my other comment that's out of scope for this hot fix.
As far as I have found, it's likely not a real hang, but rather waiting for activity in a graphical dialog box, which we'll never see in the CI which is only CI-based. |
That's what I was guessing, too. Is there any way to prevent it, or a tool that better understands automated CI? |
I don't think so. The most official way seems to be Xcode, which is purely graphical. |
|
I remember suspecting something like that some time ago too. That was the Apple script invocation in create-dmg (GitHub fixed it on their side a while ago.) |
|
I think this actually didn't make the 3.9.1 cut. This is just looking at the merges since the r3_9_1 tag. |
Short description of changes
This fixes hanging Mac build runs in CI which got stuck as they required interactive unlocking of the keychain.
This issue only became appareant after the switch to universal builds as that made the build take longer than the re-lock interval.
CHANGELOG: Build: Mac: Keep the signing-related keychain unlocked
Context: Fixes an issue?
Fixes: #2925
Does this change need documentation? What needs to be documented and how?
No.
Status of this Pull Request
The fix has already been committed and tested successfully on @emlynmac's repo where I've manually modified the r3_9_1 tag to do so.
What is missing until this pull request can be merged?
Reviews.
(CI on this PR must not file, but it being successful does not prove anything either ;))
Please merge once reviews are completed.
Checklist
AUTOBUILD: Please build all targets