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] add target-profile and source-profile flags to eas build:resign #2410

Conversation

szdziedzic
Copy link
Member

Why

#2404

How

Add 2 new flags:

  • source-profile
  • target-profile

The previous profile flag was really a target-profile, so it can be an alias for it so we don't introduce a breaking change.

See #2404 for more context

Test Plan

Test manually

@szdziedzic
Copy link
Member Author

@d4rky-pl do you want to take a look?

@szdziedzic
Copy link
Member Author

/changelog-entry new-feature Add target-profile and source-profile flags to the eas build:resign command

Copy link

github-actions bot commented Jun 5, 2024

Size Change: +596 B (0%)

Total Size: 51.3 MB

Filename Size Change
./packages/eas-cli/dist/eas-linux-x64.tar.gz 51.3 MB +596 B (0%)

compressed-size-action

Copy link

codecov bot commented Jun 5, 2024

Codecov Report

Attention: Patch coverage is 0% with 1 line in your changes missing coverage. Please review.

Project coverage is 53.45%. Comparing base (e83565c) to head (569dd7e).

Current head 569dd7e differs from pull request most recent head 123ba8a

Please upload reports for the commit 123ba8a to get more accurate results.

Files Patch % Lines
packages/eas-cli/src/commands/build/resign.ts 0.00% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2410   +/-   ##
=======================================
  Coverage   53.45%   53.45%           
=======================================
  Files         530      530           
  Lines       19509    19509           
  Branches     3968     3968           
=======================================
  Hits        10427    10427           
  Misses       8330     8330           
  Partials      752      752           

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

Comment on lines 73 to 79
'Name of the target build profile from eas.json. Used to resolve credentials for re-signing. Defaults to "production" if defined in eas.json.',
helpValue: 'PROFILE_NAME',
aliases: ['profile'],
}),
'source-profile': Flags.string({
description:
'Name of the source build profile from eas.json. Used to filter builds eligible for re-signing.',
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't think descriptions are really helpful. Will users know what these refer to?

Copy link
Member Author

Choose a reason for hiding this comment

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

I hope so, I mean I understood it and I assumed that everybody else would also understand 😅. But maybe that's not the case 😂. Do you have any suggestions about how I can improve it?

Copy link

Choose a reason for hiding this comment

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

The source-profile description seems clear enough to me but I agree the target-profile description may not be immediately obvious if you don't have the context (that I now have after reading your explanation in #2404)

I'm afraid I can't come up with a better suggestion right now (traveling and not in the right space to think carefully) but I can take a second look next week if nobody else steps in to help :)

Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe Name of the target build profile from eas.json. Credentials and environment variables from this profile will be used when re-signing. Defaults to "production" if defined in eas.json. ?

Copy link

github-actions bot commented Jun 6, 2024

✅ Thank you for adding the changelog entry!

@szdziedzic szdziedzic merged commit 2a1fd29 into main Jun 6, 2024
5 checks passed
@szdziedzic szdziedzic deleted the @szdziedzic/make-resign-command-respect-build-profile-argument-when-listing-builds-in-interactive-mode branch June 6, 2024 16:47
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.

4 participants