2023-03-03 11:52:29 +01:00
include::_partials/attributes.adoc[]
2023-08-16 13:13:26 +02:00
= Fedora Beta Release
2023-03-08 09:37:43 +01:00
Based on the GO/NOGO meeting if the currnet compose is GO. The following steps need to be taken.
2023-03-01 15:57:09 +01:00
2024-03-21 14:13:00 -07:00
== Wait for branched compose that matches the beta rc
QE will typically request a stable push of all the updates that were in the Beta RC that
was signed off on. After that stable push we need to wait for a branched compose with them.
This ensures that the nightly branched has the same content as the beta we are about to release.
This is to allow us to make sure and tag all the right packages and have a common point.
2023-08-16 13:13:26 +02:00
== Koji changes
2023-03-01 15:57:09 +01:00
2023-03-08 09:37:43 +01:00
[source,subs="attributes+"]
2023-03-01 15:57:09 +01:00
....
2023-03-08 09:37:43 +01:00
$ koji clone-tag --all --latest-only f{branched} f{branched}-Beta
2023-03-08 15:39:31 +01:00
....
2023-03-10 18:01:52 +01:00
2023-08-16 13:13:26 +02:00
== Stage release to mirrors
2023-03-10 18:01:52 +01:00
2023-03-13 14:49:40 +05:30
[source,subs="attributes+"]
2023-03-10 18:01:52 +01:00
....
2023-03-13 14:49:40 +05:30
$ sh scripts/stage-release.sh {branched}_Beta Fedora-{branched}-YYYYMMDD.0 _Beta-1.2 fedora-{branched} 1
2023-03-10 18:01:52 +01:00
....
2023-03-13 14:49:40 +05:30
Please update YYYYMMDD in the above command accordingly.
2023-03-10 18:01:52 +01:00
[NOTE]
====
Make sure to grab the directory size usage numbers which is used to send
an email to [.title-ref]#mirror-admin@lists.fedoraproject.org# list.
====
2023-08-16 13:13:26 +02:00
== Sync the signed checksums to stage
2023-03-10 18:01:52 +01:00
We need to sync the signed checksums to /pub/alt/stage/ by running the
following command
2023-03-13 14:49:40 +05:30
[source,subs="attributes+"]
2023-03-10 18:01:52 +01:00
....
2023-11-20 19:51:59 +01:00
$ for dir in Cloud Container Everything Kinoite Labs Sericea Server Silverblue Spins Workstation metadata; do sudo -u ftpsync rsync -avhH /mnt/koji/compose/{branched}/Fedora-{branched}-20221105.0/compose/$dir/ /pub/alt/stage/{branched}_RC-1.7/$dir/ --link-dest=/pub/fedora/linux/releases/{branched}/Everything/ --link-dest=/pub/alt/stage/{branched}_RC-1.2/Everything/ --link-dest=/pub/alt/stage/{branched}_RC-1.3/Everything --link-dest=/pub/alt/stage/{branched}_RC-1.4/Everything --link-dest=/pub/alt/stage/{branched}_RC-1.5/Everything --link-dest=/pub/alt/stage/{branched}_RC-1.6/Everything --link-dest=/pub/alt/stage/{branched}_RC-1.7/Everything; done
2023-03-10 18:01:52 +01:00
....
2024-03-21 14:13:00 -07:00
[NOTE]
====
Replace the RC above with the RC that was 'go'
====
2023-08-16 13:13:26 +02:00
== Set release in Bodhi to pending
2023-03-10 18:01:52 +01:00
2023-03-13 14:49:40 +05:30
[source,subs="attributes+"]
2023-03-10 18:01:52 +01:00
....
2023-03-10 19:18:07 +01:00
$ bodhi releases edit --name F{branched} --state pending
2023-03-10 18:01:52 +01:00
....
2025-02-13 12:16:43 -08:00
=== Update Ansible vars
2023-03-10 19:18:07 +01:00
2025-02-13 12:16:43 -08:00
Set the infra ansible https://pagure.io/fedora-infra/ansible/blob/main/f/vars/all/FedoraBranchedBodhi.yaml[_FedoraBranchedBodhi_ variable] to `postbeta`
and the https://pagure.io/fedora-infra/ansible/blob/main/f/vars/all/Frozen.yaml[_NextReleaseFrozen_ variable] to `False`.
2024-03-21 14:13:00 -07:00
2025-02-13 12:16:43 -08:00
== Run the playbooks
2024-03-21 14:13:00 -07:00
2025-02-13 12:16:43 -08:00
....
$ sudo rbac-playbook groups/releng-compose.yml
$ sudo rbac-playbook groups/bodhi-backend.yml
$ sudo rbac-playbook openshift-apps/bodhi.yml
$ sudo rbac-playbook groups/koji-hub.yml
....
2023-03-10 19:18:07 +01:00
2023-08-16 13:13:26 +02:00
== Beta Installation and Cleanup
2023-04-24 10:45:27 +05:30
This section outlines the steps that should be followed to ensure that older copies of Fedora betas are removed from the servers and that the correct permissions are set on the directories.
2023-08-16 13:13:26 +02:00
=== Remove older betas
2023-04-24 10:45:27 +05:30
This cleanup step is to remove the older betas from the `/pub/fedora-secondary/releases/test` and `/pub/fedora/linux/releases/test/` directories. This can be done using the rm command:
[source,subs="attributes+"]
....
$ rm -rf /pub/fedora-secondary/releases/test/{branched}_Beta
$ rm -rf /pub/fedora/linux/releases/test/{branched}_Beta
....
Note that {branched} should be replaced with the name of the beta release, such as 36_Beta, 37_Beta, etc.
By following these steps, one can ensure that older copies of Fedora betas are removed from the servers and that the correct permissions are set on the directories.