ci: archive dead release branches 0.4-0.57 (VEP #233)#5041
Conversation
Remove presubmit CI job configurations for kubevirt/kubevirt release branches 0.13 through 0.57 and set all branches from release-0.4 through release-0.57 to unmanaged in the Prow branch protection config. This is the first phase of VEP kubevirt#233 transition plan point 4, which calls for archiving branches that have been de facto dead for years. Setting branches to unmanaged prevents the Prow branchprotector from overwriting their protection settings, allowing a subsequent lock_branch API call to persist. Stale config entries for non-existent branches release-0.25 and release-0.28 are also removed. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> Signed-off-by: Daniel Hiller <dhiller@redhat.com>
|
Skipping CI for Draft Pull Request. |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
Phase 2 script for VEP kubevirt#233 that sets lock_branch=true on all 50 archived branches via the GitHub API. Run after the Prow config changes merge and the branchprotector completes a cycle. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> Signed-off-by: Daniel Hiller <dhiller@redhat.com>
9a82aaf to
2b78b66
Compare
There was a problem hiding this comment.
Code Review
This pull request removes several Prow job configuration files, specifically presubmits definitions across various release branches (e.g., release-0.13 through release-0.50) and Kubernetes versions. This indicates a cleanup or restructuring of the CI/CD pipeline definitions. There are no review comments to address.
@dhiller ah apologies I did include this as an initial immediate step in v1.9.0. Can I announce the approach first on the ML and maybe go ahead with this after CF later in the cycle? |
| required_status_checks: | ||
| contexts: | ||
| - continuous-integration/travis-ci/pr | ||
| release-0.4: |
There was a problem hiding this comment.
I would have used YAML anchors.
release-0.4: &archived_branch
unmanaged: true
release-0.5: *archived_branch
release-0.6: *archived_branch
[...]
ack - again, I'd be happy to get your feedback whether this approach is good enough or we need to improve it. |
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> Signed-off-by: Daniel Hiller <dhiller@redhat.com>
Summary
Archive release branches
release-0.4throughrelease-0.57in kubevirt/kubevirt as described in VEP #233 transition plan point 4.These branches have been de facto dead for years. This PR:
unmanaged: truein the Prow branch-protection config for all 50 branches (release-0.4 through release-0.57), preventing the branchprotector from managing themWhy
unmanaged: true?Prow's branchprotector does not support GitHub's
lock_branchfield. Sincekubevirt/kubevirthas repo-levelprotect: true, the branchprotector manages ALL branches and would reset any manually-appliedlock_branch: trueon its hourly sync. Settingunmanaged: trueopts these branches out, allowing a subsequentlock_branchAPI call (Phase 2) to persist.Phase 2 (after this PR merges)
A one-time script will call the GitHub API to set
lock_branch: trueon all 50 branches, making them fully read-only.Scope
Test plan
kubevirt-presubmits-0.58.yamlandkubevirt-presubmits-0.59.yamlare preservedlock_branch: trueTracker: kubevirt/kubevirt#17717
🤖 Generated with Claude Code