4 Star 6 Fork 1

Gitee 极速下载 / parca

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/parca-dev/parca
克隆/下载
RELEASE.md 3.24 KB
一键复制 编辑 原始数据 按行查看 历史
Maxime Brunet 提交于 2022-08-05 13:47 . fix: lint all code (#1511)

Release schedule

To be discussed.

How to cut a new release

This guide is strongly based on the Prometheus release instructions.

Branch management and versioning strategy

We use Semantic Versioning.

We maintain a separate branch for each minor release, named release-<major>.<minor>, e.g. release-1.1, release-2.0.

The usual flow is to merge new features and changes into the main branch and to merge bug fixes into the latest release branch. Bug fixes are then merged into main from the latest release branch. The main branch should always contain all commits from the latest release branch.

If a bug fix got accidentally merged into main, cherry-pick commits have to be created in the latest release branch, which then have to be merged back into main. Try to avoid that situation.

Maintaining the release branches for older minor releases happens on a best effort basis.

Prepare your release

For a new major or minor release, work from the main branch. For a patch release, work in the branch of the minor release you want to patch (e.g. release-0.3 if you're releasing v0.3.2).

Publish the new release

For new minor and major releases, create the release-<major>.<minor> branch starting at the PR merge commit.

From now on, all work happens on the release-<major>.<minor> branch.

Via GitHub's UI

Go to https://github.com/parca-dev/parca/releases/new and click on "Choose a tag" where you can type the new tag name. Click on "Create new tag" in the dropdown and make sure main is selected for a new major or minor release or the release-<major>.<minor> branch for a patch release. The title of the release is the tag itself. You can generate the changelog and then add additional contents from previous a release (like social media links and more).

Via CLI

Alternatively, you can do the tagging on the commandline:

Tag the new release with a tag named v<major>.<minor>.<patch>, e.g. v2.1.3. Note the v prefix.

git tag -s "v2.1.3" -m "v2.1.3"
git push origin "v2.1.3"

Signed tag with a GPG key is appreciated, but in case you can't add a GPG key to your Github account using the following procedure, you can replace the -s flag by -a flag of the git tag command to only annotate the tag without signing.

Final steps

Our CI pipeline will automatically push the container images to ghcr.io.

Go to https://github.com/parca-dev/parca/releases and check the created release.

For patch releases, submit a pull request to merge back the release branch into the main branch.

Take a breath. You're done releasing.

Generating Snapcraft tokens

The pipeline is configured to release Snap packages automatically to snapcraft.io.

The token for the store has a limited life. It can be regenerated like so (replace date placeholders!):

snapcraft export-login \
  --snaps=parca \
  --acls package_access,package_push,package_update,package_release \
  --expires "YYYY-MM-DD" \
  /tmp/parca_snap_token

The contents of /tmp/parca_snap_token should then be added to a Github Secret called SNAPCRAFT_STORE_CREDENTIALS.

JavaScript
1
https://gitee.com/mirrors/parca.git
git@gitee.com:mirrors/parca.git
mirrors
parca
parca
main

搜索帮助