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

Upload project sources and submit archives to GCS #1524

Merged
merged 5 commits into from
Nov 17, 2022

Conversation

wkozyra95
Copy link
Contributor

@wkozyra95 wkozyra95 commented Nov 15, 2022

Checklist

  • I've added an entry to CHANGELOG.md if necessary. You can comment this pull request with /changelog-entry [breaking-change|new-feature|bug-fix|chore] [message] and CHANGELOG.md will be updated automatically.

Why

Upload project sourced for build and ipa/aab for submits to gcs

How

Test Plan

Run build, build with auto submit, submit with path option, submit from existing build

@wkozyra95 wkozyra95 force-pushed the @wkozyra95/upload-archives-to-gcs branch from 75072aa to 57f3710 Compare November 15, 2022 12:35
@github-actions
Copy link

github-actions bot commented Nov 15, 2022

Size Change: +2.04 kB (0%)

Total Size: 40.3 MB

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

compressed-size-action

@wkozyra95 wkozyra95 force-pushed the @wkozyra95/upload-archives-to-gcs branch 3 times, most recently from 75de07d to 5dadd29 Compare November 15, 2022 13:50
@codecov
Copy link

codecov bot commented Nov 15, 2022

Codecov Report

Merging #1524 (5bff6e7) into main (8beb8f4) will increase coverage by 0.02%.
The diff coverage is 70.46%.

❗ Current head 5bff6e7 differs from pull request most recent head 727eda0. Consider uploading reports for the commit 727eda0 to get more accurate results

@@            Coverage Diff             @@
##             main    #1524      +/-   ##
==========================================
+ Coverage   51.48%   51.49%   +0.02%     
==========================================
  Files         453      453              
  Lines       15648    15656       +8     
  Branches     3076     3079       +3     
==========================================
+ Hits         8055     8061       +6     
- Misses       7579     7581       +2     
  Partials       14       14              
Impacted Files Coverage Δ
packages/eas-cli/src/build/graphql.ts 14.64% <0.00%> (-0.75%) ⬇️
...as-cli/src/graphql/mutations/SubmissionMutation.ts 50.00% <ø> (ø)
...cli/src/graphql/mutations/UploadSessionMutation.ts 50.00% <ø> (ø)
packages/eas-cli/src/uploads.ts 14.29% <20.00%> (-8.66%) ⬇️
packages/eas-cli/src/build/build.ts 12.56% <50.00%> (ø)
packages/eas-cli/src/submit/ArchiveSource.ts 68.69% <70.28%> (-1.10%) ⬇️
packages/eas-cli/src/submit/BaseSubmitter.ts 91.49% <77.78%> (-3.10%) ⬇️
packages/eas-cli/src/submit/utils/summary.ts 90.91% <77.78%> (+3.04%) ⬆️
packages/eas-cli/src/graphql/generated.ts 100.00% <100.00%> (ø)
packages/eas-cli/src/project/publish.ts 89.94% <100.00%> (ø)
... and 11 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@wkozyra95 wkozyra95 marked this pull request as ready for review November 15, 2022 14:49
Comment on lines 133 to 134
resolvedArchiveSource: { type: SubmissionArchiveSourceType.Url, url },
source,
Copy link
Contributor

Choose a reason for hiding this comment

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

Couldn't this be sth like:

Suggested change
resolvedArchiveSource: { type: SubmissionArchiveSourceType.Url, url },
source,
source: { type: SubmissionArchiveSourceType.Url, url },

Comment on lines 186 to 187
resolvedArchiveSource: { type: SubmissionArchiveSourceType.GcsSubmitArchive, bucketKey },
source,
Copy link
Contributor

Choose a reason for hiding this comment

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

And:

Suggested change
resolvedArchiveSource: { type: SubmissionArchiveSourceType.GcsSubmitArchive, bucketKey },
source,
source: { type: SubmissionArchiveSourceType.GcsSubmitArchive, bucketKey },

If I understand correctly, this needs another Archive... interface.
I don't think we should have two almost identical fields in the return object.

Comment on lines +93 to +94
const fileStat = await fs.stat(file);
const fileSize = fileStat.size;
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
const fileStat = await fs.stat(file);
const fileSize = fileStat.size;
const { size: fileSize } = await fs.stat(file);

@@ -8,7 +8,7 @@
"build:tarballs:linux": "yarn build-for-size-check",
"build-for-size-check": "yarn build && yarn workspace eas-cli pretarball-ci && CLI_SIZE_CHECK=1 yarn workspace eas-cli oclif pack:tarballs --no-xz --targets linux-x64",
"typecheck": "lerna run typecheck",
"start": "lerna run watch --parallel",
"start": "lerna run watch --stream --parallel",
Copy link
Contributor Author

Choose a reason for hiding this comment

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

new lerna version does not show output without stream option

@wkozyra95 wkozyra95 force-pushed the @wkozyra95/upload-archives-to-gcs branch from fe82c63 to 5bff6e7 Compare November 17, 2022 10:32
@wkozyra95
Copy link
Contributor Author

/changelog-entry chore Upload project sources for EAS Build and archives for EAS Submit to GCS.

@wkozyra95 wkozyra95 merged commit 8632b8a into main Nov 17, 2022
@wkozyra95 wkozyra95 deleted the @wkozyra95/upload-archives-to-gcs branch November 17, 2022 10:57
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.

None yet

3 participants