[eas-cli] Add --refresh-ad-hoc-provisioning-profile for non-interactive builds#3716
Open
sswrk wants to merge 1 commit into
Open
Conversation
Contributor
Author
This stack of pull requests is managed by Graphite. Learn more about stacking. |
5896f86 to
6a7e606
Compare
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #3716 +/- ##
==========================================
+ Coverage 56.66% 56.69% +0.04%
==========================================
Files 888 892 +4
Lines 38488 38619 +131
Branches 8022 8054 +32
==========================================
+ Hits 21804 21891 +87
- Misses 16586 16630 +44
Partials 98 98 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
6a7e606 to
3ace75d
Compare
--refresh-ad-hoc-provisioning-profile for non-interactive builds
3ace75d to
cf3043f
Compare
cf3043f to
b9c092e
Compare
|
✅ Thank you for adding the changelog entry! |
|
Subscribed to pull request
Generated by CodeMention |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Why
When a new device is added to an account, and a non-interactive development build is run (e.g. invoked by CI or by a workflow job), even without the
freeze-credentialsflag, the provisioning profile is not refreshed, and the internal build is not available for the newly registered device. See the Linear issue: https://linear.app/expo/issue/ENG-7041/allow-including-all-eas-registered-devices-automatically-in-nonHow
Added an opt-in ad-hoc provisioning profile refresh to non-interactive builds with flag
--refresh-ad-hoc-provisioning-profile.When the flag is present, we hit
wwwGQL API to get the ASC API key (the submission key), and we invoke the ad-hoc profile sync with all devices selected.packages/eas-cli/src/credentials/ios/actions/SetUpAdhocProvisioningProfile.tsis where this logic happens.The flag mustn't be present when
--freeze-credentialsis present, these are conflicting flags.I'm leaning towards an opt-in flag instead of extending the default behavior because of the extra credentials configuration requirements and side effects of the provisioning profile refresh logic.
Test Plan
Added/amended tests.
Manual verification:
easd build --platform ios --profile development --non-interactive --refresh-ad-hoc-credential, verified the provisioning profile matches the set of Apple devices on my account.easd build --platform ios --profile development --non-interactive --refresh-ad-hoc-credentialagain, verified the re-generated provisioning profile matches the Apple devices on my account.