forked from apache/datafusion-comet
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Create initial release process scripts for official ASF source…
… release (apache#429)
- Loading branch information
1 parent
73b97f4
commit 855f542
Showing
10 changed files
with
557 additions
and
3 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,17 +16,21 @@ | |
# under the License. | ||
|
||
[package] | ||
name = "comet" | ||
name = "datafusion-comet" | ||
version = "0.1.0" | ||
homepage = "https://datafusion.apache.org/comet" | ||
repository = "https://github.com/apache/datafusion-comet" | ||
authors = ["Apache DataFusion <[email protected]>"] | ||
description = "Apache DataFusion Comet: High performance accelerator for Apache Spark" | ||
readme = "README.md" | ||
license = "Apache-2.0" | ||
edition = "2021" | ||
include = [ | ||
"benches/*.rs", | ||
"src/**/*.rs", | ||
"Cargo.toml", | ||
] | ||
|
||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html | ||
|
||
[dependencies] | ||
parquet-format = "4.0.0" # This must be kept in sync with that from parquet crate | ||
arrow = { version = "52.0.0", features = ["prettyprint", "ffi", "chrono-tz"] } | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
<!-- | ||
Licensed to the Apache Software Foundation (ASF) under one | ||
or more contributor license agreements. See the NOTICE file | ||
distributed with this work for additional information | ||
regarding copyright ownership. The ASF licenses this file | ||
to you under the Apache License, Version 2.0 (the | ||
"License"); you may not use this file except in compliance | ||
with the License. You may obtain a copy of the License at | ||
http://www.apache.org/licenses/LICENSE-2.0 | ||
Unless required by applicable law or agreed to in writing, | ||
software distributed under the License is distributed on an | ||
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
KIND, either express or implied. See the License for the | ||
specific language governing permissions and limitations | ||
under the License. | ||
--> | ||
|
||
# Comet Release Process | ||
|
||
This documentation is for creating an official source release of Apache DataFusion Comet. | ||
|
||
The release process is based on the parent Apache DataFusion project, so please refer to the | ||
[DataFusion Release Process](https://github.com/apache/datafusion/blob/main/dev/release/README.md) for detailed | ||
instructions if you are not familiar with the release process here. | ||
|
||
Here is a brief overview of the steps involved in creating a release: | ||
|
||
## Creating the Release Candidate | ||
|
||
This part of the process can be performed by any committer. | ||
|
||
- Create and merge a PR to update the version number & update the changelog | ||
- Push a release candidate tag (e.g. 0.1.0-rc1) to the Apache repository | ||
|
||
## Publishing the Release Candidate | ||
|
||
This part of the process can mostly only be performed by a PMC member. | ||
|
||
- Run the create-tarball script to create the source tarball and upload it to the dev subversion repository | ||
- Start an email voting thread | ||
- Once the vote passes, run the release-tarball script to move the tarball to the release subversion repository | ||
- Register the release with the [Apache Reporter Service](https://reporter.apache.org/addrelease.html?datafusion) using | ||
a version such as `COMET-0.1.0` | ||
- Delete old release candidates and releases from the subversion repositories | ||
- Push a release tag (e.g. 0.1.0) to the Apache repository | ||
- Reply to the vote thread to close the vote and announce the release | ||
|
||
## Publishing JAR Files to Maven | ||
|
||
The process for publishing JAR files to Maven is not defined yet. | ||
|
||
## Publishing to crates.io | ||
|
||
We may choose to publish the `datafusion-comet` to crates.io so that other Rust projects can leverage the | ||
Spark-compatible operators and expressions outside of Spark. | ||
|
||
## Verifying Release Candidates | ||
|
||
The vote email will link to this section of this document, so this is where we will need to provide instructions for | ||
verifying a release candidate. | ||
|
||
The `dev/release/verify-release-candidate.sh` is a script in this repository that can assist in the verification | ||
process. It checks the hashes and runs the build. It does not run the test suite because this takes a long time | ||
for this project and the test suites already run in CI before we create the release candidate, so running them | ||
again is somewhat redundant. | ||
|
||
```shell | ||
./dev/release/verify-release-candidate.sh 0.1.0 1 | ||
``` | ||
|
||
We hope that users will verify the release beyond running this script by testing the release candidate with their | ||
existing Spark jobs and report any functional issues or performance regressions. | ||
|
||
Another way of verifying the release is to follow the | ||
[Comet Benchmarking Guide](https://datafusion.apache.org/comet/contributor-guide/benchmarking.html) and compare | ||
performance with the previous release. | ||
|
||
## Post Release Activities | ||
|
||
Writing a blog post about the release is a great way to generate more interest in the project. We typically create a | ||
Google document where the community can collaborate on a blog post. Once the content is agreed then a PR can be | ||
created against the [datafusion-site](https://github.com/apache/datafusion-site) repository to add the blog post. Any | ||
contributor can drive this process. |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
#!/usr/bin/python | ||
############################################################################## | ||
# Licensed to the Apache Software Foundation (ASF) under one | ||
# or more contributor license agreements. See the NOTICE file | ||
# distributed with this work for additional information | ||
# regarding copyright ownership. The ASF licenses this file | ||
# to you under the Apache License, Version 2.0 (the | ||
# "License"); you may not use this file except in compliance | ||
# with the License. You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, | ||
# software distributed under the License is distributed on an | ||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
# KIND, either express or implied. See the License for the | ||
# specific language governing permissions and limitations | ||
# under the License. | ||
############################################################################## | ||
import fnmatch | ||
import re | ||
import sys | ||
import xml.etree.ElementTree as ET | ||
|
||
if len(sys.argv) != 3: | ||
sys.stderr.write("Usage: %s exclude_globs.lst rat_report.xml\n" % | ||
sys.argv[0]) | ||
sys.exit(1) | ||
|
||
exclude_globs_filename = sys.argv[1] | ||
xml_filename = sys.argv[2] | ||
|
||
globs = [line.strip() for line in open(exclude_globs_filename, "r")] | ||
|
||
tree = ET.parse(xml_filename) | ||
root = tree.getroot() | ||
resources = root.findall('resource') | ||
|
||
all_ok = True | ||
for r in resources: | ||
approvals = r.findall('license-approval') | ||
if not approvals or approvals[0].attrib['name'] == 'true': | ||
continue | ||
clean_name = re.sub('^[^/]+/', '', r.attrib['name']) | ||
excluded = False | ||
for g in globs: | ||
if fnmatch.fnmatch(clean_name, g): | ||
excluded = True | ||
break | ||
if not excluded: | ||
sys.stdout.write("NOT APPROVED: %s (%s): %s\n" % ( | ||
clean_name, r.attrib['name'], approvals[0].attrib['name'])) | ||
all_ok = False | ||
|
||
if not all_ok: | ||
sys.exit(1) | ||
|
||
print('OK') | ||
sys.exit(0) |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,135 @@ | ||
#!/bin/bash | ||
# | ||
# Licensed to the Apache Software Foundation (ASF) under one | ||
# or more contributor license agreements. See the NOTICE file | ||
# distributed with this work for additional information | ||
# regarding copyright ownership. The ASF licenses this file | ||
# to you under the Apache License, Version 2.0 (the | ||
# "License"); you may not use this file except in compliance | ||
# with the License. You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, | ||
# software distributed under the License is distributed on an | ||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
# KIND, either express or implied. See the License for the | ||
# specific language governing permissions and limitations | ||
# under the License. | ||
# | ||
|
||
# Adapted from https://github.com/apache/arrow-rs/tree/master/dev/release/create-tarball.sh | ||
|
||
# This script creates a signed tarball in | ||
# dev/dist/apache-datafusion-comet-<version>-<sha>.tar.gz and uploads it to | ||
# the "dev" area of the dist.apache.datafusion repository and prepares an | ||
# email for sending to the [email protected] list for a formal | ||
# vote. | ||
# | ||
# See release/README.md for full release instructions | ||
# | ||
# Requirements: | ||
# | ||
# 1. gpg setup for signing and have uploaded your public | ||
# signature to https://pgp.mit.edu/ | ||
# | ||
# 2. Logged into the apache svn server with the appropriate | ||
# credentials | ||
# | ||
# 3. Install the requests python package | ||
# | ||
# | ||
# Based in part on 02-source.sh from apache/arrow | ||
# | ||
|
||
set -e | ||
|
||
DEV_RELEASE_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" | ||
DEV_RELEASE_TOP_DIR="$(cd "${DEV_RELEASE_DIR}/../../" && pwd)" | ||
|
||
if [ "$#" -ne 2 ]; then | ||
echo "Usage: $0 <version> <rc>" | ||
echo "ex. $0 4.1.0 2" | ||
exit | ||
fi | ||
|
||
if [[ -z "${GH_TOKEN}" ]]; then | ||
echo "Please set personal github token through GH_TOKEN environment variable" | ||
exit | ||
fi | ||
|
||
version=$1 | ||
rc=$2 | ||
tag="${version}-rc${rc}" | ||
|
||
echo "Attempting to create ${tarball} from tag ${tag}" | ||
release_hash=$(cd "${DEV_RELEASE_TOP_DIR}" && git rev-list --max-count=1 ${tag}) | ||
|
||
release=apache-datafusion-comet-${version} | ||
distdir=${DEV_RELEASE_TOP_DIR}/dev/dist/${release}-rc${rc} | ||
tarname=${release}.tar.gz | ||
tarball=${distdir}/${tarname} | ||
url="https://dist.apache.org/repos/dist/dev/datafusion/${release}-rc${rc}" | ||
|
||
if [ -z "$release_hash" ]; then | ||
echo "Cannot continue: unknown git tag: ${tag}" | ||
fi | ||
|
||
echo "Draft email for [email protected] mailing list" | ||
echo "" | ||
echo "---------------------------------------------------------" | ||
cat <<MAIL | ||
To: [email protected] | ||
Subject: [VOTE] Release Apache DataFusion Comet ${version} RC${rc} | ||
Hi, | ||
I would like to propose a release of Apache DataFusion Comet version ${version}. | ||
This release candidate is based on commit: ${release_hash} [1] | ||
The proposed release tarball and signatures are hosted at [2]. | ||
The changelog is located at [3]. | ||
Please download, verify checksums and signatures, run the unit tests, and vote | ||
on the release. The vote will be open for at least 72 hours. | ||
Only votes from PMC members are binding, but all members of the community are | ||
encouraged to test the release and vote with "(non-binding)". | ||
The standard verification procedure is documented at https://github.com/apache/datafusion-comet/blob/main/dev/release/README.md#verifying-release-candidates. | ||
[ ] +1 Release this as Apache DataFusion Comet ${version} | ||
[ ] +0 | ||
[ ] -1 Do not release this as Apache DataFusion Comet ${version} because... | ||
Here is my vote: | ||
+1 | ||
[1]: https://github.com/apache/datafusion-comet/tree/${release_hash} | ||
[2]: ${url} | ||
[3]: https://github.com/apache/datafusion-comet/blob/${release_hash}/CHANGELOG.md | ||
echo "---------------------------------------------------------" | ||
|
||
|
||
# create <tarball> containing the files in git at $release_hash | ||
# the files in the tarball are prefixed with {version} (e.g. 4.0.1) | ||
mkdir -p ${distdir} | ||
(cd "${DEV_RELEASE_TOP_DIR}" && git archive ${release_hash} --prefix ${release}/ | gzip > ${tarball}) | ||
|
||
echo "Running rat license checker on ${tarball}" | ||
${DEV_RELEASE_DIR}/run-rat.sh ${tarball} | ||
|
||
echo "Signing tarball and creating checksums" | ||
gpg --armor --output ${tarball}.asc --detach-sig ${tarball} | ||
# create signing with relative path of tarball | ||
# so that they can be verified with a command such as | ||
# shasum --check apache-datafusion-comet-0.1.0-rc1.tar.gz.sha512 | ||
(cd ${distdir} && shasum -a 256 ${tarname}) > ${tarball}.sha256 | ||
(cd ${distdir} && shasum -a 512 ${tarname}) > ${tarball}.sha512 | ||
|
||
|
||
echo "Uploading to datafusion dist/dev to ${url}" | ||
svn co --depth=empty https://dist.apache.org/repos/dist/dev/datafusion ${DEV_RELEASE_TOP_DIR}/dev/dist | ||
svn add ${distdir} | ||
svn ci -m "Apache DataFusion Comet ${version} ${rc}" ${distdir} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
*.gitignore | ||
*.dockerignore | ||
.github/pull_request_template.md | ||
.gitmodules | ||
core/Cargo.lock | ||
core/testdata/backtrace.txt | ||
core/testdata/stacktrace.txt | ||
docs/spark_builtin_expr_coverage.txt | ||
docs/source/contributor-guide/benchmark-results/**/*.json | ||
rust-toolchain | ||
spark/src/test/resources/tpcds-query-results/*.out | ||
spark/src/test/resources/tpcds-plan-stability/approved-plans*/**/explain.txt | ||
spark/src/test/resources/tpcds-plan-stability/approved-plans*/**/simplified.txt | ||
spark/src/test/resources/tpch-query-results/*.out | ||
spark/src/test/resources/tpch-extended/q1.sql | ||
spark/inspections/CometTPC*results.txt |
Oops, something went wrong.