releases.md 5.49 KB
Newer Older
David Dias's avatar
David Dias committed
1
# `go-ipfs` Release Flow
Juan Batiz-Benet's avatar
Juan Batiz-Benet committed
2

David Dias's avatar
David Dias committed
3
## Table of Contents
Jeromy's avatar
Jeromy committed
4

David Dias's avatar
David Dias committed
5 6
- [Release Philosophy](#release-philosophy)
- [Release Flow](#release-flow)
7 8 9 10 11 12 13
  - [Stage 0 - Automated Testing](#stage-0--automated-testing)
  - [Stage 1 - Internal Testing](#stage-1--internal-testing)
  - [Stage 2 - Community Dev Testing](#stage-2--community-dev-testing)
  - [Stage 3 - Community Prod Testing](#stage-2--community-prod-testing)
  - [Stage 4 - Release](#stage-4--release)
- [Release Cycle](#release-cycle)
  - [Patch Releases](#patch-releases)
David Dias's avatar
David Dias committed
14 15 16 17 18
- [Performing a Release](#performing-a-release)
- [Release Version Numbers (aka semver)](#release-version-numbers-aka-semver)

## Release Philosophy

Steven Allen's avatar
Steven Allen committed
19
`go-ipfs` aims to have release every six weeks, two releases per quarter. During these 6 week releases, we go through 4 different stages that gives us the opportunity to test the new version against our test environments (unit, interop, integration), QA in our current production environment, IPFS apps (e.g. Desktop and WebUI) and with our community and _early testers_<sup>[1]</sup> that have IPFS running in production.
David Dias's avatar
David Dias committed
20 21

We might expand the six week release schedule in case of:
22

David Dias's avatar
David Dias committed
23
- No new updates to be added
24
- In case of a large community event that takes the core team availability away (e.g. IPFS Conf, Dev Meetings, IPFS Camp, etc.)
David Dias's avatar
David Dias committed
25 26 27

## Release Flow

Steven Allen's avatar
Steven Allen committed
28
`go-ipfs` releases come in 5 stages designed to gradually roll out changes and reduce the impact of any regressions that may have been introduced. If we need to merge non-trivial<sup>[2]</sup> changes during the process, we start over at stage 0.
David Dias's avatar
David Dias committed
29

30 31
![go-ipfs-release-process-illustration](https://user-images.githubusercontent.com/618519/62986422-653fee00-bdf0-11e9-8f61-197117b61da2.png)

Steven Allen's avatar
Steven Allen committed
32 33 34
### Stage 0 - Automated Testing

At this stage, we expect _all_ automated tests (interop, testlab, performance, etc.) to pass.
David Dias's avatar
David Dias committed
35

Steven Allen's avatar
Steven Allen committed
36
### Stage 1 - Internal Testing
David Dias's avatar
David Dias committed
37

38 39
At this stage, we'll:

40 41 42 43 44 45 46
1. Start a partial-rollout to our own infrastructure.
2. Test against ipfs and ipfs-shipyard applications.

**Goals:**

1. Make sure we haven't introduced any obvious regressions.
2. Test the release in an environment we can monitor and easily roll back (i.e. our own infra).
47

Steven Allen's avatar
Steven Allen committed
48
### Stage 2 - Community Dev Testing
49 50 51

At this stage, we'll announce the impending release to the community and ask for beta testers.

52 53 54
**Goal:**

Test the release in as many non-production environments as possible. This is relatively low-risk but gives us a _breadth_ of testing internal testing can't.
55

Steven Allen's avatar
Steven Allen committed
56
### Stage 3 - Community Prod Testing
57

58
At this stage, we consider the release to be "production ready" and will ask the community and our early testers to (partially) deploy the release to their production infrastructure.
59

60
**Goals:**
61 62 63 64 65 66 67 68

1. Test the release in some production environments with heavy workloads.
2. Partially roll-out an upgrade to see how it affects the network.
3. Retain the ability to ship last-minute fixes before the final release.

### Stage 4 - Release

At this stage, the release is "battle hardened" and ready for wide deployment.
David Dias's avatar
David Dias committed
69

70 71 72 73
## Release Cycle

A full release process should take about 3 weeks, a week per stage 1-3. We will start a new process every 6 weeks, regardless of when the previous release landed unless it's still ongoing.

74 75 76
### Patch Releases

If we encounter a serious bug in the stable latest release, we will create a patch release based on this release. For now, bug fixes will _not_ be backported to previous releases.
77 78 79

Patch releases will usually follow a compressed release cycle and should take 2-3 days. In a patch release:

80
1. Automated and internal testing (stage 0 and 1) will be compressed into a few hours - ideally less than a day.
81 82 83 84 85
2. Stage 2 will be skipped.
3. Community production testing will be shortened to 1-2 days of opt-in testing in production (early testers can choose to pass).

Some patch releases, especially ones fixing one or more complex bugs, may undergo the full release process.

David Dias's avatar
David Dias committed
86 87
## Performing a Release

Steven Allen's avatar
Steven Allen committed
88
The release is managed by the `Lead Maintainer` for `go-ipfs`. It starts with the opening of an issue containing the content available on the [RELEASE_ISSUE_TEMPLATE](./RELEASE_ISSUE_TEMPLATE.md). This issue will be pinned and labeled with the ["release"](https://github.com/ipfs/go-ipfs/issues?utf8=%E2%9C%93&q=is%3Aissue+is%3Aopen+label%3Arelease) tag. Then, the 5 stages will be followed until the release is done.
David Dias's avatar
David Dias committed
89 90 91

## Release Version Numbers (aka semver)

David Dias's avatar
David Dias committed
92
Until `go-ipfs` 0.4.X, `go-ipfs` was not using semver to communicate the type of release
David Dias's avatar
David Dias committed
93 94 95 96 97 98

Post `go-ipfs` 0.5.X, `go-ipfs` will use semver. This means that patch releases will not contain any breaking changes nor new features. Minor releases might contain breaking changes and always contain some new feature

Post `go-ipfs` 1.X.X (future), `go-ipfs` will use semver. This means that only major releases will contain breaking changes, minors will be reserved for new features and patches for bug fixes.

We do not yet retroactively apply fixes to older releases (no Long Term Support releases for now), which means that we always recommend users to update to the latest, whenever possible.
David Dias's avatar
David Dias committed
99 100 101

----------------------------

David Dias's avatar
David Dias committed
102
- <sup>**[1]**</sup> - _early testers_ is an IPFS programme in which members of the community can self-volunteer to help test `go-ipfs` Release Candidates. You find more info about it at [EARLY_TESTERS.md](./EARLY_TESTERS.md)
Steven Allen's avatar
Steven Allen committed
103
- <sup>**[2]**</sup> - A non-trivial change is any change that could potentially introduce an issue not trivially caught by automated testing. This is up to the discretion of the Lead Maintainer but the assumption is that every change is non-trivial unless proven otherwise.