Skip to content

Commit bd90f47

Browse files
authored
Merge pull request #1925 from gee-community/nschmitz-release-rotation
Create releasing.md
2 parents 8d11240 + 266b5c1 commit bd90f47

File tree

1 file changed

+109
-0
lines changed

1 file changed

+109
-0
lines changed

docs/releasing.md

Lines changed: 109 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,109 @@
1+
# Releasing
2+
3+
## Overview
4+
5+
The geemap release rotation lasts 2 weeks.
6+
7+
The first week consists of:
8+
9+
- creating a release candidate,
10+
- deploying the release candidate to staging,
11+
- testing the release candidate, and
12+
- fixing any potential launch blockers.
13+
14+
The second week consists of:
15+
16+
- pushing the release candidate to production, and
17+
- landing the launch (e.g. cleaning up, monitoring, etc.).
18+
19+
These responsibilities are handled by the "releaser". The releaser rotates every
20+
two weeks. If you'd like to become a member of the release rotation, please
21+
reach out!
22+
23+
## Releaser Responsibilities
24+
25+
### Week 1
26+
27+
#### **Monday:** Create and deploy a new release candidate to staging
28+
29+
1. Choose a version number. The version number follows
30+
[Semantic Versioning 2.0.0](https://semver.org/spec/v2.0.0.html). In short,
31+
version numbers follow `vMAJOR.MINOR.PATCH`, where `MAJOR` is for breaking
32+
changes, `MINOR` is for new features, and `PATCH` is for bug fixes. You can
33+
see previous version numbers chosen by visiting the
34+
[Releases](https://github.com/gee-community/geemap/releases) page.
35+
36+
2. Checkout the appropriate release branch. The branch name should use the
37+
following format: `vMAJOR.MINOR`. The `PATCH` number is excluded from the
38+
branch name.
39+
40+
- For `PATCH` version upgrades, checkout the existing release branch.
41+
- For major/minor version upgrades, create a new branch from `master`.
42+
43+
3. Bump the version number using `bump-my-version` (e.g.
44+
`bump-my-version bump <minor,major,patch>`). The version commit will be made
45+
to the release candidate branch directly. Verify the version number is
46+
as-expected to avoid problems further along.
47+
48+
4. Create a tag for this release (`git tag <tag-name>`). Tags for release
49+
candidates should use the following format: `vMAJOR.MINOR.PATCH-rc.RC_NUM`
50+
(e.g. `v0.32.0-rc.1`). `RC_NUM` starts at 1 and increments for each release
51+
candidate. Push the tag to GitHub with `git push origin <tag-name>`.
52+
53+
#### **Monday to Wednesday:** Test the release candidate
54+
55+
1. Switch to your test environment. Consider using a
56+
[Colab](https://colab.google/) notebook.
57+
58+
2. Install the release candidate by running the following command:
59+
`pip install git+https://github.com/gee-community/geemap.git@branch-name#egg=geemap`
60+
and replacing `branch-name` with the branch name. `pip` will install from the
61+
most recent commit on the release candidate branch.
62+
63+
3. Run through the example notebooks, testing both geemap and geemap core. If
64+
there are any launch blockers, file a bug and raise them to the rest of the
65+
team. The bugs must be fixed and tested before the build reaches production.
66+
67+
#### **Wednesday to Friday:** Fix launch-blockers and re-stage
68+
69+
Skip this section if there aren't any launch-blocking bugs.
70+
71+
1. Commit the fix. Make sure the commits are present on the necessary branches.
72+
73+
- If the fix is for something present on both the `master` and release
74+
candidate branch, make the fix on the `master` branch and cherrypick it
75+
over to the release candidate branch.
76+
- Otherwise, make the fix on the release candidate branch.
77+
78+
2. Switch to the release candidate branch. Run `bump-my-version` to update the
79+
patch number.
80+
81+
3. Create a tag for this release. Increment `RC_NUM` for each release candidate.
82+
Push the tag to GitHub.
83+
84+
### Week 2
85+
86+
#### **Monday to Wednesday:** Deploy the release candidate to production
87+
88+
Before proceeding, make sure the launch blockers have been fixed.
89+
90+
1. Create a new
91+
[GitHub release](https://github.com/gee-community/geemap/releases) based on
92+
the most recent release candidate tag. When generating the release notes,
93+
compare against the most recent version that went to production (i.e. not a
94+
version with the `-rc` suffix).
95+
96+
2. Monitor the [actions](https://github.com/gee-community/geemap/actions)
97+
triggered by the release to make sure they pass. Verify the new version is
98+
present on [PyPi](https://pypi.org/project/geemap/).
99+
100+
3. Switch to the `master` branch to update the changelog. Replace
101+
`markdown_text` in
102+
[`changelog_update.py`](https://github.com/gee-community/geemap/blob/master/docs/changelog_update.py)
103+
with the release notes. Run the script and copy the output into
104+
[changelog.md](https://github.com/gee-community/geemap/blob/master/docs/changelog.md).
105+
106+
4. Switch to the `master` branch to update the version number. Cherrypick the
107+
version bump commit (e.g.
108+
[0.31.0 → 0.32.0](https://github.com/gee-community/geemap/pull/1924/commits/3c2f7548d12e3a7c5600b3cb72a0fa107cdbd983))
109+
into the `master` branch.

0 commit comments

Comments
 (0)