Beaker

Development lifecycle

Beaker’s overall development is tracked in Bugzilla. Bugs which have been accepted by the core development team as desirable features or fixes to include in a future version will have an assigned target milestone (either a specific release, or the non-specific “future_maint”). Other open Bugzilla entries are either still under investigation, or otherwise remain under consideration for implementation in a future release.

Release numbering and branching model

The expected scope of upcoming releases is described in the Beaker release roadmap, while other areas of active development and experimentation are covered in the technical road map. The scope of each major release may be adjusted in response to changing circumstances, as may the number of minor releases made for each major release.

The target major release cadence for the main Beaker project is a new major release every 6-12 weeks. For other subprojects, new releases are made as needed to resolve issues or add features.

Major releases

Major releases are built around Design proposals. These proposals are for relatively large chunks of functionality, which may end up being delivered across multiple minor releases.

In general, the core development team will nominate a particular design proposal as the current focus of development for a major release, and the release will not be published until a meaningful portion of the design proposal has been completed.

Development aimed at the next major release takes place on the develop branch in git.

For the main Beaker project, when a major release is considered ready for publication, an appropriate release-X branch is created and a release candidate published from the branch. If the release candidate passes acceptance testing, then the release branch is merged to master and published as the latest version of Beaker.

Once a major release is published, its release branch becomes the active release branch and is used for the creation of any minor releases, while the develop branch begins to be used for development of the next major release.

Smaller subprojects, such as the beah test harness and the beaker-system-scan hardware scanning utility use a simpler branching model where releases are tagged and created directly on the develop branch. This applies to both major and minor releases for these subprojects. As a result, and unlike the main Beaker application, once work starts on a new major release for one of these components, no further minor releases of the previous major release will be published.

Minor releases

As major releases are based around delivering particular pieces of functionality, their exact delivery schedule is necessarily somewhat flexible. To ensure that fixes for hardware and installer compatibility issues can be incorporated in a timely manner, even if a major release is delayed, all such changes are first included in the active release branch and then merged forward to the develop branch rather than being merged directly into develop in Gerrit.

Whenever the active release branch has accumulated a reasonable number of changes and a new major release isn’t about to be published, then a new minor release will be created and published from the active release branch.

There are two major requirements for a change to be considered acceptable for inclusion in a minor release (and hence included in the active release branch rather than the develop branch):

  • it must be possible to deploy it without a significant system outage (in particular, this means database schema changes are not permitted in minor releases)
  • it must not have a broad impact on other parts of the system (for example, adding a new client command is acceptable in a minor release, as those are relatively independent pieces of functionality).

As only relatively small, functionally independent changes are made in minor releases, these releases are published directly, without a preceding release candidate.

Determining the scope of releases

As noted above, a single design proposal is typically nominated as the release focus for a given major release. That design proposal will then describe the primary user facing change to be included in that release.

Each such design proposal will include a “Deferred Features” section, for components which are deliberately not being implemented until after we have received feedback from users on the initial approach.

At any given point in time, a definite focus will only be chosen for the currently in development major release, and potentially the next major release.

While a tentative focus may also be identified for subsequent releases, it is strictly provisional, as user feedback may lead to deferred features from earlier design proposals being given precedence, and detailed design on the tentative features may identify a need to break them down into smaller features implemented across multiple releases.

As there are limits to the number of developers that can effectively work on implementing a single design proposal, the release focus is not the sole change that will be made in a given release - it is merely the one that is expected to require the most active engagement from Beaker users in order to come up with a good design. The need for active user engagement is also the reason for restricting each release to one major design update - collecting and incorporating feedback takes time, and trying to have too many such discussions at once will not lead to good solutions.

At the very least, bug fixes and other minor enhancements will be worked on as needed and as time allows. Quality improvements, external collaboration and preparatory work for subsequent major features may also lead to the inclusion of other more significant changes that are not directly related to the release focus.

If such changes qualify for inclusion in a minor release, that’s where they will be implemented. This approach means that, while working on each new major release, one or more minor releases will typically be published from the active release branch (the exact number will depend on when the next major release is judged to be ready for production use).

The “Target Milestone” field in Bugzilla indicates when a particular change is expected to be incorporated and published.

The final authority on the scope of any given release is the Red Hat appointed Beaker Development Lead. The major factors currently driving prioritisation decisions are:

  • Enabling and incorporating external contributions
  • Improving the usability and maintainability of Beaker installations
  • Making beaker.fedoraproject.org an effective tool for Fedora QA
  • Other Red Hat internal requirements