Document new development cycle; see #58820.

Heschi Kreinick 2023-03-08 14:58:32 -05:00
parent d9c94167d3
commit fd965c2b6f

@ -1,252 +1,159 @@
This wiki page is maintained by the Go team. This wiki page is maintained by the Go team. Please
Please [send comments to golang-dev](https://groups.google.com/group/golang-dev) [send comments to golang-dev](https://groups.google.com/group/golang-dev) or
or [file issues](https://go.dev/issue) instead of making changes directly. [file issues](https://go.dev/issue) instead of making changes directly.
Short link: https://go.dev/s/release. Short link: https://go.dev/s/release.
## Overview ## Overview
After fourteen months elapsed between Go 1.0 and Go 1.1, the Go team Go is released every six months. Each release cycle is broken down into a
adopted a release schedule to streamline the process of working on, development phase lasting about 4 months, followed by a 3-month period of
finishing, and issuing releases. testing and polishing called the release freeze. If everything goes well, work
The overall goal is to make a major release every six months, which breaks down into on the next release begins before the previous release has shipped, resulting in
three months of general development followed by three months of testing and polishing an overlap of about a month.
known as the release freeze.
A release is maintained by issuing minor releases to correct
critical problems such as crashes or security issues.
Note that this page documents what we intend to do for upcoming releases. After the initial release of a version, it is supported with minor releases that
If you are familiar with what we have done in the past, fix severe bugs and security issues.
pay particular attention to the differences described in the
[history section](#history).
## Timeline ## Timeline
The current release cycle is aligned to start on February 1 and August 1 of each year. The current release cycle is aligned to start in mid-January and mid-July of
The target milestones for a release cycle are as described below. each year. The target milestones for a release cycle are as described below. We
We try to hit the targets as closely as possible, while still delivering try to hit the targets as closely as possible, while still delivering a quality
a quality release. release.
Betas, release candidates, and releases have traditionally been cut and issued To give the team time to prepare, and to address unexpected problems, we prefer
mid-week, often on Wednesdays. to do release work early or mid-week. That means that exact dates will vary year
We avoid Mondays to give the Go team a work day before to prepare for the cut, to year, so milestones are specified as weeks in a particular month. Week 1 is
and we avoid Fridays to give the Go team a work day after in case the cut runs the week starting on the first Monday of the month.
into unexpected problems.
![](images/release-cycle.png) ![release](https://user-images.githubusercontent.com/24611692/223832580-b613c098-cd8b-4d48-b5c4-cf349e7cc269.svg)
#### January 15 / July 15: Planning for release begins. #### January / July week 1: Planning for release begins.
Planning of major work for upcoming release cycle is announced Planning of major work for upcoming release cycle is announced on
on [golang-dev](https://groups.google.com/group/golang-dev). [golang-dev](https://groups.google.com/group/golang-dev).
Examples: Example: [Go 1.20](https://groups.google.com/g/golang-dev/c/V8ez4YunkeE)
[Go 1.4](https://groups.google.com/d/msg/golang-dev/eqBihsj7x-k/3h59pc8FDAoJ),
[Go 1.5](https://groups.google.com/d/msg/golang-dev/2ZUi792oztM/GNsw1i76LhsJ),
[Go 1.6](https://groups.google.com/d/msg/golang-dev/vNboccLL95c/XOD3vHKOCQAJ).
#### February 1 / August 1: Release work begins. #### January / July week 3: Release work begins.
This milestone is delayed if the previous release has not yet been issued, Once the prior release has entered its final stabilization period, the tree
but note that later milestones are not delayed. opens for general development. All kinds of development are welcome during this
That is, failure to get one release out on time takes time away from period. It's preferable for large or particularly risky changes to land well before
the development cycle of the subsequent release. the end of the development window, so that there's time to fix any
problems that arise with them.
Note that incoming bug reports should be handled and bugs fixed during #### May / November week 4: Release freeze begins.
ordinary release work.
It is not appropriate to leave all bug fixes for the release freeze.
See the [history](#history) section for more discussion.
#### May 1 / November 1: Release freeze begins. This milestone begins the second part of the release cycle, the release freeze.
The release freeze applies to the entire main repository as well as to the code
in subrepositories that is needed to build the binaries included in the release,
particularly vet and all its dependencies in the tools subrepository.
This milestone begins the second half of the release cycle, the release freeze. During the freeze, only bug fixes and doc updates are accepted. On occasion new
The release freeze applies to the entire main repository work may be done during the freeze, but only in exceptional circumstances and
as well as to the code in subrepositories that is needed to build the typically only if the work was proposed and approved before the cutoff. Such
binaries included in the release, changes must be low risk. See [freeze exceptions](#freeze-exceptions) below.
particularly godoc and all its dependencies in the tools subrepository.
Changes that were mailed before the freeze can be submitted This part of the release cycle is focused on improving the quality of the
if they are reviewed promptly after the freeze begins. release, by testing it and fixing bugs that are found. However, every fix must
During the freeze, only bug fixes and doc updates are accepted. be evaluated to balance the benefit of a possible fix against the cost of now
On occasion new work may be done during the freeze, but only in exceptional circumstances having not as well tested code (the fix) in the release. Early in the release
and typically only if the work was proposed and approved before the cutoff. cycle, the balance tends toward accepting a fix. Late in the release cycle, the
Such changes must be low risk. balance tends toward rejecting a fix, unless a case can be made that the fix is
both low risk and high reward.
This part of the release cycle is focused on improving the quality of the release, Examples of low risk changes appropriate late in the cycle include changes to
by testing it and fixing bugs that are found. documentation and fixes to new features being introduced in the current release
However, every fix must be evaluated to balance the benefit of a possible fix (since there is no chance of introducing a regression compared to an earlier
against the cost of now having not as well tested code (the fix) in the release. release).
Early in the release cycle, the balance tends toward accepting a fix.
Late in the release cycle, the balance tends toward rejecting a fix,
unless a case can be made that the fix is both low risk and high reward.
Examples of low risk changes appropriate late in the cycle include changes Shortly after the freeze begins, nearly all known bugs should have been fixed or
to documentation and fixes to new features being introduced in the current explicitly postponed (either to the next release or indefinitely). The remainder
release (since there is no chance of introducing a regression compared to should usually be tracked as release blockers and worked on urgently.
an earlier release).
By the end of the first month of the freeze, nearly all known bugs #### June / December week 2: Release candidate 1 issued.
should have been fixed or explicitly postponed (either to the next
release or indefinitely). There should be few known bugs left,
perhaps only the ones that have proven too elusive to chase down.
#### June 1 / December 1: Beta 1 issued. A release candidate is meant to be as close as possible to the actual release
bits. Issuing a release candidate is an indication that the Go team has high
confidence that the tree is free of critical bugs. In particular, because Google
continuously tracks the development version of Go, by the time a release
candidate is issued, a close approximation of it will have been running in
production at Google for at least a week or two.
A beta release is meant to encourage testing to discover new bugs. Once a release candidate is issued, only documentation changes and changes to
Issuing a beta is an indication that the Go team has fixed nearly all the address critical bugs should be made. In general the bar for bug fixes at this
known bugs that are planned to be fixed for the release, point is even slightly higher than the bar for bug fixes in a minor release. We
and now it is time to look for as yet unknown bugs. may prefer to issue a release with a known but very rare crash than to issue a
release with a new but not production-tested fix.
The first beta includes a complete draft of the eventual release notes, If critical bugs are reported and fixed, additional release candidates may be
but marked clearly as a draft to avoid confusion when people link issued, but typically not more than one every two weeks.
to them on the internet.
If a release is ahead of schedule, it is acceptable and even encouraged
to issue a beta a few weeks ahead of this target.
As bugs are reported and fixed, additional betas may be released,
provided there are significant code changes to test anew.
Typically betas should not be issued more frequently than two weeks.
It is important not to issue too many betas, nor too many release candidates:
we are asking our users for their time to help us test the release
and must not waste their good will by making too many requests.
A beta is not expected to be bug-free and should not be used in
production settings where failures or misbehavior cannot be tolerated.
Organizations can run integration or other tests against a beta
or even use it in a canary setting, but they should be discouraged from
deploying the beta for unrestricted production usage.
#### July 1 / January 1: Release candidate 1 issued.
A release candidate is meant to be as close as possible to the actual release bits.
Issuing a release candidate is an indication that the Go team has high confidence
that the tree is free of critical bugs.
Once a release candidate is issued, only documentation changes
and changes to address critical bugs should be made.
In general the bar for bug fixes at this point is even slightly higher than the
bar for bug fixes in a minor release.
We may prefer to issue a release with a known but very rare crash
than to issue a release with a new but not production-tested fix.
If a release is ahead of schedule, it is acceptable and even encouraged
to issue a release candidate a few weeks ahead of this target.
Extended release testing is a great way to deliver a robust release.
If critical bugs are reported and fixed, additional release candidates may be issued,
but typically not more than one every two weeks.
Again, a release candidate is meant to be bug-free, as much as possible. Again, a release candidate is meant to be bug-free, as much as possible.
Organizations are encouraged to deploy it in production settings Organizations are encouraged to deploy it in production settings after
after appropriate organization-specific testing. appropriate organization-specific testing.
One of the criteria for issuing a release candidate is that The calm period between a release candidate and the final release is a good time
Google be using that version of the code for new production builds for additional testing or for discussing the next release (see the planning
by default: if we at Google are not willing to run it for production use, milestone above).
we shouldn't be asking others to.
We may issue the release candidate a few days in advance of Google
changing over, depending on how the calendar falls.
For example, the change inside Google makes more sense to do on Mondays,
so we may issue the release candidate the Wednesday before
or the Wednesday after Google converts to the new release by default.
The calm period between a release candidate and the final release #### August / February week 2: Release issued.
is a good time for additional testing or for discussing the next release
(see the January 15 milestone above).
#### August 1 / February 1: Release issued.
Finally, the release itself! Finally, the release itself!
A release should not contain significant changes since the last release candidate: A release should not contain significant changes since the last release
it is important that all code in the release has been well tested. candidate: it is important that all code in the release has been well tested.
Issuing a release is an indication that release testing has confirmed Issuing a release is an indication that release testing has confirmed the
the release candidate's high confidence that the tree is free of critical bugs. release candidate's high confidence that the tree is free of critical bugs.
One of the criteria for issuing a release is that the release candidate Even if a release goes smoothly and there's spare time, we prefer to stay on
has been available for four weeks and any problems that need to be schedule. Extra testing can only improve the stability of a release, and it also
addressed have been. gives developers working on the Go release more time to think about and plan the
If a release process has run ahead of schedule, with an early beta
and early release candidate,
release candidate testing should absorb any extra time,
leaving the actual release on time, not early.
This improves the stability of the release, and it also gives developers
working on the Go release more time to think about and plan the
next release before code changes start pouring in again. next release before code changes start pouring in again.
If a release is behind schedule, it is acceptable (but certainly not ideal) By the time of the final release, Google will have been using this version of Go
to issue a release sooner than four weeks after the release candidate, for nearly two months. While Google's successful use does not guarantee the
but no sooner than two weeks after. absence of problems, our experience has been that it certainly helps improve the
Abbreviated release testing is a great way to deliver a buggy release. quality of the release. We strongly encourage other organizations to test
release candidates as aggressively as they are able and to report problems that
they find.
Because Google runs the release candidate as the default Once a release is stabilized, work on the next release, including code reviews
version of Go, four weeks of release testing means that and submission of new code, can begin, and the cycle repeats. Note that if a
at the least Google has been using this version of Go for release is delayed, work on the next release may be delayed as well.
four weeks before it becomes an official release.
While Google's successful use does not guarantee the
absence of problems, our experience has been that
it certainly helps improve the quality of the release.
We strongly encourage other organizations to test release candidates
as aggressively as they are able and to report problems that they find.
Once a release is issued, work on the next release, including code reviews
and submission of new code, can begin, and the cycle repeats.
Note that if a release is delayed, so is work on the next release.
## Release Maintenance ## Release Maintenance
A minor release is issued to address one or more critical problems A minor release is issued to address one or more critical problems for which
for which there is no workaround (typically related to stability or security). there is no workaround (typically related to stability or security). The only
The only code changes included in the release are the fixes for the specific code changes included in the release are the fixes for the specific critical
critical problems. problems. Important documentation-only changes and safe test updates (such as
Important documentation-only changes and safe test updates (such as disabling tests), may also be included as well, disabling tests), may also be included as well, but nothing more. Minor releases
but nothing more. preserve backwards compatibility as much as possible, and don't introduce new
APIs.
Minor releases to address non-security problems for Go 1.x stop once Go 1.x+2 is released. Minor releases to address problems (including security issues) for Go 1.x stop
once Go 1.x+2 is released. For more about security updates, see the
Minor releases to address security problems for Go 1.x stop once Go 1.x+2 is released. [security policy](https://go.dev/security).
For more about security updates, see the [security policy](https://go.dev/security).
See also the [MinorReleases](https://go.dev/wiki/MinorReleases) wiki page. See also the [MinorReleases](https://go.dev/wiki/MinorReleases) wiki page.
## Freeze Exceptions ## Freeze Exceptions
Any exceptions to the freeze must be communicated to and explicitly approved by the Go Release Team before the freeze. If youd like to request an exception, please file an issue in the issue tracker with "[freeze exception]" as a suffix and include "CC @golang/release" ([example](https://go.dev/issue/42747)). We will address any requests on a case-by-case basis with a strong preference for not permitting changes after the freeze. Any exceptions to the freeze must be communicated to and explicitly approved by
the Go Release Team before the freeze. If youd like to request an exception,
please file an issue in the issue tracker with "[freeze exception]" as a suffix
and include "CC @golang/release" ([example](https://go.dev/issue/42747)). We
will address any requests on a case-by-case basis with a strong preference for
not permitting changes after the freeze.
## History ## Historical note
The Go release cycle was discussed and adopted A version of this schedule, with a shorter development window, was originally
after the fourteen month effort to release Go 1.1. adopted for the Go 1.7 release in 2016. After years of difficult releases,
Go 1.2, Go 1.3, and Go 1.4 followed a six-month cycle testing and process improvements in 2022 and 2023 led to a timely 1.19 release.
beginning and ending (alternately) on December 1 and June 1. For 1.20, the development window was expanded with a late freeze and early thaw.
After experience with calendar problems in that cycle, These changes were formalized for the 1.21 release. We anticipate continuing to
we extended Go 1.5's development phase by two months ship on time.
to shift the cycle to begin and end on February 1 and August 1,
as described above.
The [original proposal](https://go.dev/s/release-old)
did not contain enough detail about the milestones during the freeze,
and over the course of a few releases development work took over
much of the freeze.
Compared to the goal set above of issuing a beta one month
into the release freeze, the first betas for Go 1.3, Go 1.4, Go 1.5,
and Go 1.6 were three, four, five, and six weeks late, respectively.
(Go 1.6 beta 1 was only two weeks late, but it was
full of known bugs that we still intended to fix,
primarily to get something out for testing before the winter holidays.
Go 1.6's first real beta by the above definition was beta 2.)
When the beta is late, everything that follows the beta—shaking out
the final bugs, thorough testing of the release candidates,
and the shipping of the release—gets rushed, leading to more bugs
in the final release and usually a delay in starting the next cycle.
The beta was ready later and later in those four cycles primarily
because we both postponed too many bugs to the freeze
and then allowed too many non-essential bug fixes during the freeze.
For Go 1.7 and later we will need to make sure that bugs are fixed
before the freeze.
That is, we need to follow the schedule above, not what we've done in the past.