-
Notifications
You must be signed in to change notification settings - Fork 10.1k
release: release (undraft) GitHub release from release script #18886
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
base: main
Are you sure you want to change the base?
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files
... and 26 files with indirect coverage changes @@ Coverage Diff @@
## main #18886 +/- ##
==========================================
- Coverage 68.84% 68.83% -0.01%
==========================================
Files 421 421
Lines 35900 35900
==========================================
- Hits 24716 24713 -3
+ Misses 9762 9757 -5
- Partials 1422 1430 +8 Continue to review full report in Codecov by Sentry.
🚀 New features to boost your workflow:
|
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.
LGTM - Thanks @ivanvc
log_warning "" | ||
|
||
# Give a 10 minute timeout to the user to confirm the release. | ||
read -p "Release GitHub release for ${RELEASE_VERSION} [y/N]? " -t 600 -r confirm |
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.
I think with a bit more testing / confidence we can simply drop the publishing of the release in draft mode and 10 minute review prompt and simply publish the full release.
It was a really great milestone to see the script automatically creating the GitHub release for us today so let's just get a bit more confidence in the next round of releases and then revisit it :)
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.
I agree. I was hesitant to add this change, but no matter what arguments I'd pass to gh create release
, the draft release in the edit UI always has the "set as latest release" checkbox ticked. So, the workaround was to publish the release by editing it, while passing all the possible arguments.
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.
I'm going to draft this PR then. We can revisit it when we feel confident about automating the release process.
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.
I left this in place, as it follows the approach of the other steps.
04e5814
to
2192e77
Compare
2192e77
to
e0f2996
Compare
Signed-off-by: Ivan Valdes <[email protected]>
e0f2996
to
cc0e439
Compare
5e85cbf
to
cc0e439
Compare
5279471
to
cc0e439
Compare
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: ivanvc, jmhbnz The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/test pull-etcd-unit-test-386 |
I'm parking this pull request again. I'm thinking that we can keep the draft release as we have now and release it using a GitHub action (after the released artifacts tests pass). Based on |
Note: I'll need to automate checking if it's a pre-release or if we should mark it as a release. I think it is doable with the following logic: Pre-releaseIf there's a pre-release identifier (i.e., Latest version
|
Release (updraft) GitHub release from the release script after creating it, avoiding the last manual step of this process. However, if the user answers no to the prompt, the script won't exit with a failure code, as it is still possible to manually release it.
I tested this in my fork, and it works as expected.
Part of #18604
Please read https://github.com/etcd-io/etcd/blob/main/CONTRIBUTING.md#contribution-flow.