mirror of
https://github.com/golang/go.git
synced 2025-05-05 15:43:04 +00:00
Document new development cycle; see #58820.
parent
d9c94167d3
commit
fd965c2b6f
@ -1,252 +1,159 @@
|
||||
This wiki page is maintained by the Go team.
|
||||
Please [send comments to golang-dev](https://groups.google.com/group/golang-dev)
|
||||
or [file issues](https://go.dev/issue) instead of making changes directly.
|
||||
This wiki page is maintained by the Go team. Please
|
||||
[send comments to golang-dev](https://groups.google.com/group/golang-dev) or
|
||||
[file issues](https://go.dev/issue) instead of making changes directly.
|
||||
|
||||
Short link: https://go.dev/s/release.
|
||||
|
||||
## Overview
|
||||
|
||||
After fourteen months elapsed between Go 1.0 and Go 1.1, the Go team
|
||||
adopted a release schedule to streamline the process of working on,
|
||||
finishing, and issuing releases.
|
||||
The overall goal is to make a major release every six months, which breaks down into
|
||||
three months of general development followed by three months of testing and polishing
|
||||
known as the release freeze.
|
||||
A release is maintained by issuing minor releases to correct
|
||||
critical problems such as crashes or security issues.
|
||||
Go is released every six months. Each release cycle is broken down into a
|
||||
development phase lasting about 4 months, followed by a 3-month period of
|
||||
testing and polishing called the release freeze. If everything goes well, work
|
||||
on the next release begins before the previous release has shipped, resulting in
|
||||
an overlap of about a month.
|
||||
|
||||
Note that this page documents what we intend to do for upcoming releases.
|
||||
If you are familiar with what we have done in the past,
|
||||
pay particular attention to the differences described in the
|
||||
[history section](#history).
|
||||
After the initial release of a version, it is supported with minor releases that
|
||||
fix severe bugs and security issues.
|
||||
|
||||
## Timeline
|
||||
|
||||
The current release cycle is aligned to start on February 1 and August 1 of each year.
|
||||
The target milestones for a release cycle are as described below.
|
||||
We try to hit the targets as closely as possible, while still delivering
|
||||
a quality release.
|
||||
The current release cycle is aligned to start in mid-January and mid-July of
|
||||
each year. The target milestones for a release cycle are as described below. We
|
||||
try to hit the targets as closely as possible, while still delivering a quality
|
||||
release.
|
||||
|
||||
Betas, release candidates, and releases have traditionally been cut and issued
|
||||
mid-week, often on Wednesdays.
|
||||
We avoid Mondays to give the Go team a work day before to prepare for the cut,
|
||||
and we avoid Fridays to give the Go team a work day after in case the cut runs
|
||||
into unexpected problems.
|
||||
To give the team time to prepare, and to address unexpected problems, we prefer
|
||||
to do release work early or mid-week. That means that exact dates will vary year
|
||||
to year, so milestones are specified as weeks in a particular month. Week 1 is
|
||||
the week starting on the first Monday of the month.
|
||||
|
||||

|
||||

|
||||
|
||||
#### 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
|
||||
on [golang-dev](https://groups.google.com/group/golang-dev).
|
||||
Planning of major work for upcoming release cycle is announced on
|
||||
[golang-dev](https://groups.google.com/group/golang-dev).
|
||||
|
||||
Examples:
|
||||
[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).
|
||||
Example: [Go 1.20](https://groups.google.com/g/golang-dev/c/V8ez4YunkeE)
|
||||
|
||||
#### 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,
|
||||
but note that later milestones are not delayed.
|
||||
That is, failure to get one release out on time takes time away from
|
||||
the development cycle of the subsequent release.
|
||||
Once the prior release has entered its final stabilization period, the tree
|
||||
opens for general development. All kinds of development are welcome during this
|
||||
period. It's preferable for large or particularly risky changes to land well before
|
||||
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
|
||||
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 / November week 4: Release freeze begins.
|
||||
|
||||
#### 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.
|
||||
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 godoc and all its dependencies in the tools subrepository.
|
||||
During the freeze, only bug fixes and doc updates are accepted. On occasion new
|
||||
work may be done during the freeze, but only in exceptional circumstances and
|
||||
typically only if the work was proposed and approved before the cutoff. Such
|
||||
changes must be low risk. See [freeze exceptions](#freeze-exceptions) below.
|
||||
|
||||
Changes that were mailed before the freeze can be submitted
|
||||
if they are reviewed promptly after the freeze begins.
|
||||
During the freeze, only bug fixes and doc updates are accepted.
|
||||
On occasion new work may be done during the freeze, but only in exceptional circumstances
|
||||
and typically only if the work was proposed and approved before the cutoff.
|
||||
Such changes must be low risk.
|
||||
This part of the release cycle is focused on improving the quality of the
|
||||
release, by testing it and fixing bugs that are found. However, every fix must
|
||||
be evaluated to balance the benefit of a possible fix against the cost of now
|
||||
having not as well tested code (the fix) in the 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.
|
||||
|
||||
This part of the release cycle is focused on improving the quality of the release,
|
||||
by testing it and fixing bugs that are found.
|
||||
However, every fix must be evaluated to balance the benefit of a possible fix
|
||||
against the cost of now having not as well tested code (the fix) in the 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 to
|
||||
documentation and fixes to new features being introduced in the current release
|
||||
(since there is no chance of introducing a regression compared to an earlier
|
||||
release).
|
||||
|
||||
Examples of low risk changes appropriate late in the cycle include changes
|
||||
to documentation and fixes to new features being introduced in the current
|
||||
release (since there is no chance of introducing a regression compared to
|
||||
an earlier release).
|
||||
Shortly after the freeze begins, nearly all known bugs should have been fixed or
|
||||
explicitly postponed (either to the next release or indefinitely). The remainder
|
||||
should usually be tracked as release blockers and worked on urgently.
|
||||
|
||||
By the end of the first month of the freeze, nearly all known bugs
|
||||
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 / December week 2: Release candidate 1 issued.
|
||||
|
||||
#### 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.
|
||||
Issuing a beta is an indication that the Go team has fixed nearly all the
|
||||
known bugs that are planned to be fixed for the release,
|
||||
and now it is time to look for as yet unknown 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.
|
||||
|
||||
The first beta includes a complete draft of the eventual release notes,
|
||||
but marked clearly as a draft to avoid confusion when people link
|
||||
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.
|
||||
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.
|
||||
Organizations are encouraged to deploy it in production settings
|
||||
after appropriate organization-specific testing.
|
||||
Organizations are encouraged to deploy it in production settings after
|
||||
appropriate organization-specific testing.
|
||||
|
||||
One of the criteria for issuing a release candidate is that
|
||||
Google be using that version of the code for new production builds
|
||||
by default: if we at Google are not willing to run it for production use,
|
||||
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 is a good time
|
||||
for additional testing or for discussing the next release (see the planning
|
||||
milestone above).
|
||||
|
||||
The calm period between a release candidate and the final release
|
||||
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.
|
||||
#### August / February week 2: Release issued.
|
||||
|
||||
Finally, the release itself!
|
||||
|
||||
A release should not contain significant changes since the last release 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
|
||||
the release candidate's high confidence that the tree is free of critical bugs.
|
||||
A release should not contain significant changes since the last release
|
||||
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 the
|
||||
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
|
||||
has been available for four weeks and any problems that need to be
|
||||
addressed have been.
|
||||
|
||||
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
|
||||
Even if a release goes smoothly and there's spare time, we prefer to stay on
|
||||
schedule. Extra testing can only improve the stability of a 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.
|
||||
|
||||
If a release is behind schedule, it is acceptable (but certainly not ideal)
|
||||
to issue a release sooner than four weeks after the release candidate,
|
||||
but no sooner than two weeks after.
|
||||
Abbreviated release testing is a great way to deliver a buggy release.
|
||||
By the time of the final release, Google will have been using this version of Go
|
||||
for nearly two months. 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.
|
||||
|
||||
Because Google runs the release candidate as the default
|
||||
version of Go, four weeks of release testing means that
|
||||
at the least Google has been using this version of Go for
|
||||
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.
|
||||
Once a release is stabilized, 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, work on the next release may be delayed as well.
|
||||
|
||||
## Release Maintenance
|
||||
|
||||
A minor release is issued to address one or more critical problems
|
||||
for which there is no workaround (typically related to stability or security).
|
||||
The only code changes included in the release are the fixes for the specific
|
||||
critical problems.
|
||||
Important documentation-only changes and safe test updates (such as disabling tests), may also be included as well,
|
||||
but nothing more.
|
||||
A minor release is issued to address one or more critical problems for which
|
||||
there is no workaround (typically related to stability or security). The only
|
||||
code changes included in the release are the fixes for the specific critical
|
||||
problems. Important documentation-only changes and safe test updates (such as
|
||||
disabling tests), may also be included as well, but nothing more. Minor releases
|
||||
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 security problems for Go 1.x stop once Go 1.x+2 is released.
|
||||
For more about security updates, see the [security policy](https://go.dev/security).
|
||||
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
|
||||
[security policy](https://go.dev/security).
|
||||
|
||||
See also the [MinorReleases](https://go.dev/wiki/MinorReleases) wiki page.
|
||||
|
||||
## Freeze Exceptions
|
||||
|
||||
Any exceptions to the freeze must be communicated to and explicitly approved by the Go Release Team before the freeze. If you’d 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 you’d 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
|
||||
after the fourteen month effort to release Go 1.1.
|
||||
Go 1.2, Go 1.3, and Go 1.4 followed a six-month cycle
|
||||
beginning and ending (alternately) on December 1 and June 1.
|
||||
After experience with calendar problems in that cycle,
|
||||
we extended Go 1.5's development phase by two months
|
||||
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.
|
||||
A version of this schedule, with a shorter development window, was originally
|
||||
adopted for the Go 1.7 release in 2016. After years of difficult releases,
|
||||
testing and process improvements in 2022 and 2023 led to a timely 1.19 release.
|
||||
For 1.20, the development window was expanded with a late freeze and early thaw.
|
||||
These changes were formalized for the 1.21 release. We anticipate continuing to
|
||||
ship on time.
|
Loading…
x
Reference in New Issue
Block a user