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

[ENG-13252][eas-cli] resolve default environment automatically based on build configuration #2644

Conversation

szdziedzic
Copy link
Member

@szdziedzic szdziedzic commented Oct 21, 2024

Why

https://exponent-internal.slack.com/archives/C06FK950085/p1729212611408479?thread_ts=1729186741.835629&cid=C06FK950085

How

Resolve the default (if not set in the build profile) environment to use for a build based on its configuration.

Store build -> production
Dev client -> development
Other (internal) -> preview

Test Plan

Test manually

Copy link
Member Author

szdziedzic commented Oct 21, 2024

Copy link

github-actions bot commented Oct 21, 2024

Size Change: -185 B (0%)

Total Size: 52.9 MB

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

compressed-size-action

Copy link

codecov bot commented Oct 21, 2024

Codecov Report

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

Project coverage is 52.74%. Comparing base (78e05c4) to head (ae30fbb).
Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
...as-cli/src/build/evaluateConfigWithEnvVarsAsync.ts 0.00% 14 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2644      +/-   ##
==========================================
- Coverage   52.77%   52.74%   -0.02%     
==========================================
  Files         580      580              
  Lines       22271    22283      +12     
  Branches     4354     4358       +4     
==========================================
  Hits        11751    11751              
- Misses      10484    10496      +12     
  Partials       36       36              

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


🚨 Try these New Features:

@szdziedzic szdziedzic marked this pull request as ready for review October 21, 2024 14:06
Copy link

github-actions bot commented Oct 21, 2024

Subscribed to pull request

File Patterns Mentions
**/* @khamilowicz, @sjchmiela
packages/eas-cli/src/build/** @khamilowicz, @sjchmiela

Generated by CodeMention

@szdziedzic szdziedzic force-pushed the 10-21-_eas-cli_resolve_default_environment_automatically_based_on_build_configuration branch from f1393d6 to 0a03d18 Compare October 22, 2024 09:57
@szdziedzic szdziedzic changed the base branch from 10-21-_eas-cli_improve_logs_announcing_loading_of_env_variables to graphite-base/2644 October 22, 2024 09:57
@szdziedzic szdziedzic force-pushed the 10-21-_eas-cli_resolve_default_environment_automatically_based_on_build_configuration branch from 0a03d18 to 40294c6 Compare October 22, 2024 09:58
@szdziedzic szdziedzic changed the base branch from graphite-base/2644 to main October 22, 2024 09:58
@szdziedzic szdziedzic force-pushed the 10-21-_eas-cli_resolve_default_environment_automatically_based_on_build_configuration branch from 40294c6 to 36d7cb2 Compare October 22, 2024 09:58
@szdziedzic szdziedzic changed the title [eas-cli] resolve default environment automatically based on build configuration [ENG-13252][eas-cli] resolve default environment automatically based on build configuration Nov 14, 2024
@szdziedzic szdziedzic force-pushed the 10-21-_eas-cli_resolve_default_environment_automatically_based_on_build_configuration branch from 36d7cb2 to 02205db Compare November 22, 2024 10:20
Copy link

✅ Thank you for adding the changelog entry!

@szdziedzic szdziedzic merged commit 0f2fad3 into main Nov 22, 2024
11 checks passed
@szdziedzic szdziedzic deleted the 10-21-_eas-cli_resolve_default_environment_automatically_based_on_build_configuration branch November 22, 2024 10:33
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