-
Notifications
You must be signed in to change notification settings - Fork 116
WIP - Use xcodes
in CI with Fastlane
#8131
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: trunk
Are you sure you want to change the base?
Conversation
You can test the changes from this Pull Request by:
|
# | ||
# - https://github.com/Automattic/hostmgr/pull/47 | ||
# - https://github.com/Automattic/hostmgr/issues/48 | ||
if [[ $BUILDKITE_AGENT_META_DATA_QUEUE = 'mac' ]]; then | ||
echo '--- :xcode: Ensure xcodes tool is installed' | ||
brew install xcodes |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Quite "original" to implement this as a
On one hand, implementing it as a pre-command is nice because you don't have to duplicate the check and logic in each Sure, in your current implementation you run it for all commands but them check if the agent is a Mac, and as you document in your comment, I know it's a temporary hack until we provision the tool in our next VMs, which will then make such a local check unnecessary, so that might not be that big a deal I guess. But this being in a separate file and not in the pipeline config files where we edit and change the
|
FYI, I've added "xcodes" into the xcode-14.1 image I'm building, which should be available in a couple of hours. |
Excellent. That really makes the need for this redundant. I'll just wait for the 14.1 image to be out, upgrade, and only then do the migration to I don't think we should worry too much about backward compatibility in this context. |
I'll take that as a compliment. LOL. Yes, I was curious to see how the setup worked and took it out for a spin. I think the waste for the steps for which the check would fail is negligible because of how many more builds on macOS we run compared to the others. The danger of the check ending up forgotten because it's in its own file out of the way is a strong one. All in all, I think the best course of action is to wait for the 14.1 image to be out and avoid adding any of this overhead. See comment above. |
Yeah also note that, as we just learned that Apple removed the ability to download Xcode without being authenticated, I'm wondering if this would affect fastlane potentially un-deprecating the old The way we use |
I didn't know that... 😞 Apple being Apple as usual... 🙄 Really the fact that they don't ship an Probably worth parking this and observe what Fastlane does... Which work in our favor in a sense while we roll out the new CI image. |
I don't know if GitHub sends notifications when the PR description changes, so here's a comment to note that I tracked the things needed before considering resuming work on this in the descrption:
|
Additional note: while I initially thought that this new need for authentication wouldn't impact us because we don't use |
Things that need to happen before working on this PR again:
xcodes
now that Apple requires authentication for downloadsxcodes