-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
GH-41102: [Packaging][Release] Create unique git tags for release candidates (e.g. apache-arrow-{MAJOR}.{MINOR}.{PATCH}-rc{RC_NUM}) #41131
Conversation
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 had a first look at the workflows only. I think we can just merge them into one and run|skip some steps with if:
when the triggering tag has the -rc
suffix.
That's a good point. I'll go ahead and merge the yml files together. |
Going to test out the new |
I just noticed we might need INFRA approval before merginging this:
https://infra.apache.org/github-actions-policy.html Kind of depends on if creating a release counts as 'pushing data to the repo'. I actually don't think it does because its Github only and doesn't affect the 'arrow.git' contents. But I will ask. |
I was about to open an issue for INFRA to look over the workflow when I noticed that this PR also contains the changes from #40956 (+ some new changes on the workflows) is this intentional or do we want to move those changes back out of this PR? I just need clarity which PR I send to INFRA ^^ |
Just a quick update. I tested the new Both the release_candidate and the release workflows passed. You can view the generated releases in mathworks/arrow's GitHub Releases area. I'll delete those releases once this PR is done. For now, I'll leave them up to serve as a proof of concept - unless you prefer I delete them asap. |
I think the plan is to first submit this PR and then rebase #40956 once this PR is merged. While working on #40956, I realized it made more sense to first add "generic" release candidate and release workflows before adding the MATLAB specific logic. Once this PR is merged, I'll go back to working on #40956. Sorry for the confusion! |
…ce.sh until the Release GH Actions workflow is finished
Co-authored-by: Sutou Kouhei <[email protected]>
the GitHub Release for the RC to finish before attempting to download the source tarball.
…t-05-update-gh-release-notes.sh
The INFRA ticket is now closed and I believe this PR is ready to merge. @assignUser, do you have any more flags? I think you just requested changes so we knew not to merge this PR until the Jira ticket was closed. Otherwise, unless anyone has any other flags, I think I can merge this. Also a big thank you to everyone who helped me! |
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.
Thanks for the long running efforts! Feel free to merge!
After merging your PR, Conbench analyzed the 6 benchmarking runs that have been run so far on merge-commit 6ec2f22. There were no benchmark performance regressions. 🎉 The full Conbench report has more details. It also includes information about 3 possible false positives for unstable benchmarks that are known to sometimes produce them. |
Rationale for this change
As per @kou's suggestion in #40956, we should create unique git tags (e.g.
apache-arrow-{MAJOR}.{MINOR}.{VERSION}-rc{RC_NUM}
) instead re-using the same git tag (apache-arrow-{MAJOR}.{MINOR}.{VERSION}
) for each release candidate. The official release candidate tag (apache-arrow-{MAJOR}.{MINOR}.{VERSION}
) should be created only after a release candidate is voted on and accepted. This "official" release tag should point to the same object in the git database as the accepted release candidate tag.The new release workflow could look like the following:
See @kou's comment for more details.
What changes are included in this PR?
dev/release/01-prepare.sh
to create release-candidate-specific git tags (e.g.apache-arrow-{MAJOR}.{MINOR}.{PATCH}-rc{RC_NUM}
).dev/release
to use the new git tag name.publish_release_candidate.yml
. This workflow is triggered when a release candidate git tag is pushed and creates a Prerelease GitHub Release.dev/release/02-post-binary.sh
to create and push the release git tag (i.e.apache-arrow-{MAJOR}.{MINOR}.{PATCH}
).publish_release.yml
. This workflow is triggered when the release tag is pushed and creates a GitHub Release for the approved release (i.e. the voted upon release).dev/release/post-16-delete-release-candidates.sh
to delete the release candidate git tags and their associated GitHub Releases.docs/developers/release.rst
with the new steps.Are these changes tested?
dev/release
. Any suggestions on how we can verify these scripts would be much appreciated :)publish_release_candidate.yml
andpublish_release.yml
) work as intended by pushing git tags tomathworks/arrow
.Are there any user-facing changes?
No.
Open Questions
dev/release/02-source-test.rb
make sense.Future Directions
apache-arrow-{MAJOR}.{MINOR}.{PATCH}-rc{RC_NUM}
) #41102