Add cleanup step of SVN dist release repo#3475
Merged
pingtimeout merged 1 commit intoapache:mainfrom Feb 18, 2026
Merged
Conversation
snazy
reviewed
Jan 20, 2026
Member
snazy
left a comment
There was a problem hiding this comment.
The change LGTM. The CI failure looks unrelated.
IMO we should automate as much as possible.
snazy
previously approved these changes
Jan 23, 2026
Member
|
@pingtimeout I think the PR can be merged? |
4344cd5 to
cd555c6
Compare
Contributor
Author
|
@snazy I rebased on |
snazy
approved these changes
Feb 18, 2026
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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?