2020-05-15 20:00:15 +03:00
|
|
|
<!--
|
|
|
|
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.
|
|
|
|
-->
|
|
|
|
|
|
|
|
<!-- START doctoc generated TOC please keep comment here to allow auto update -->
|
|
|
|
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
|
|
|
|
- [Backport packages](#backport-packages)
|
|
|
|
|
|
|
|
- [Overview](#overview)
|
|
|
|
- [Deciding when to release](#deciding-when-to-release)
|
|
|
|
- [Generating release notes](#generating-release-notes)
|
|
|
|
- [Content of the release notes](#content-of-the-release-notes)
|
|
|
|
- [Preparing backport packages](#preparing-backport-packages)
|
|
|
|
- [Releasing the packages](#releasing-the-packages)
|
2020-05-19 15:17:22 +03:00
|
|
|
- [Building an RC for SVN apache upload](#building-an-rc-for-svn-apache-upload)
|
|
|
|
- [Publishing the RC to PyPI](#publishing-the-rc-to-pypi)
|
2020-05-17 21:38:46 +03:00
|
|
|
- [Voting on RC candidates](#voting-on-rc-candidates)
|
|
|
|
- [Publishing the final release](#publishing-the-final-release)
|
2020-05-15 20:00:15 +03:00
|
|
|
|
|
|
|
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
|
|
|
|
|
|
|
|
|
|
|
|
# Overview
|
|
|
|
|
|
|
|
This document describes the process of preparing backport packages for release and releasing them.
|
|
|
|
Backport packages are packages (per provider) that make it possible to easily use Hooks, Operators,
|
|
|
|
Sensors, Protocols, and Secrets from the 2.0 version of Airflow in the 1.10.* series.
|
|
|
|
|
|
|
|
Once you release the packages, you can simply install them with:
|
|
|
|
|
|
|
|
```
|
|
|
|
pip install apache-airflow-backport-providers-<PROVIDER>[<EXTRAS>]
|
|
|
|
```
|
|
|
|
|
|
|
|
Where `<PROVIDER>` is the provider id and `<EXTRAS>` are optional extra packages to install.
|
|
|
|
You can find the provider packages dependencies and extras in the README.md files in each provider
|
|
|
|
package (in `airflow/providers/<PROVIDER>` folder) as well as in the PyPI installation page.
|
|
|
|
|
|
|
|
Backport providers are a great way to migrate your DAGs to Airflow-2.0 compatible DAGs. You can
|
|
|
|
switch to the new Airflow-2.0 packages in your DAGs, long before you attempt to migrate
|
|
|
|
airflow to 2.0 line.
|
|
|
|
|
|
|
|
# Deciding when to release
|
|
|
|
|
|
|
|
You can release backport packages separately on an ad-hoc basis, whenever we find that a given provider needs
|
|
|
|
to be released - due to new features or due to bug fixes. You can release each backport package
|
|
|
|
separately - although we decided to release all backport packages together in one go 2020.05.10.
|
|
|
|
|
|
|
|
We are using the [CALVER](https://calver.org/) versioning scheme for the backport packages. We also have an
|
|
|
|
automated way to prepare and build the packages, so it should be very easy to release the packages often and
|
|
|
|
separately.
|
|
|
|
|
|
|
|
# Generating release notes
|
|
|
|
|
|
|
|
When you want to prepare release notes for a package, you need to run:
|
|
|
|
|
|
|
|
```
|
2020-06-16 13:36:46 +03:00
|
|
|
./breeze prepare-backport-readme [YYYY.MM.DD] <PACKAGE_ID> ...
|
2020-05-15 20:00:15 +03:00
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
* YYYY.MM.DD - is the CALVER version of the package to prepare. Note that this date cannot be earlier
|
|
|
|
than the already released version (the script will fail if it will be). It can be set in the future
|
2020-05-26 20:12:21 +03:00
|
|
|
anticipating the future release date. If you do not specify date, the date will be taken from the last
|
|
|
|
generated readme - the last generated CHANGES file will be updated.
|
2020-05-15 20:00:15 +03:00
|
|
|
|
|
|
|
* <PACKAGE_ID> is usually directory in the `airflow/providers` folder (for example `google` but in several
|
|
|
|
cases, it might be one level deeper separated with `.` for example `apache.hive`
|
|
|
|
|
|
|
|
You can run the script with multiple package names if you want to prepare several packages at the same time.
|
2020-05-26 20:12:21 +03:00
|
|
|
Before you specify a new version, the last released version is update in case you have any bug fixes
|
|
|
|
merged in the master recently, they will be automatically taken into account.
|
|
|
|
|
|
|
|
Typically, the first time you run release before release, you run it with target release.date:
|
|
|
|
|
|
|
|
```
|
2020-06-16 13:36:46 +03:00
|
|
|
./breeze prepare-backport-readme 2020.05.20 google
|
2020-05-26 20:12:21 +03:00
|
|
|
```
|
|
|
|
|
|
|
|
Then while you iterate with merges and release candidates you update the release date wihout providing
|
|
|
|
the date (to update the existing release notes)
|
|
|
|
|
|
|
|
```
|
2020-06-16 13:36:46 +03:00
|
|
|
./breeze prepare-backport-readme google
|
2020-05-26 20:12:21 +03:00
|
|
|
```
|
|
|
|
|
2020-05-15 20:00:15 +03:00
|
|
|
|
|
|
|
Whenever you are satisfied with the release notes generated you can commit generated changes/new files
|
|
|
|
to the repository.
|
|
|
|
|
|
|
|
|
|
|
|
# Content of the release notes
|
|
|
|
|
|
|
|
The script generates all the necessary information:
|
|
|
|
|
|
|
|
* summary of requirements for each backport package
|
|
|
|
* list of dependencies (including extras to install them) when package
|
|
|
|
depends on other providers packages
|
|
|
|
* table of new hooks/operators/sensors/protocols/secrets
|
|
|
|
* table of moved hooks/operators/sensors/protocols/secrets with the
|
|
|
|
information where they were moved from
|
|
|
|
* changelog of all the changes to the provider package (this will be
|
|
|
|
automatically updated with an incremental changelog whenever we decide to
|
|
|
|
release separate packages.
|
|
|
|
|
|
|
|
The script generates two types of files:
|
|
|
|
|
|
|
|
* PROVIDERS_CHANGES_YYYY.MM.DD.md which keeps information about changes (commits) in a particular
|
|
|
|
version of the provider package. The file for latest release gets updated when you iterate with
|
|
|
|
the same new date/version, but it never changes automatically for already released packages.
|
|
|
|
This way - just before the final release, you can manually correct the changes file if you
|
|
|
|
want to remove some changes from the file.
|
|
|
|
|
|
|
|
* README.md which is regenerated every time you run the script (unless there are no changes since
|
|
|
|
the last time you generated the release notes
|
|
|
|
|
|
|
|
Note that our CI system builds the release notes for backport packages automatically with every build and
|
|
|
|
current date - this way you might be sure the automated generation of the release notes continues to
|
2020-08-04 02:26:59 +03:00
|
|
|
work. You can also preview the generated readme files (by downloading artifacts from Github Actions).
|
2020-05-15 20:00:15 +03:00
|
|
|
The script does not modify the README and CHANGES files if there is no change in the repo for that provider.
|
|
|
|
|
|
|
|
# Preparing backport packages
|
|
|
|
|
|
|
|
As part of preparation to Airflow 2.0 we decided to prepare backport of providers package that will be
|
|
|
|
possible to install in the Airflow 1.10.*, Python 3.6+ environment.
|
|
|
|
Some of those packages will be soon (after testing) officially released via PyPi, but you can build and
|
|
|
|
prepare such packages on your own easily.
|
|
|
|
|
|
|
|
You build those packages in the breeze environment, so you do not have to worry about common environment.
|
|
|
|
|
|
|
|
Note that readme release notes have to be generated first, so that the package preparation script reads
|
|
|
|
the latest version from the latest version of release notes prepared.
|
|
|
|
|
|
|
|
* The provider package ids PACKAGE_ID are subdirectories in the ``providers`` directory. Sometimes they
|
|
|
|
are one level deeper (`apache/hive` folder for example, in which case PACKAGE_ID uses "." to separate
|
|
|
|
the folders (for example Apache Hive's PACKAGE_ID is `apache.hive` ). You can see the list of all available
|
|
|
|
providers by running:
|
|
|
|
|
|
|
|
```bash
|
|
|
|
./breeze prepare-backport-packages -- --help
|
|
|
|
```
|
|
|
|
|
2020-05-19 15:17:22 +03:00
|
|
|
The examples below show how you can build selected packages, but you can also build all packages by
|
|
|
|
omitting the package ids altogether.
|
|
|
|
|
|
|
|
* To build the release candidate packages for SVN Apache upload run the following command:
|
|
|
|
|
|
|
|
```bash
|
2020-06-16 13:36:46 +03:00
|
|
|
./breeze prepare-backport-packages --version-suffix-for-svn=rc1 [PACKAGE_ID] ...
|
2020-05-19 15:17:22 +03:00
|
|
|
```
|
|
|
|
|
|
|
|
for example:
|
2020-05-15 20:00:15 +03:00
|
|
|
|
|
|
|
```bash
|
2020-06-16 13:36:46 +03:00
|
|
|
./breeze prepare-backport-packages --version-suffix-for-svn=rc1 http ...
|
2020-05-19 15:17:22 +03:00
|
|
|
```
|
|
|
|
|
|
|
|
* To build the release candidate packages for PyPI upload run the following command:
|
|
|
|
|
|
|
|
```bash
|
2020-06-16 13:36:46 +03:00
|
|
|
./breeze prepare-backport-packages --version-suffix-for-pypi=rc1 [PACKAGE_ID] ...
|
2020-05-15 20:00:15 +03:00
|
|
|
```
|
|
|
|
|
|
|
|
for example:
|
|
|
|
|
|
|
|
```bash
|
2020-06-16 13:36:46 +03:00
|
|
|
./breeze prepare-backport-packages --version-suffix-for-pypi=rc1 http ...
|
2020-05-15 20:00:15 +03:00
|
|
|
```
|
|
|
|
|
2020-05-19 15:17:22 +03:00
|
|
|
|
|
|
|
* To build the final release packages run the following command:
|
2020-05-15 20:00:15 +03:00
|
|
|
|
|
|
|
```bash
|
2020-06-16 13:36:46 +03:00
|
|
|
./breeze prepare-backport-packages [PACKAGE_ID] ...
|
2020-05-15 20:00:15 +03:00
|
|
|
```
|
|
|
|
for example:
|
|
|
|
|
|
|
|
```bash
|
2020-06-16 13:36:46 +03:00
|
|
|
./breeze prepare-backport-packages http ...
|
2020-05-15 20:00:15 +03:00
|
|
|
```
|
|
|
|
|
2020-05-19 15:17:22 +03:00
|
|
|
* For each package, this creates a wheel package and source distribution package in your `dist` folder with
|
|
|
|
names following the patterns:
|
2020-05-15 20:00:15 +03:00
|
|
|
|
2020-05-19 15:17:22 +03:00
|
|
|
* `apache_airflow_backport_providers_<PROVIDER>_YYYY.[M]M.[D]D[suffix]-py3-none-any.whl`
|
|
|
|
* `apache-airflow-backport-providers-<PROVIDER>-YYYY.[M]M.[D]D[suffix].tar.gz`
|
2020-05-15 20:00:15 +03:00
|
|
|
|
2020-05-19 15:17:22 +03:00
|
|
|
Note! Even if we always use the two-digit month and day when generating the readme files,
|
|
|
|
the version in PyPI does not contain the leading 0s in version name - therefore the artifacts generated
|
|
|
|
also do not container the leading 0s.
|
2020-05-15 20:00:15 +03:00
|
|
|
|
2020-05-19 15:17:22 +03:00
|
|
|
* You can install the .whl packages with `pip install <PACKAGE_FILE>`
|
2020-05-15 20:00:15 +03:00
|
|
|
|
|
|
|
# Releasing the packages
|
|
|
|
|
2020-05-19 15:17:22 +03:00
|
|
|
## Building an RC for SVN apache upload
|
2020-05-17 21:38:46 +03:00
|
|
|
|
|
|
|
The Release Candidate artifacts we vote upon should be the exact ones we vote against, without any
|
2020-05-19 15:17:22 +03:00
|
|
|
modification than renaming i.e. the contents of the files must be the same between voted
|
2020-05-17 21:38:46 +03:00
|
|
|
release candidate and final release. Because of this the version in the built artifacts
|
2020-05-19 15:17:22 +03:00
|
|
|
that will become the official Apache releases must not include the rcN suffix. They also need
|
|
|
|
to be signed and have checksum files. You can generate the checksum/signature files by running
|
|
|
|
the "dev/sign.sh" script (assuming you have the right PGP key set-up for signing). The script
|
|
|
|
generates corresponding .asc and .sha512 files for each file to sign.
|
|
|
|
|
|
|
|
|
|
|
|
### Make sure your public key is on id.apache.org and in KEYS
|
|
|
|
|
|
|
|
You will need to sign the release artifacts with your pgp key. After you have created a key, make sure you:
|
|
|
|
|
|
|
|
* Add your GPG pub key to [KEYS](https://dist.apache.org/repos/dist/release/airflow/KEYS) ,
|
|
|
|
follow the instructions at the top of that file. Upload your GPG public key to https://pgp.mit.edu
|
|
|
|
|
|
|
|
* Add your key fingerprint to [https://id.apache.org]/https://id.apache.org/ (login with your apache
|
|
|
|
credentials, paste your fingerprint into the pgp fingerprint field and hit save).
|
|
|
|
|
|
|
|
* In case you do not have your key you can generate one using this command. Ideally use your `@apache.org`
|
|
|
|
id for the key.
|
|
|
|
|
|
|
|
```bash
|
|
|
|
# Create PGP Key
|
|
|
|
gpg --gen-key
|
|
|
|
```
|
|
|
|
|
|
|
|
* Update your key in the committer's key repo
|
|
|
|
|
|
|
|
```bash
|
|
|
|
# Checkout ASF dist repo
|
|
|
|
svn checkout https://dist.apache.org/repos/dist/release/airflow
|
|
|
|
cd airflow
|
|
|
|
|
|
|
|
|
|
|
|
# Add your GPG pub key to KEYS file. Replace "<Your ID>" with your @apache.org id
|
|
|
|
(gpg --list-sigs "<Your ID>" && gpg --armor --export "<Your ID>" ) >> KEYS
|
|
|
|
|
|
|
|
|
|
|
|
# Commit the changes
|
|
|
|
svn commit -m "Add PGP key for <Your ID>>"
|
|
|
|
```
|
|
|
|
|
|
|
|
### Building and signing the packages
|
2020-05-17 21:38:46 +03:00
|
|
|
|
|
|
|
|
|
|
|
* Set environment variables (version and root of airflow repo)
|
|
|
|
|
|
|
|
```bash
|
2020-05-19 15:17:22 +03:00
|
|
|
export VERSION=2020.5.20rc2
|
2020-05-17 21:38:46 +03:00
|
|
|
export AIRFLOW_REPO_ROOT=$(pwd)
|
|
|
|
|
|
|
|
```
|
|
|
|
|
2020-05-26 14:54:58 +03:00
|
|
|
* Build the source package:
|
2020-05-17 21:38:46 +03:00
|
|
|
|
|
|
|
```
|
2020-05-26 14:54:58 +03:00
|
|
|
./backport_packages/build_source_package.sh
|
2020-05-17 21:38:46 +03:00
|
|
|
|
|
|
|
```
|
|
|
|
|
2020-05-26 14:54:58 +03:00
|
|
|
It will generate `apache-airflow-backport-providers-${VERSION}-source.tar.gz`
|
2020-05-17 21:38:46 +03:00
|
|
|
|
2020-05-19 15:17:22 +03:00
|
|
|
* Generate the packages - since we are preparing packages for SVN repo, we should use the right switch. Note
|
|
|
|
that this will clean up dist folder before generating the packages, so it will only contain the packages
|
|
|
|
you intended to build.
|
2020-05-17 21:38:46 +03:00
|
|
|
|
2020-05-19 15:17:22 +03:00
|
|
|
```bash
|
|
|
|
./breeze prepare-backport-packages --version-suffix-for-svn rc1
|
|
|
|
```
|
|
|
|
|
|
|
|
if you ony build few packages, run:
|
2020-05-17 21:38:46 +03:00
|
|
|
|
|
|
|
```bash
|
2020-06-16 13:36:46 +03:00
|
|
|
./breeze prepare-backport-packages --version-suffix-for-svn rc1 PACKAGE PACKAGE ....
|
2020-05-17 21:38:46 +03:00
|
|
|
```
|
|
|
|
|
|
|
|
* Move the source tarball to dist folder
|
|
|
|
|
|
|
|
```bash
|
|
|
|
mv apache-airflow-backport-providers-${VERSION}-source.tar.gz dist
|
|
|
|
```
|
|
|
|
|
|
|
|
* Sign all your packages
|
|
|
|
|
|
|
|
```bash
|
2020-05-19 15:17:22 +03:00
|
|
|
./dev/sign.sh dist/*
|
2020-05-17 21:38:46 +03:00
|
|
|
```
|
|
|
|
|
|
|
|
* Push tags
|
|
|
|
|
|
|
|
```bash
|
|
|
|
git push --tags
|
|
|
|
```
|
|
|
|
|
2020-05-19 15:17:22 +03:00
|
|
|
### Committing the packages to Apache SVN repo
|
|
|
|
|
2020-05-17 21:38:46 +03:00
|
|
|
* Push the artifacts to ASF dev dist repo
|
|
|
|
|
|
|
|
```bash
|
2020-05-19 15:17:22 +03:00
|
|
|
# First clone the repo if you do not have it
|
2020-05-17 21:38:46 +03:00
|
|
|
svn checkout https://dist.apache.org/repos/dist/dev/airflow airflow-dev
|
|
|
|
|
2020-05-19 15:17:22 +03:00
|
|
|
# update the repo in case you have it already
|
|
|
|
cd airflow-dev
|
|
|
|
svn update
|
|
|
|
|
|
|
|
# Create a new folder for the release.
|
2020-05-17 21:38:46 +03:00
|
|
|
cd airflow-dev/backport-providers
|
|
|
|
svn mkdir ${VERSION}
|
|
|
|
|
2020-05-19 15:17:22 +03:00
|
|
|
# Move the artifacts to svn folder
|
|
|
|
mv ${AIRFLOW_REPO_ROOT}/dist/* ${VERSION}/
|
2020-05-17 21:38:46 +03:00
|
|
|
|
2020-05-19 15:17:22 +03:00
|
|
|
# Add and commit
|
|
|
|
svn add ${VERSION}/*
|
2020-05-17 21:38:46 +03:00
|
|
|
svn commit -m "Add artifacts for Airflow ${VERSION}"
|
2020-05-19 15:17:22 +03:00
|
|
|
|
2020-05-17 21:38:46 +03:00
|
|
|
cd ${AIRFLOW_REPO_ROOT}
|
|
|
|
```
|
|
|
|
|
2020-05-19 15:17:22 +03:00
|
|
|
Verify that the files are available at
|
|
|
|
[backport-providers](https://dist.apache.org/repos/dist/dev/airflow/backport-providers/)
|
2020-05-17 21:38:46 +03:00
|
|
|
|
|
|
|
|
2020-05-19 15:17:22 +03:00
|
|
|
## Publishing the RC to PyPI
|
2020-05-17 21:38:46 +03:00
|
|
|
|
2020-05-19 15:17:22 +03:00
|
|
|
In order to publish to PyPI you just need to build and release packages. The packages should however
|
|
|
|
contain the rcN suffix in the version name as well, so you need to use `--version-suffix-for-pypi` switch
|
|
|
|
to prepare those packages. Note that these are different packages than the ones used for SVN upload
|
|
|
|
though they should be generated from the same sources.
|
2020-05-17 21:38:46 +03:00
|
|
|
|
2020-05-19 15:17:22 +03:00
|
|
|
### Configure your PyPI uploads
|
2020-05-17 21:38:46 +03:00
|
|
|
|
2020-05-19 15:17:22 +03:00
|
|
|
In order to not reveal your password in plain text, it's best if you create and configure API Upload tokens.
|
|
|
|
You can add and copy the tokens here:
|
2020-05-17 21:38:46 +03:00
|
|
|
|
2020-05-19 15:17:22 +03:00
|
|
|
* [Test PyPI](https://test.pypi.org/manage/account/token/)
|
|
|
|
* [Prod PyPI](https://pypi.org/manage/account/token/)
|
2020-05-17 21:38:46 +03:00
|
|
|
|
|
|
|
|
|
|
|
Create a ~/.pypirc file:
|
|
|
|
|
|
|
|
```bash
|
|
|
|
[distutils]
|
|
|
|
index-servers =
|
|
|
|
pypi
|
|
|
|
pypitest
|
|
|
|
|
|
|
|
[pypi]
|
2020-05-19 15:17:22 +03:00
|
|
|
username=__token__
|
|
|
|
password=<API Upload Token>
|
2020-05-17 21:38:46 +03:00
|
|
|
|
|
|
|
[pypitest]
|
|
|
|
repository=https://test.pypi.org/legacy/
|
2020-05-19 15:17:22 +03:00
|
|
|
username=__token__
|
|
|
|
password=<API Upload Token>
|
|
|
|
|
2020-05-17 21:38:46 +03:00
|
|
|
```
|
|
|
|
|
|
|
|
Set proper permissions for the pypirc file:
|
|
|
|
|
|
|
|
```bash
|
|
|
|
$ chmod 600 ~/.pypirc
|
|
|
|
```
|
|
|
|
|
|
|
|
* Install twine if you do not have it already.
|
|
|
|
|
|
|
|
```bash
|
|
|
|
pip install twine
|
|
|
|
```
|
|
|
|
|
2020-05-19 15:17:22 +03:00
|
|
|
### Generate PyPI packages
|
|
|
|
|
|
|
|
* Generate the packages with the right RC version (specify the version suffix with PyPI switch). Note that
|
|
|
|
this will clean up dist folder before generating the packages so you will only have the right packages there.
|
|
|
|
|
|
|
|
```bash
|
|
|
|
./breeze prepare-backport-packages --version-suffix-for-pypi rc1
|
|
|
|
```
|
|
|
|
|
|
|
|
if you ony build few packages, run:
|
|
|
|
|
|
|
|
```bash
|
2020-06-16 13:36:46 +03:00
|
|
|
./breeze prepare-backport-packages --version-suffix-for-pypi rc1 PACKAGE PACKAGE ....
|
2020-05-19 15:17:22 +03:00
|
|
|
```
|
|
|
|
|
2020-05-17 21:38:46 +03:00
|
|
|
* Verify the artifacts that would be uploaded:
|
|
|
|
|
|
|
|
```bash
|
|
|
|
twine check dist/*
|
|
|
|
```
|
|
|
|
|
|
|
|
* Upload the package to PyPi's test environment:
|
|
|
|
|
|
|
|
```bash
|
|
|
|
twine upload -r pypitest dist/*
|
|
|
|
```
|
|
|
|
|
2020-05-19 15:17:22 +03:00
|
|
|
* Verify that the test packages look good by downloading it and installing them into a virtual environment.
|
|
|
|
Twine prints the package links as output - separately for each package.
|
2020-05-17 21:38:46 +03:00
|
|
|
|
|
|
|
* Upload the package to PyPi's production environment:
|
|
|
|
|
|
|
|
```bash
|
|
|
|
twine upload -r pypi dist/*
|
|
|
|
```
|
|
|
|
|
|
|
|
Copy the list of links to the uploaded packages - they will be useful in preparing VOTE email.
|
|
|
|
|
2020-05-19 15:17:22 +03:00
|
|
|
* Again, confirm that the packages are available under the links printed.
|
2020-05-17 21:38:46 +03:00
|
|
|
|
|
|
|
## Voting on RC candidates
|
|
|
|
|
|
|
|
Make sure the packages are in https://dist.apache.org/repos/dist/dev/airflow/backport-providers/
|
|
|
|
|
2020-05-19 15:17:22 +03:00
|
|
|
Send out a vote to the dev@airflow.apache.org mailing list. Here you can prepare text of the
|
|
|
|
email using the ${VERSION} variable you already set in the command line.
|
2020-05-17 21:38:46 +03:00
|
|
|
|
2020-05-19 15:17:22 +03:00
|
|
|
```bash
|
|
|
|
cat <<EOF
|
2020-05-17 21:38:46 +03:00
|
|
|
|
2020-05-19 15:17:22 +03:00
|
|
|
[VOTE] Airflow Backport Providers ${VERSION}
|
2020-05-17 21:38:46 +03:00
|
|
|
|
|
|
|
Hey all,
|
|
|
|
|
2020-05-19 15:17:22 +03:00
|
|
|
I have cut Airflow Backport Providers ${VERSION}. This email is calling a vote on the release,
|
|
|
|
which will last for 72 hours - which means that it will end on $(date -d '+3 days').
|
2020-05-17 21:38:46 +03:00
|
|
|
|
|
|
|
Consider this my (binding) +1.
|
|
|
|
|
2020-05-19 15:17:22 +03:00
|
|
|
Airflow Backport Providers ${VERSION} are available at:
|
|
|
|
https://dist.apache.org/repos/dist/dev/airflow/backport-providers/${VERSION}/
|
2020-05-17 21:38:46 +03:00
|
|
|
|
2020-05-19 15:17:22 +03:00
|
|
|
*apache-airflow-backport-providers-${VERSION}-source.tar.gz* is a source release that comes
|
|
|
|
with INSTALL instructions.
|
2020-05-17 21:38:46 +03:00
|
|
|
|
2020-05-19 15:17:22 +03:00
|
|
|
*apache-airflow-backport-providers-<PROVIDER>-${VERSION}-bin.tar.gz* are the binary
|
|
|
|
Python "sdist" release.
|
2020-05-17 21:38:46 +03:00
|
|
|
|
|
|
|
Public keys are available at:
|
|
|
|
https://dist.apache.org/repos/dist/release/airflow/KEYS
|
|
|
|
|
2020-05-19 15:17:22 +03:00
|
|
|
Please vote accordingly:
|
|
|
|
|
|
|
|
[ ] +1 approve
|
|
|
|
[ ] +0 no opinion
|
|
|
|
[ ] -1 disapprove with the reason
|
|
|
|
|
|
|
|
|
2020-05-17 21:38:46 +03:00
|
|
|
Only votes from PMC members are binding, but members of the community are
|
|
|
|
encouraged to test the release and vote with "(non-binding)".
|
|
|
|
|
2020-05-19 15:17:22 +03:00
|
|
|
Please note that the version number excludes the 'rcX' string, so it's now
|
|
|
|
simply ${VERSION%rc?}. This will allow us to rename the artifact without modifying
|
2020-05-17 21:38:46 +03:00
|
|
|
the artifact checksums when we actually release.
|
|
|
|
|
|
|
|
Each of the packages contains detailed changelog. Here is the list of links to
|
|
|
|
the released packages and changelogs:
|
|
|
|
|
|
|
|
TODO: Paste the result of twine upload
|
|
|
|
|
|
|
|
Cheers,
|
2020-05-19 15:17:22 +03:00
|
|
|
<TODO: Your Name>
|
|
|
|
|
|
|
|
EOF
|
|
|
|
|
2020-05-17 21:38:46 +03:00
|
|
|
```
|
|
|
|
|
|
|
|
* Once the vote has been passed, you will need to send a result vote to dev@airflow.apache.org:
|
|
|
|
|
2020-05-19 15:17:22 +03:00
|
|
|
```bash
|
|
|
|
|
|
|
|
cat <<EOF
|
|
|
|
[RESULT][VOTE] Airflow Backport Providers ${VERSION}
|
2020-05-17 21:38:46 +03:00
|
|
|
|
|
|
|
|
|
|
|
Hey all,
|
|
|
|
|
2020-05-19 15:17:22 +03:00
|
|
|
Airflow Backport Providers ${VERSION%rc?} (based on the rc candidate) has been accepted.
|
2020-05-17 21:38:46 +03:00
|
|
|
|
2020-05-19 15:17:22 +03:00
|
|
|
N "+1" binding votes received:
|
2020-05-17 21:38:46 +03:00
|
|
|
- PMC Member (binding)
|
|
|
|
...
|
|
|
|
|
|
|
|
N "+1" non-binding votes received:
|
|
|
|
|
|
|
|
- COMMITER (non-binding)
|
|
|
|
|
|
|
|
Vote thread:
|
2020-05-19 15:17:22 +03:00
|
|
|
https://lists.apache.org/thread.html/<TODO:REPLACE_ME_WITH_THE_VOTING_THREAD>@%3Cdev.airflow.apache.org%3E
|
2020-05-17 21:38:46 +03:00
|
|
|
|
|
|
|
I'll continue with the release process and the release announcement will follow shortly.
|
|
|
|
|
|
|
|
Cheers,
|
2020-05-19 15:17:22 +03:00
|
|
|
<TODO: Your Name>
|
|
|
|
|
|
|
|
EOF
|
2020-05-17 21:38:46 +03:00
|
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
## Publishing the final release
|
|
|
|
|
2020-05-19 15:17:22 +03:00
|
|
|
After the votes pass (see above), you need to migrate the RC artifacts that passed to this repository:
|
|
|
|
https://dist.apache.org/repos/dist/release/airflow/
|
|
|
|
The migration should include renaming of the files so that they no longer have the RC number in their
|
|
|
|
filenames.
|
|
|
|
|
|
|
|
### Copying latest release candidates to releae
|
|
|
|
|
|
|
|
The best way of doing this is to svn cp between the two repos (this avoids having to upload the binaries
|
|
|
|
again, and gives a clearer history in the svn commit logs.
|
|
|
|
|
|
|
|
We also need to archive older releases before copying the new ones
|
|
|
|
[Release policy](http://www.apache.org/legal/release-policy.html#when-to-archive)
|
|
|
|
|
|
|
|
|
|
|
|
```bash
|
|
|
|
# Set the variables
|
|
|
|
export VERSION_RC=2020.5.20rc2
|
|
|
|
export VERSION=${RC/rc?/}
|
|
|
|
|
|
|
|
# First clone the repo if it's not done yet
|
|
|
|
svn checkout https://dist.apache.org/repos/dist/release/airflow airflow-release
|
|
|
|
|
|
|
|
# Create new folder for the release
|
|
|
|
cd airflow-release
|
|
|
|
svn update
|
|
|
|
|
|
|
|
# Create backport-providers folder if it does not exist
|
|
|
|
# All latest releases are ketp in this one folder without version sub-folder
|
|
|
|
mkdir backport-providers
|
|
|
|
|
|
|
|
# Move the artifacts to svn folder & delete old releases
|
|
|
|
# TODO: develop script to do it
|
|
|
|
|
|
|
|
|
|
|
|
# Commit to SVN
|
|
|
|
svn commit -m "Release Airflow ${VERSION} from ${VERSION_RC}"
|
|
|
|
```
|