pingtimeout opened a new pull request, #3475:
URL: https://github.com/apache/polaris/pull/3475
Follow-up of #3474.
This PR adds some cleanup step in the fourth release automation workflow
(publish artifacts after a vote succeeds). The cleanup step delete previously
released artifacts (binaries and helm charts) **after** the artifacts from the
current release have been published. This cleanup happens before the `helm
repo index .` step so that deleted helm charts are not indexed anymore.
I tested this by removing previous released versions (before
1.3.0-incubating) from the Apache dist release SVN repository. I did this
operation manually from my machine, but reused the bash commands that would
have been executed by the workflow. See below for the console output.
**Question for reviewers**.
This logic removes all previous versions, given that we do not currently cut
minor releases for any major version. This fact is strictly required for any
sort of automated cleanup. Otherwise we would need to maintain some memory of
the currently supported releases, so that the logic does not delete artifacts
from a previous-but-supported release.
Is this PR good-enough for now or should we abandon it and instead keep this
as a manual step?
```
bash-5.2$ for old_helm_version in ${old_helm_versions}; do
exec_process svn rm --username "$SVN_USERNAME" --password
"$SVN_PASSWORD" --non-interactive
"${release_helm_url}/${old_helm_version}" -m "Remove old Helm
chart ${old_helm_version} (superseded by ${version_without_rc})";
done
DEBUG: Executing 'svn rm --username ... --password ... --non-interactive
https://dist.apache.org/repos/dist/release/incubator/polaris/helm-chart/1.0.0-incubating
-m Remove old Helm chart 1.0.0-incubating (superseded by 1.3.0-incubating)'
Transaction de propagation...
Révision 81990 propagée.
DEBUG: Executing 'svn rm --username ... --password ... --non-interactive
https://dist.apache.org/repos/dist/release/incubator/polaris/helm-chart/1.0.1-incubating
-m Remove old Helm chart 1.0.1-incubating (superseded by 1.3.0-incubating)'
Transaction de propagation...
Révision 81991 propagée.
DEBUG: Executing 'svn rm --username ... --password ... --non-interactive
https://dist.apache.org/repos/dist/release/incubator/polaris/helm-chart/1.1.0-incubating
-m Remove old Helm chart 1.1.0-incubating (superseded by 1.3.0-incubating)'
Transaction de propagation...
Révision 81992 propagée.
DEBUG: Executing 'svn rm --username ... --password ... --non-interactive
https://dist.apache.org/repos/dist/release/incubator/polaris/helm-chart/1.2.0-incubating
-m Remove old Helm chart 1.2.0-incubating (superseded by 1.3.0-incubating)'
Transaction de propagation...
Révision 81993 propagée.
bash-5.2$ for old_version in ${old_versions}; do
exec_process svn rm --username "$SVN_USERNAME" --password "$SVN_PASSWORD"
--non-interactive "${release_artifacts_url}/${old_version}"
-m "Remove old release ${old_version} (superseded by
${version_without_rc})"; done
DEBUG: Executing 'svn rm --username ... --password ... --non-interactive
https://dist.apache.org/repos/dist/release/incubator/polaris/0.9.0-incubating
-m Remove old release 0.9.0-incubating (superseded by 1.3.0-incubating)'
Transaction de propagation...
Révision 81994 propagée.
DEBUG: Executing 'svn rm --username ... --password ... --non-interactive
https://dist.apache.org/repos/dist/release/incubator/polaris/1.0.0-incubating
-m Remove old release 1.0.0-incubating (superseded by 1.3.0-incubating)'
Transaction de propagation...
Révision 81995 propagée.
DEBUG: Executing 'svn rm --username ... --password ... --non-interactive
https://dist.apache.org/repos/dist/release/incubator/polaris/1.0.1-incubating
-m Remove old release 1.0.1-incubating (superseded by 1.3.0-incubating)'
Transaction de propagation...
Révision 81996 propagée.
DEBUG: Executing 'svn rm --username ... --password ... --non-interactive
https://dist.apache.org/repos/dist/release/incubator/polaris/1.1.0-incubating
-m Remove old release 1.1.0-incubating (superseded by 1.3.0-incubating)'
Transaction de propagation...
Révision 81997 propagée.
DEBUG: Executing 'svn rm --username ... --password ... --non-interactive
https://dist.apache.org/repos/dist/release/incubator/polaris/1.2.0-incubating
-m Remove old release 1.2.0-incubating (superseded by 1.3.0-incubating)'
Transaction de propagation...
Révision 81998 propagée.
bash-5.2$ exec_process svn commit --username "$SVN_USERNAME"
--password "$SVN_PASSWORD" --non-interactive -m "Update Helm index for
${version_without_rc} release"
DEBUG: Executing 'svn commit --username ... --password ... --non-interactive
-m Update Helm index for 1.3.0-incubating release'
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]