chore(release): add ASF release scripts for source tarballs#76
Merged
Conversation
Adds dev/release/ with create-tarball.sh, release-tarball.sh, and verify-release-candidate.sh, adapted from apache/datafusion. Also includes a release README, RAT exclude list, and the check-rat-report.py helper. These scripts produce, sign, vote on, promote, and verify the apache-datafusion-java-<version>.tar.gz source distribution published under https://dist.apache.org/repos/dist/{dev,release}/datafusion/.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Which issue does this PR close?
Rationale for this change
We don't yet have any tooling in this repo for producing the signed source tarballs required for an ASF release. This PR adds the standard
create-tarball.sh/release-tarball.sh/verify-release-candidate.shtriplet so that future releases can follow the same workflow used by other Apache DataFusion subprojects.What changes are included in this PR?
Adds
dev/release/, adapted from the upstreamapache/datafusiondev/release/scripts:create-tarball.sh— producesapache-datafusion-java-<version>-rc<rc>.tar.gzfrom a git tag, signs it, generates SHA-256/SHA-512 checksums, uploads todist/dev/datafusion/on SVN, and prints a draft[VOTE]email fordev@datafusion.apache.org.release-tarball.sh— promotes the artifacts fromdist/dev/datafusion/todist/release/datafusion/once the vote has passed.verify-release-candidate.sh— downloads the candidate, verifies GPG signature and checksums, installs a sandbox Rust toolchain, and runsmake testto build the native crate and run the JVM test suite.README.md— step-by-step release walkthrough specific todatafusion-java.rat_exclude_files.txt+check-rat-report.py— supporting files for running an Apache RAT license audit against the generated source tarball.The scripts target the
apache-datafusion-java-<version>artifact name and the shareddist/{dev,release}/datafusion/SVN tree used by other DataFusion subprojects.Are these changes tested?
The scripts haven't been exercised end-to-end (that requires a release tag, GPG key, and Apache SVN credentials). Shell scripts pass
bash -nsyntax checks and the Python helper parses cleanly. They will be validated when the first RC is cut.Are there any user-facing changes?
No — maintainer tooling only.