-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
[Tooling] Create a Single, Unified GitHub Releases for WP Alpha, WP Beta & JP Beta #15319
Conversation
You can trigger optional UI/connected tests for these changes by visiting CircleCI here. |
You can test the changes on this Pull Request by downloading the APKs: |
a935dc6
to
4abbd21
Compare
With Tempfile, we'd have to IO#flush + IO#rewind and/or IO#close to be sure that the file will be written to disk and read from start at the time create_release is called and uses IO.read to read it.
…d slack CI actions This is only in order to test the PR without adding noise.
4abbd21
to
d0f2c75
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is very neat. Blown away by the speed at which CI built. I went on the tab to check on the progress and it had already finished! 🤯
I verified the generated release matches the expectation 👌
Not sure what your plans for merging are. In case you haven't thought of it already, I'd suggest rewriting the history to drop
the last two commits.
Yep, definitively! Having this project done (paaHJt-2s8-p2 + paaHJt-2s9-p2) will change my life as Release Manager!! I'm so happy for this change, no more spending the whole morning waiting for CI (and having to wait for WP CI to finish before I need to trigger JP CI) and no more having to do half of the tasks by hand anymore 🎉 #relief
Yeah I did it that way because last time I used a debug commit like that, the PR was accidentally merged before we pushed back the revert commit, so I figured it was better to include the debug commit and its revert this time, and ask you to point before the revert commit. That being said, I think I'll keep those 2 commits in the merge, because rewriting history to drop them would make the PR description invalid if I did, and it can still make sense to keep track on how the PR was tested. Not a big deal once the PR is merged you'd say, and I can also see the value in keeping the git history cleaner, but I still like to keep consistency in the PR comments and desc even post-merge, in case we need to come back to this PR later one day and need to make sense of it 🙃 |
Generated by 🚫 dangerJS |
This has been replaced by the public `trigger_release_build` lane, which makes use of the `circleci_trigger_job` action implemented in toolkit. The old `trigger_ci` lane was not used anywhere in the Fastfile anymore (and being a private lane, couldn't be invoked manually from CLI either), confirming it was not used anymore.
This is part of project paaHJt-2s9-p2
ℹ️ This PR targets
release/18.2
in the hope I get the occasion to use it in this release in case it's merged in time.What it does
Now that #15273 has been merged and the 3 Release Builds (WP Alpha, WP Beta, JP Beta) are done in parallel, this PR is now able to create a single GitHub Release for all 3 builds, instead of creating one GitHub Release for each like before.
How
create_gh_release
lane to be able to include multiple assets for multiple apps and versions at once, merging release notes as necessary into one description.build_*
lanes to mention theapp:
parameters and update their call tocreate_gh_release
.circleci/config.yml
file to callcreate_gh_release
with the 3 build artifacts only created once the 3 parallel builds have finished.To Test
git checkout -b ci-test/pr15319 origin/jetpack-infra/unified-gh-release^1
to cut a new branch from the commit before the tip of this one.versionName
to a dummy18.2-rc-999
, and disablesupload_to_playstore:true
and theslack
action – but not include the last commit of this branch which reverts those debug changes.18.2-rc-3
), and so that the builds won't fail with "versionCode already exists in PlayStore"git push -u origin ci-test/pr15319
bundle exec fastlane trigger_release_build branch_to_build:ci-test/pr15319
The generated GitHub Release draft should:
ci-test/pr15319
branch, which should be1e5c7795f269cb7e340bb9405dadd11839d59b4f
"18.2-rc-999"
WordPress/{metadata,jetpack_metadata}/release_notes.txt
files.aab
artefacts (WP Alpha, WP Beta, JP Beta)Screenshot of the expected GitHub Release draft
Cleanup
ci-test/pr15319
branch from origin.18.2-rc-999
.