Skip to content
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

[eas-cli] skip creation of testflight group when there are already exisitng testflight groups + allow to opt out of the behavior by setting env var #2856

Conversation

szdziedzic
Copy link
Member

@szdziedzic szdziedzic commented Feb 3, 2025

Why

https://exponent-internal.slack.com/archives/C014YHUJUMN/p1738577486565949?thread_ts=1738574914.864689&cid=C014YHUJUMN

How

If there are any existing testflight groups skip the creation of the Team (Expo) group.

Allow to opt out of the creation y setting EXPO_SKIP_TESTFLIGHT_SETUP=1

Test Plan

Tests

Copy link
Member Author

@szdziedzic szdziedzic marked this pull request as ready for review February 3, 2025 12:19
Copy link

github-actions bot commented Feb 3, 2025

Subscribed to pull request

File Patterns Mentions
**/* @khamilowicz, @sjchmiela, @radoslawkrzemien

Generated by CodeMention

Copy link

github-actions bot commented Feb 3, 2025

Size Change: +1.04 kB (0%)

Total Size: 53.5 MB

Filename Size Change
./packages/eas-cli/dist/eas-linux-x64.tar.gz 53.5 MB +1.04 kB (0%)

compressed-size-action

Copy link

codecov bot commented Feb 3, 2025

Codecov Report

Attention: Patch coverage is 0% with 13 lines in your changes missing coverage. Please review.

Project coverage is 52.63%. Comparing base (6c7bae2) to head (f57928b).
Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
.../credentials/ios/appstore/ensureTestFlightGroup.ts 0.00% 11 Missing and 2 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2856      +/-   ##
==========================================
- Coverage   52.65%   52.63%   -0.01%     
==========================================
  Files         588      588              
  Lines       23193    23200       +7     
  Branches     4857     4859       +2     
==========================================
  Hits        12210    12210              
- Misses      10016    10021       +5     
- Partials      967      969       +2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

}: {
groups: BetaGroup[];
app: App;
}): Promise<BetaGroup> {
let betaGroup = groups.find(group => group.attributes.name === AUTO_GROUP_NAME);
if (!betaGroup) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This check is now redundant so could be a regular try / catch

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why is it redundant? I'm not sure I see it

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure what I meant there 😅 - nevermind me.

…isitng testflight groups + allow to opt out of the behavior by setting env var
@szdziedzic szdziedzic force-pushed the 02-03-_eas-cli_skip_creation_of_testflight_group_when_there_are_already_exisitng_testflight_groups_allow_to_opt_out_of_the_behavior_by_setting_env_var branch from e1f9794 to 373c8b4 Compare February 20, 2025 18:58
Copy link

✅ Thank you for adding the changelog entry!

@szdziedzic szdziedzic merged commit a1d4f26 into main Feb 21, 2025
7 checks passed
@szdziedzic szdziedzic deleted the 02-03-_eas-cli_skip_creation_of_testflight_group_when_there_are_already_exisitng_testflight_groups_allow_to_opt_out_of_the_behavior_by_setting_env_var branch February 21, 2025 13:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants