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

DRY builds S3 upload logic #117

Merged

Conversation

mokagio
Copy link
Contributor

@mokagio mokagio commented May 13, 2024

Proposed Changes

@wojtekn mentioned that CI builds on trunk included the Windows binary, but builds from tags didn't. This PR addresses the issue by DRYing the automation that uploads binaries.

Update: I naively assumed the only thing to do was to upload existing files and add links. I was wrong. This PR is now stacked on top of the necessary work that @jkmassel did in #114. Goes to show one should find ways to test things locally...

What remains of this PR is centralizing the builds information in Fastlane in a Hash, so that we can iterate on each build for the S3 uploads etc, instead of copy pasting the call. While we might not need to add new builds, I still think this is a maintenability improvement.

Testing Instructions

Unfortunately, the only true way to test this is to merge it and check the artifacts, CI annotations, and Slack messages.

Pre-merge Checklist

  • Have you checked for TypeScript, React or other console errors? – N.A.

Comment on lines -42 to -43

puts lane_context[SharedValues::MATCH_PROVISIONING_PROFILE_MAPPING]
Copy link
Contributor Author

Choose a reason for hiding this comment

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

By the looks of it, in particular the use of puts, this was a debugging line that sneaked in.

@mokagio mokagio marked this pull request as ready for review May 13, 2024 03:14
@mokagio mokagio requested a review from jkmassel May 13, 2024 03:14
@mokagio mokagio force-pushed the mokagio/include-windows-build-in-tag branch from ef023c6 to 63b95e4 Compare May 13, 2024 04:31
@mokagio mokagio changed the base branch from trunk to add/windows-release-builds May 13, 2024 04:34
@mokagio mokagio changed the title Add link to Windows builds to release deployments, too DRY builds S3 upload logic May 13, 2024
Copy link
Contributor

@wojtekn wojtekn left a comment

Choose a reason for hiding this comment

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

Looks good, thanks.

@jkmassel jkmassel merged commit eb9f1c5 into add/windows-release-builds May 13, 2024
13 checks passed
@jkmassel jkmassel deleted the mokagio/include-windows-build-in-tag branch May 13, 2024 18:43
jkmassel added a commit that referenced this pull request May 13, 2024
* Isolate common Windows code

* Add Release Steps with Artifacts

* Better error handling

* DRY builds S3 upload logic (#117)

* Extract logic to distribute builds in Fastlane

* DRY builds folder definition in Fastfile

* Remove leftover debug `puts`

* DRY S3 bucket name

* Fix a comment's wording

* DRY further

* DRY even more

* DRY commit, build, etc in Fastfile

* Casing improvements

---------

Co-authored-by: Gio Lodi <gio.lodi@automattic.com>
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