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] Use expo-updates runtime version CLI to generate runtime versions #2251

Merged
merged 2 commits into from
Feb 28, 2024

Conversation

wschurman
Copy link
Member

@wschurman wschurman commented Feb 24, 2024

Why

This makes use of expo/expo#27263 to generate the correct runtime version for build metadata and updates.

How

Call the command in the package to use the versioned config-plugins for the app. This way the runtime version is consistent no matter what version of eas-cli is used (and for canary versions so we don't have to update eas-cli to use canaries).

Test Plan

Run tests.

Manual test:

  1. neas build with a bare-app in expo/expo
  2. neas update with same app, including with EXPO_DEBUG=1 to see fingerprint sources.

Copy link

github-actions bot commented Feb 24, 2024

Size Change: -2.64 kB (0%)

Total Size: 51.3 MB

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

compressed-size-action

Copy link

codecov bot commented Feb 24, 2024

Codecov Report

Attention: Patch coverage is 37.77778% with 28 lines in your changes are missing coverage. Please review.

Project coverage is 54.05%. Comparing base (33c965b) to head (07f5b97).
Report is 1 commits behind head on main.

Files Patch % Lines
.../eas-cli/src/project/resolveRuntimeVersionAsync.ts 23.53% 13 Missing ⚠️
packages/eas-cli/src/project/publish.ts 50.00% 7 Missing ⚠️
packages/eas-cli/src/utils/expoUpdatesCli.ts 40.00% 6 Missing ⚠️
packages/eas-cli/src/build/metadata.ts 50.00% 1 Missing ⚠️
...kages/eas-cli/src/rollout/actions/CreateRollout.ts 50.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2251      +/-   ##
==========================================
+ Coverage   54.02%   54.05%   +0.03%     
==========================================
  Files         519      520       +1     
  Lines       18935    18953      +18     
  Branches     3798     3805       +7     
==========================================
+ Hits        10228    10243      +15     
- Misses       8686     8689       +3     
  Partials       21       21              

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

@wschurman wschurman force-pushed the @wschurman/include-build-in-search branch from 057d5ee to d75380a Compare February 26, 2024 18:19
Base automatically changed from @wschurman/include-build-in-search to main February 26, 2024 18:19
@wschurman wschurman force-pushed the @wschurman/runtime-version-cli branch from bdb7cb0 to edaa89f Compare February 27, 2024 00:46
@wschurman wschurman force-pushed the @wschurman/runtime-version-cli branch from edaa89f to 0fbfd1f Compare February 27, 2024 17:32
@wschurman wschurman marked this pull request as ready for review February 27, 2024 17:36
@wschurman wschurman requested review from quinlanj and douglowder and removed request for sjchmiela and khamilowicz February 27, 2024 17:36
@wschurman
Copy link
Member Author

/changelog-entry bug-fix Use expo-updates runtime version CLI to generate runtime versions

Copy link

✅ Thank you for adding the changelog entry!

@wschurman wschurman merged commit 561e3bb into main Feb 28, 2024
9 checks passed
@wschurman wschurman deleted the @wschurman/runtime-version-cli branch February 28, 2024 17:27
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