From Fedora Project Wiki
(fork)
 
(delete)
 
Line 1: Line 1:
{{header|qa}}


This SOP explains the procedure for requesting composes from the [[ReleaseEngineering]] team. This task is usually performed by QA.
== What composes should be requested when ==
There are three milestones in the Fedora release cycle: Alpha, Beta, and Final. For each milestone, a minimum of one release candidate (RC) must be produced. At least one test compose (TC) should also always be produced under normal circumstances.
The Fedora [[schedule]] specifies a date for the first test compose for each milestone. The compose dates are listed on the release engineering schedule and usually also on the QA schedule. The requests should be filed on or (ideally) shortly prior to these dates. A release candidate can only be composed after the [[Milestone freezes|milestone freeze]] ''and'' when all blocker bugs are addressed, and this requirement supersedes the schedule: see below for more on this.
The schedule for the next Fedora release, with the designated compose dates, can be found [https://fedorapeople.org/groups/schedule/f-21/f-21-releng-tasks.html here].
=== Test composes ===
A '''test compose''' is defined as a set of Fedora images built, from the current [[Releases/Branched|Branched]] stable tree ('''not''' including updates-testing), shortly prior to the [[Milestone freezes|milestone freeze]] for one of the three Fedora milestones (Alpha, Beta and Final), for the purposes of performing [[:Category:Release_validation|release validation testing]]. It differs from a '''release candidate''' in that it is built before, not after, the milestone freeze and hence there is no possibility of its being declared gold and released as the Alpha, Beta or Final release.
Test composes beyond TC1 are done at the discretion of the QA team: there is no strict requirement for a certain number of test composes, or a strict trigger for building a new test compose. It usually makes sense to request a new test compose when significant changes to key components such as the installer, the kernel, X.org, the default bootloader and so on would be included: simply put, request a new test compose when it becomes clear that it may provide significantly different results to the current test compose.
There is no requirement for blocker bugs to be addressed in order for a test compose to be produced. It is a good idea, however, to make a best effort before filing a TC compose request to ensure that the compose will succeed and result in images that do not fail immediately - if you know there is a package conflict in the repositories that will result in live image composes failing, or a showstopper bug which makes the installer crash at the first page, there is very little point in requesting a TC compose. It is better for TC1 to be a day or two late than for it to be on time but untestable.
=== Release candidates ===
A '''release candidate''' is defined as a set of Fedora images built, from the current [[Releases/Branched|Branched]] tree ('''not''' including updates-testing), after the [[Milestone freezes|milestone freeze]] for one of the three Fedora milestones (Alpha, Beta and Final) and using a package set which is not known to contain any [[QA:SOP_blocker_bug_process|blocker bugs]], for the purposes of performing [[:Category:Release_validation|release validation testing]]. It differs from a '''test compose''' in that it is built after the milestone freeze and may be declared gold and released as the Alpha, Beta or Final release if it passes all validation tests.
A release candidate - including release candidates beyond RC1 - can be requested only after the milestone freeze (and only when the freeze has actually been put into place) and when all [[QA:SOP_blocker_bug_process#Reviewing_blocker_bugs|accepted blocker bugs]] are addressed. In most cases, 'addressed' means that the bug would not be present in the release candidate compose. Exceptions to this are cases where the blocker is not actually in a component present on the compose: the classic example is a bug in preupgrade, because in this case, a bug in Fedora N can block the release of Fedora N+1. In this case, 'addressed' can be taken to mean that the bug is properly assigned and being worked on. The term 'addressed' is used in preference to 'resolved' because fixes for blocker bugs can be pulled into composes before they have cleared the [[Updates_Policy|update testing process]] and been marked as stable (and hence before the bug is actually closed).
The procedure for release candidates is to request the RC1 compose as close as possible to the target date, but only after all accepted blockers are addressed. RC1 can be requested early if all accepted blockers are addressed, but it must be requested after the freeze date ('Alpha/Beta/Final Freeze' on the schedule pages).
If testing of RC1 results in further blocker bugs being proposed and accepted, an RC2 should be requested as soon as all the blockers accepted after RC1 testing have been addressed. This cycle should continue until a release candidate build passes validation testing with no new blockers being discovered.
A new release candidate should never be requested to address freeze exception bugs only: a request should only be made if blocker issues remain. See below and the [[QA:SOP_freeze_exception_bug_process|freeze exception SOP]] for details on freeze exception bugs.
The [http://qa.fedoraproject.org/blockerbugs/current blocker bugs web application] can be helpful in checking the status of proposed and accepted blockers at a glance, but please be aware it is updated only half-hourly. When the blocker situation is changing rapidly, it may be best to use direct Bugzilla searches to ensure your list is entirely accurate.
== How to request a compose ==
Compose requests are filed as tickets in [https://fedorahosted.org/rel-eng the release engineering team's trac instance]. Only one ticket should be filed for each milestone (Alpha, Beta, Final). So at each milestone, file a new ticket to request the first test compose, and then add comments to that ticket for subsequent test composes and the release candidates. The release engineering team will usually close the ticket each time they complete a compose - just re-open it to request the next one.
* [https://fedorahosted.org/rel-eng/ticket/5602 Example compose request ticket (Fedora 19 Beta)]
== What to include in a compose request ==
There is no formal template for compose requests, but looking at previous ones (see the examples above) is a good way to learn the basic format. A compose request should consist of a simple introduction stating what is requested - for example, a test compose for Fedora 18 Beta - followed by a list of builds which should be explicitly pulled into the compose, and any further special instructions to the release engineering team. It is good practice to include a link to the bugs addressed since the previous compose (if any), in order to form a changelog and to make it easier to track exactly what issues each compose addresses.
=== Understanding composes ===
It will obviously help you to write a good compose request if you understand more or less what happens in a compose. If you were to simply request a compose with no special instructions, [[ReleaseEngineering]] would produce:
* A full set of release media
* Install trees for all installable products
using:
* The packages present in the current ''[[Repositories#stable|stable]]'' tree for the release (that is, in the repositories at development/(releasever) on the mirrors) - '''not''' including packages in ''[[Repositories#updates-testing|updates-testing]]''
* The packages present in the [https://kojipkgs.fedoraproject.org/mash/bleed/ bleed repository], which is populated with packages explicitly requested to be included in composes (see [[#explicit-build-requests|below]])
* The versions of the compose tools currently in that same 'stable' tree - that is, {{package|livecd-tools}} from that repository, {{package|pungi}} from that repository, and so on
* The current HEAD of the relevant branch in [https://git.fedorahosted.org/cgit/spin-kickstarts.git/ spin-kickstarts git] - not the master branch, but the f(releasever) branch, e.g. [https://git.fedorahosted.org/cgit/spin-kickstarts.git/log/?h=f{{FedoraVersionNumber|next}} here for Fedora {{FedoraVersionNumber|next}}]
* The [[How_to_use_and_edit_comps.xml_for_package_groups| comps]] information included in the current 'stable' tree, which is generated daily from the comps-f(releasever).xml file in [https://git.fedorahosted.org/cgit/comps.git comps git], e.g. [https://git.fedorahosted.org/cgit/comps.git/tree/comps-f{{FedoraVersionNumber|next}}.xml.in this file for Fedora {{FedoraVersionNumber|next}}]
and place the results in the [https://dl.fedoraproject.org/pub/alt/stage/ staging tree].
If the compose should differ in any respect, you should explain in the compose request. This section explains some common cases where you might add particular requests.
{{anchor|explicit-build-requests}}
=== Explicitly listing required builds ===
Any build which needs to be included in the compose but which has not yet been added to the 'stable' repository for the release must be listed explicitly in the ticket, or it will not appear in the compose. There are usually several such builds for each compose - especially release candidates - as there is often not enough time for fixes to be given the necessary karma, submitted to stable, pushed to stable, and included in an actual tree compose prior to the image compose being requested. You should certainly explicitly list any required build which has not yet received the message 'This update has been pushed to stable' in Bodhi; it is good practice to explicitly list any build which received that message only within the 24 hours prior to the compose request being filed, in case the build has not yet been included in a tree compose.
When explicitly listing required builds, link to the Bodhi page for the build where possible (not the Koji page). However, prior to branching, Bodhi is not in effect, so early in the Alpha phase you will have to link to Koji rather than Bodhi.
=== What builds to ensure are included ===
When building test composes prior to the [[Milestone freezes|freeze]] for the milestone, this is essentially a judgement call. Try and ensure all possible blocker fixes are included in test composes (so list out any that are still in updates-testing or that have only recently been pushed stable). It is usually a good idea to explicitly include any pending updates that you know will have a significant impact on testing - so if a big anaconda update is pending, you should probably request that it be pulled in.
When building test composes after the freeze, you should only list packages that fix accepted release blocking or freeze exception bugs.
When building release candidates (which by definition always happens after the freeze), this is prescribed by policy. You can, and indeed must, require that all builds that fix accepted release blocking bugs are included: as explained above, all accepted release blocking bugs must be fixed in all release candidate builds. So ensure that, if any release blocking bug is still open when you request a release candidate, a build that fixes it is explicitly listed in the compose request. You should always double-check the entire list of open (and recently closed) accepted blockers and compare it to the ticket before hitting the 'submit' button.
You may also request that pending fixes for freeze exception bugs are included in release candidate composes. Freeze exception bugs are those that do not block the release, but which have been accepted as being of sufficient importance that fixes may be allowed through the freeze: see the [[QA:SOP_freeze_exception_bug_process]] for further details. During release freezes, release engineering may push freeze exception fixes to the stable repository, but if a fix for a freeze exception issue is still pending stable status, and you judge the issue to be of sufficient importance and the fix to be sufficiently safe, you may list it for inclusion in the release candidate compose. Release engineering may question this decision if they consider it risky. Err on the side of caution when requesting inclusion of pending freeze exception fixes in release candidate composes.
Try and bear in mind that the ''ideal'' process would be for all builds that will be included in a compose to be fully tested, pushed and mashed into the stable repository before a compose happens, and we only pull packages in manually because the process is often too rushed to allow that to happen without delaying the release: this is a hack, so avoid it when possible, but do it when necessary.
It is never acceptable to explicitly list a build for inclusion in a release candidate which is not a fix for an accepted release blocker or freeze exception bug. If you think a build ought to be included but the bug with which it is associated is not an accepted release blocker or freeze exception issue, do not just list it anyway: propose the bug as a release blocker or freeze exception issue, and contact other QA team members, release engineering team members, development team members, and/or the FPL to vote on this status, as would happen during a blocker review meeting.
=== Special instructions ===
There are sometimes issues that arise in the compose process itself and hence a little outside the scope simply of listing builds for inclusion, and it is a good idea to remind the release engineering team of these in the ticket. For instance, they may have to remember to have a certain package version installed on the compose host or in the compose environment, rather than being included in the compose itself (spin-kickstarts, lorax) or they may have to explicitly block a package from being included to avoid conflicts being present on the media. Whoever is handling a release from the QA side should naturally be in close contact with release engineering and aware of such issues; they should be mentioned in the ticket just to ensure no-one inadvertently forgets about them.
== What comes next ==
Once a TC or RC is built, it must be tested! The [[QA/SOP_Release_Validation_Test_Event|release validation test event SOP]] covers the process of preparing the necessary release validation test plans and announcing a TC or RC build for testing.
=== Ensuring requested builds go stable ===
It is important that any builds pulled into a TC or RC compose via this process (special request in the test compose, pulled in through the bleed repository) are then properly pushed to the stable repository very soon afterwards. This is particularly crucial for the Final milestone: we strongly desire that the final frozen release repository and the release media are derived from the same package set.
QA and release engineering share responsibility for ensuring the list of explicitly-included builds is tracked, and all such builds are pushed to stable (or, if they are broken, superseded or withdrawn from subsequent composes). The QA process for this is not yet documented, but usually every few days someone will check the list of builds included in the current TC/RC but not yet pushed stable, file a ticket in [https://fedorahosted.org/rel-eng/ release engineering trac] requesting stable push of all those with sufficient karma, and send out a mail requesting high-priority testing of any which do not have sufficient karma.

Latest revision as of 12:25, 3 March 2016