This is an automated email from the ASF dual-hosted git repository.
ash pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/main by this push:
new 7d6d182c53 Convert release manager instructions to use "partial" svn
checkouts (#26589)
7d6d182c53 is described below
commit 7d6d182c53876898cca9c7ff0244de4a5cf7adb8
Author: Ash Berlin-Taylor <[email protected]>
AuthorDate: Thu Sep 22 12:46:00 2022 +0100
Convert release manager instructions to use "partial" svn checkouts (#26589)
This just makes it a bit easier to manage copying between dev and
release.
---
dev/README_RELEASE_AIRFLOW.md | 28 +++++++++------------
dev/README_RELEASE_PROVIDER_PACKAGES.md | 44 ++++++++++++++-------------------
2 files changed, 30 insertions(+), 42 deletions(-)
diff --git a/dev/README_RELEASE_AIRFLOW.md b/dev/README_RELEASE_AIRFLOW.md
index 5397cf5f28..c997324e94 100644
--- a/dev/README_RELEASE_AIRFLOW.md
+++ b/dev/README_RELEASE_AIRFLOW.md
@@ -314,12 +314,12 @@ The Release Candidate artifacts we vote upon should be
the exact ones we vote ag
```shell script
# First clone the repo
- svn checkout https://dist.apache.org/repos/dist/dev/airflow airflow-dev
- cd airflow-dev
- # Or move into it if you already have it cloned
+
+ [ -d asf-dist ] || svn checkout --depth=immediates
https://dist.apache.org/repos/dist asf-dist
+ svn update --set-depth=infinity asf-dist/dev/airflow
+ cd asf-dist/dev/airflow
# Create new folder for the release
- svn update
svn mkdir ${VERSION}
# Move the artifacts to svn folder & commit
@@ -896,19 +896,13 @@ The best way of doing this is to svn cp between the two
repos (this avoids havin
```shell script
# GO to Airflow Sources first
cd <YOUR_AIRFLOW_REPO_ROOT>
-export AIRFLOW_REPO_ROOT=$(pwd)
-
-# GO to Checked out DEV repo. Should be checked out before via:
-# svn checkout https://dist.apache.org/repos/dist/dev/airflow airflow-dev
-cd <YOUR_AIFLOW_DEV_SVN>
-svn update
-export AIRFLOW_DEV_SVN=$(pwd)
-
-# GO to Checked out RELEASE repo. Should be checked out before via:
-# svn checkout https://dist.apache.org/repos/dist/release/airflow
airflow-release
-cd <YOUR_AIFLOW_RELEASE_SVN>
-svn update
-export AIRFLOW_RELEASE_SVN=$(pwd)
+export AIRFLOW_REPO_ROOT="$(pwd)"
+cd ..
+
+[ -d asf-dist ] || svn checkout --depth=immediates
https://dist.apache.org/repos/dist asf-dist
+svn update --set-depth=infinity asf-dist/{release,dev}/airflow
+AIRFLOW_DEV_SVN="${PWD}/asf-dist/dev/airflow"
+cd asf-dist/release/airflow
export RC=2.0.2rc5
export VERSION=${RC/rc?/}
diff --git a/dev/README_RELEASE_PROVIDER_PACKAGES.md
b/dev/README_RELEASE_PROVIDER_PACKAGES.md
index af0238b556..f3e50301bc 100644
--- a/dev/README_RELEASE_PROVIDER_PACKAGES.md
+++ b/dev/README_RELEASE_PROVIDER_PACKAGES.md
@@ -196,14 +196,11 @@ popd
```shell script
# First clone the repo if you do not have it
-svn checkout https://dist.apache.org/repos/dist/dev/airflow airflow-dev
-
-# update the repo in case you have it already
-cd airflow-dev
-svn update
+[ -d asf-dist ] || svn checkout --depth=immediates
https://dist.apache.org/repos/dist asf-dist
+svn update --set-depth=infinity asf-dist/dev/airflow
# Create a new folder for the release.
-cd providers
+cd asf-dist/dev/providers
# Remove previously released providers
rm -rf *
@@ -730,40 +727,37 @@ 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)
-```shell script
+```bash
cd "<ROOT_OF_YOUR_AIRFLOW_REPO>"
# Set AIRFLOW_REPO_ROOT to the path of your git repo
-export AIRFLOW_REPO_ROOT=$(pwd)
-
-# Go to the directory where you have checked out the dev svn release
-# And go to the sub-folder with RC candidates
-cd "<ROOT_OF_YOUR_DEV_REPO>/providers/"
-export SOURCE_DIR=$(pwd)
-
-# If some packages have been excluded, remove them now
-# Check the packages
-ls *<provider>*
-# Remove them
-svn rm *<provider>*
+export AIRFLOW_REPO_ROOT="$(pwd)"
+cd ..
# Go the folder where you have checked out the release repo
cd "<ROOT_OF_YOUR_RELEASE_REPO>"
# or clone it if it's not done yet
-svn checkout https://dist.apache.org/repos/dist/release/airflow airflow-release
-cd airflow-release
-
+[ -d asf-dist ] || svn checkout --depth=immediates
https://dist.apache.org/repos/dist asf-dist
# Update to latest version
-svn update
+svn update --set-depth=infinity asf-dist/dev/airflow asf-dist/release/airflow
+
+SOURCE_DIR="${PWD}/dev/airflow/providers"
# Create providers folder if it does not exist
# All latest releases are kept in this one folder without version sub-folder
+cd asf-dist/release/airflow
mkdir -pv providers
cd providers
+# If some packages have been excluded, remove them now
+# Check the packages
+ls *<provider>*
+# Remove them
+svn rm *<provider>*
+
# Copy your providers with the target name to dist directory and to SVN
-rm ${AIRFLOW_REPO_ROOT}/dist/*
+rm "${AIRFLOW_REPO_ROOT}"/dist/*
-for file in ${SOURCE_DIR}/*
+for file in "${SOURCE_DIR}"/*
do
base_file=$(basename ${file})
cp -v "${file}" "${AIRFLOW_REPO_ROOT}/dist/${base_file//rc[0-9]/}"