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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

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

…isitng testflight groups + allow to opt out of the behavior by setting env var
Copy link
Member Author

Copy link

github-actions bot commented Feb 3, 2025

❌ It looks like a changelog entry is missing for this PR. Add it manually to CHANGELOG.md.
⏩ If this PR doesn't require a changelog entry, such as if it's an internal change that doesn't affect the user experience, you can add the "no changelog" label to the PR.

@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: +473 B (0%)

Total Size: 53.4 MB

Filename Size Change
./packages/eas-cli/dist/eas-linux-x64.tar.gz 53.4 MB +473 B (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.47%. Comparing base (77423d1) to head (e1f9794).
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.48%   52.47%   -0.01%     
==========================================
  Files         589      589              
  Lines       23073    23080       +7     
  Branches     4823     4825       +2     
==========================================
  Hits        12108    12108              
- Misses       9997    10002       +5     
- Partials      968      970       +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

await addAllUsersToInternalGroupAsync(group, admins);
}
if (process.env.EXPO_SKIP_TESTFLIGHT_SETUP) {
Log.debug('EXPO_SKIP_TESTFLIGHT_SETUP is set, skipping TestFlight setup');
Copy link
Contributor

Choose a reason for hiding this comment

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

In Expo CLI we usually format like EXPO_NO_.

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