Skip to content
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

Remove all RCs after release #7060

Merged
merged 3 commits into from
Feb 2, 2025
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions dev/release/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -252,3 +252,13 @@ Rust Arrow Crates:
(cd parquet_derive && cargo publish)
(cd arrow-integration-test && cargo publish)
```

### Remove old artifacts in https://dist.apache.org/repos/dist/

There are RCs in https://dist.apache.org/repos/dist/dev/arrow/ and previous releases in https://dist.apache.org/repos/dist/release/arrow/ . RCs are needless after the vote passed. Previous releases should be removed from https://dist.apache.org/repos/dist/release/arrow/ . See also the ASF release document: https://www.apache.org/legal/release-policy.html#when-to-archive

We can remove old artifacts by the following script:

```shell
./dev/release/remove-old-artifacts.sh
```
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
# under the License.
#

# This script removes all but the most recent versions of arrow-rs
# from svn
# This script removes all RCs and all but the most recent versions of
# arrow-rs from svn.
#
# The older versions are in SVN history as well as available on the
# archive page https://archive.apache.org/dist/
Expand All @@ -29,17 +29,35 @@

set -e
set -u
set -o pipefail

svn_base="https://dist.apache.org/repos/dist/release/arrow"
echo "Remove all RCs"
dev_base_url=https://dist.apache.org/repos/dist/dev/arrow
old_rcs=$(
svn ls ${dev_base_url}/ | \
grep -E '^apache-arrow-rs-[0-9]' | \
sort --version-sort
)
for old_rc in $old_rcs; do
echo "Remove RC: ${old_rc}"
svn \
delete \
-m "Remove old Apache Arrow Rust RC: ${old_rc}" \
${dev_base_url}/${old_rc}
done

echo "Remove all but the most recent version"
release_base_url="https://dist.apache.org/repos/dist/release/arrow"
old_releases=$(
svn ls ${svn_base} | \
svn ls ${release_base_url} | \
grep -E '^arrow-rs-[0-9\.]+' | \
sort --version-sort --reverse | \
tail -n +2
)
for old_release_version in $old_releases; do
echo "Remove old release ${old_release_version}"
svn delete -m "Removing ${old_release_version}" ${svn_base}/${old_release_version}
echo "Remove old release: ${old_release_version}"
svn \
delete \
-m "Remove Apache Arrow Rust release: ${old_release_version}" \
${release_base_url}/${old_release_version}
done
9 changes: 9 additions & 0 deletions object_store/dev/release/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -226,3 +226,12 @@ following commands
cargo publish
```

### Remove old artifacts in https://dist.apache.org/repos/dist/

There are RCs in https://dist.apache.org/repos/dist/dev/arrow/ and previous releases in https://dist.apache.org/repos/dist/release/arrow/ . RCs are needless after the vote passed. Previous releases should be removed from https://dist.apache.org/repos/dist/release/arrow/ . See also the ASF release document: https://www.apache.org/legal/release-policy.html#when-to-archive

We can remove old artifacts by the following script:

```shell
./dev/release/remove-old-artifacts.sh
```
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
# under the License.
#

# This script removes all but the most recent versions of arrow-rs
# from svn
# This script removes all RCs and all but the most recent versions of
# object_store from svn.
#
# The older versions are in SVN history as well as available on the
# archive page https://archive.apache.org/dist/
Expand All @@ -29,17 +29,35 @@

set -e
set -u
set -o pipefail

svn_base="https://dist.apache.org/repos/dist/release/arrow"
echo "Remove all RCs"
dev_base_url=https://dist.apache.org/repos/dist/dev/arrow
old_rcs=$(
svn ls ${dev_base_url}/ | \
grep -E '^apache-arrow-object-store-rs-[0-9]' | \
sort --version-sort
)
for old_rc in $old_rcs; do
echo "Remove RC: ${old_rc}"
svn \
delete \
-m "Remove old Apache Arrow Rust Object Store RC: ${old_rc}" \
${dev_base_url}/${old_rc}
done

echo "Remove all but the most recent version"
release_base_url="https://dist.apache.org/repos/dist/release/arrow"
old_releases=$(
svn ls ${svn_base} | \
svn ls ${release_base_url} | \
grep -E '^arrow-object-store-rs-[0-9\.]+' | \
sort --version-sort --reverse | \
tail -n +2
)
for old_release_version in $old_releases; do
echo "Remove old release ${old_release_version}"
svn delete -m "Removing ${old_release_version}" ${svn_base}/${old_release_version}
echo "Remove old release: ${old_release_version}"
svn \
delete \
-m "Remove Apache Arrow Rust Object Store release: ${old_release_version}" \
${release_base_url}/${old_release_version}
done
Loading