Playbooks to improve the EPEL minor branching process #2593
No reviewers
Labels
No labels
freeze-break-request
post-freeze
No milestone
No project
No assignees
3 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: Infrastructure/ansible#2593
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "epel-minor-branching"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
As it was described on this issue https://pagure.io/releng/issue/12668, one of the weak points of the current EPEL branching process is that it depends on scripts that need to run on the infrastructure with high privileges. Moving these processes into Ansible playbooks would help make it easier to delegate this part of the process using RBAC.
These playbooks serve both that purpose and would also replace the scripts located on https://pagure.io/releng/blob/main/f/scripts/branching-EPEL.
On this first PR, there are 3 playbook files:
branch-distgit-packages.yml
This playbook executes the steps described on this part of the SOP
It also relieves the need of the following scripts in the process
koji-release-tags.yml
This playbook executes the steps described on this part of the SOP, that takes care of creating new Koji tags
It also relieves the need of the following scripts in the process
prepare-bodhi-repos.yml
This playbook executes part of the process described on this part of the SOP, that takes care of preparing the infrastructure for a new bodhi
It also relieves the need of the following scripts in the process
I'll mark this PR as a draft for now, but feel free to comment on it.
Build failed. More information on how to proceed and troubleshoot errors available at https://fedoraproject.org/wiki/Zuul-based-ci
https://fedora.softwarefactory-project.io/zuul/buildset/39f145188f134c309aa94b2bb8cd1448
2 new commits added
Fix ansible-linter issues
Fix yamllint issues
Build failed. More information on how to proceed and troubleshoot errors available at https://fedoraproject.org/wiki/Zuul-based-ci
https://fedora.softwarefactory-project.io/zuul/buildset/f37e147483c2414b8a8fe29ca7450062
Build failed. More information on how to proceed and troubleshoot errors available at https://fedoraproject.org/wiki/Zuul-based-ci
https://fedora.softwarefactory-project.io/zuul/buildset/ef29c5e20a78461ab1dcf1a7b4f2ea38
The current logic here will cause problems when we try to run this for 11.0. This is also a problem with the make-koji-release-tags script, but ideally we can work up some logic here that works in the dot zero scenario.
An idea occurred to me related to the .0 problem. What if we used separate playbooks for:
That would make it easier to just run the first playbook for the .0 releases. In that playbook the only thing that would need to reference the previous minor version is the clone-tag command, which I guess would become an add-tag command for .0.
There is no need to handle the zero case ^^. This playbook (like the script it was based of) is meant to be used just for the minor branching case, and the first branching is the .1 one, considering the zero one already exists when creating the major release (11.0 would be the case).
Even if there would be a problem, nothing would end up happening, because the minor value gets checked here so it's above 0 to even continue https://pagure.io/fedora-infra/ansible/pull-request/2593#_2__37
I do agree that the major release process is something we have to deal with at some point in the future though :)
I like this idea :O! I think we can iterate further on this ^^
Build failed. More information on how to proceed and troubleshoot errors available at https://fedoraproject.org/wiki/Zuul-based-ci
https://fedora.softwarefactory-project.io/zuul/buildset/4e3e715d68d04441a4c945bc5db07c9e
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.