Collector build and testing is currently fully automated. However there are still certain operations that need to be performed manually in order to make a release.
We release both core and contrib collectors with the same versions where the contrib release uses the core release as a dependency. We’ve divided this process into four sections. A release engineer must release:
Important Note: You’ll need to be able to sign git commits/tags in order to be able to release a collector version. Follow this guide to setup it up.
Important Note: You’ll need to be an approver for both the repos in order to be able to make the release. This is required as you’ll need to push tags and commits directly to the following repositories:
- open-telemetry/opentelemetry-collector
- open-telemetry/opentelemetry-collector-contrib
- open-telemetry/opentelemetry-collector-releases
A release manager is the person responsible for a specific release. While the manager might request help from other folks, they are ultimately responsible for the success of a release.
In order to have more people comfortable with the release process, and in order to decrease the burden on a small number of volunteers, all core approvers are release managers from time to time, listed under the Release Schedule section. That table is updated at every release, with the current manager adding themselves to the bottom of the table, removing themselves from the top of the table.
It is possible that a core approver isn't a contrib approver. In that case, the release manager should coordinate with a contrib approver for the steps requiring such role, like the publishing of tags.
-
Update Contrib to use the latest in development version of Core by running
make update-otel
in Contrib root directory. This is to ensure that the latest core does not break contrib in any way. If it results in any changes, submit a PR to Contrib.- 🛑 Do not move forward until this PR is merged.
-
Determine the version number that will be assigned to the release. Usually, we increment the minor version number and set the patch number to 0. In this document, we are using
v0.85.0
as the version to be released, followingv0.84.0
. Check if stable modules have any changes since the last release by runningmake check-changes PREVIOUS_VERSION=v1.0.0 MODSET=stable
. If there are no changes, there is no need to release new version for stable modules. If there are changes found but .chloggen directory doesn't have any corresponding entries, add missing changelog entries. If the changes are insignificant, consider not releasing a new version for stable modules. -
Manually run the action Automation - Prepare Release. This action will create an issue to track the progress of the release and a pull request to update the changelog and version numbers in the repo. While this PR is open all merging in Core should be halted.
- When prompted, enter the version numbers determined in Step 2, but do not include a leading
v
. - If not intending to release stable modules, do not specify a version for
Release candidate version stable
. - If the PR needs updated in any way you can make the changes in a fork and PR those changes into the
prepare-release-prs/x
branch. You do not need to wait for the CI to pass in this prep-to-prep PR. - 🛑 Do not move forward until this PR is merged. 🛑
- When prompted, enter the version numbers determined in Step 2, but do not include a leading
-
Check out the commit created by merging the PR created by
Automation - Prepare Release
(e.g.prepare-release-prs/0.85.0
) and create a branch namedrelease/<release-series>
(e.g.release/v0.85.x
). Push the new branch toopen-telemetry/opentelemetry-collector
. -
Make sure you are on
release/<release-series>
. Tag the module groups with the new release version by running:make push-tags MODSET=beta
for beta modules group,make push-tags MODSET=stable
beta stable modules group, only if there were changes since the last release.
If you set your remote using
https
you need to includeREMOTE=https://github.com/open-telemetry/opentelemetry-collector.git
in each command. Wait for the new tag build to pass successfully. -
The release script for the collector builder should create a new GitHub release for the builder. This is a separate release from the core, but we might join them in the future if it makes sense.
-
A new
v0.85.0
release should be automatically created on Github by now. Edit it and use the contents from the CHANGELOG.md and CHANGELOG-API.md as the release's description. -
Update the draft PR to Contrib created in step 1 to use the newly released Core version and set it to Ready for Review.
- Run
make update-otel OTEL_VERSION=v0.85.0 OTEL_STABLE_VERSION=v1.1.0
- Manually update
cmd/otelcontribcol/builder-config.yaml
- Manually update
cmd/oteltestbedcol/builder-config.yaml
- Run
make genotelcontribcol
- Push updates to the PR
- 🛑 Do not move forward until this PR is merged. 🛑
- Run
-
Manually run the action Automation - Prepare Release. When prompted, enter the version numbers determined in Step 1, but do not include a leading
v
. This action will create a pull request to update the changelog and version numbers in the repo. While this PR is open all merging in Contrib should be halted.- If the PR needs updated in any way you can make the changes in a fork and PR those changes into the
prepare-release-prs/x
branch. You do not need to wait for the CI to pass in this prep-to-prep PR. - 🛑 Do not move forward until this PR is merged. 🛑
- If the PR needs updated in any way you can make the changes in a fork and PR those changes into the
-
Check out the commit created by merging the PR created by
Automation - Prepare Release
(e.g.prepare-release-prs/0.85.0
) and create a branch namedrelease/<release-series>
(e.g.release/v0.85.x
). Push the new branch toopen-telemetry/opentelemetry-collector-contrib
. -
Make sure you are on
release/<release-series>
. Tag all the module groups (contrib-base
) with the new release version by running themake push-tags MODSET=contrib-base
command. If you set your remote usinghttps
you need to includeREMOTE=https://github.com/open-telemetry/opentelemetry-collector-contrib.git
in each command. Wait for the new tag build to pass successfully. -
A new
v0.85.0
release should be automatically created on Github by now. Edit it and use the contents from the CHANGELOG.md as the release's description.
The last step of the release process creates artifacts for the new version of the collector and publishes images to Dockerhub. The steps in this portion of the release are done in the opentelemetry-collector-releases repo.
-
Update the
./distribution/**/manifest.yaml
files to include the new release version. -
Update the builder version in
OTELCOL_BUILDER_VERSION
to the new release in theMakefile
. While this might not be strictly necessary for every release, this is a good practice. -
Create a pull request with the change and ensure the build completes successfully. See example.
- 🛑 Do not move forward until this PR is merged. 🛑
-
Check out the commit created by merging the PR and tag with the new release version by running the
make push-tags TAG=v0.85.0
command. If you set your remote usinghttps
you need to includeREMOTE=https://github.com/open-telemetry/opentelemetry-collector-releases.git
in each command. Wait for the new tag build to pass successfully. -
Ensure the "Release" action passes, this will
-
push new container images to
https://hub.docker.com/repository/docker/otel/opentelemetry-collector
andhttps://hub.docker.com/repository/docker/otel/opentelemetry-collector-contrib
-
create a Github release for the tag and push all the build artifacts to the Github release. See example.
-
-
unknown revision internal/coreinternal/v0.85.0
-- This is typically an indication that there's a dependency on a new module. You can fix it by adding a newreplaces
entry to thego.mod
for the affected module. -
commitChangesToNewBranch failed: invalid merge
-- This is a known issue with our release tooling. The current workaround is to clone a fresh copy of the repository and try again. Note that you may need to set up afork
remote pointing to your own fork for the release tooling to work properly. -
could not run Go Mod Tidy: go mod tidy failed
when runningmultimod
-- This is a known issue with our release tooling. The current workaround is to runmake gotidy
manually after the multimod tool fails and commit the result. -
Incorrect version "X" of "go.opentelemetry.io/collector/component" is included in "X"
in CI aftermake update-otel
-- It could be because the make target was run too soon after updating Core and the goproxy hasn't updated yet. Try runningexport GOPROXY=direct
and thenmake update-otel
. -
error: failed to push some refs to 'https://github.com/open-telemetry/opentelemetry-collector-contrib.git'
duringmake push-tags
-- If you encounter this error themake push-tags
target will terminate without pushing all the tags. Using the output of themake push-tags
target, save all the un-pushed the tags intags.txt
and then use this make target to complete the push:.PHONY: temp-push-tags temp-push-tags: for tag in `cat tags.txt`; do \ echo "pushing tag $${tag}"; \ git push ${REMOTE} $${tag}; \ done;
Both opentelemetry-collector
and opentelemetry-collector-contrib
have very short 2 week release cycles. Because of this, we put a high bar when considering making a patch release, to avoid wasting engineering time unnecessarily.
When considering making a bugfix release on the v0.N.x
release cycle, the bug in question needs to fulfill the following criteria:
- The bug has no workaround or the workaround is significantly harder to put in place than updating the version. Examples of simple workarounds are:
- Reverting a feature gate.
- Changing the configuration to an easy to find value.
- The bug happens in common setups. To gauge this, maintainers can consider the following:
- If the bug is specific to a certain platform, and if that platform is in Tier 1.
- The bug happens with the default configuration or with a commonly used one (e.g. has been reported by multiple people)
- The bug is sufficiently severe. For example (non-exhaustive list):
- The bug makes the Collector crash reliably
- The bug makes the Collector fail to start under an accepted configuration
- The bug produces significant data loss
- The bug makes the Collector negatively affect its environment (e.g. significantly affects its host machine)
We aim to provide a release that fixes security-related issues in at most 30 days since they are publicly announced; with the current release schedule this means security issues will typically not warrant a bugfix release. An exception is critical vulnerabilities (CVSSv3 score >= 9.0), which will warrant a release within five business days.
The OpenTelemetry Collector maintainers will ultimately have the responsibility to assess if a given bug or security issue fulfills all the necessary criteria and may grant exceptions in a case-by-case basis.
The following documents the procedure to release a bugfix
- Create a pull request against the
release/<release-series>
(e.g.release/v0.90.x
) branch to apply the fix. - Make sure you are on
release/<release-series>
. Prepare release commits withprepare-release
make target, e.g.make prepare-release PREVIOUS_VERSION=0.90.0 RELEASE_CANDIDATE=0.90.1 MODSET=beta
, and create a pull request against therelease/<release-series>
branch. - Once those changes have been merged, create a pull request to the
main
branch from therelease/<release-series>
branch. - If you see merge conflicts when creating the pull request, do the following:
- Create a new branch from
origin:main
. - Merge the
release/<release-series>
branch into the new branch. - Resolve the conflicts.
- Create another pull request to the
main
branch from the new branch to replace the pull request from therelease/<release-series>
branch.
- Create a new branch from
- Enable the Merge pull request setting in the repository's Settings tab.
- Make sure you are on
release/<release-series>
. Push the new release version tags for a target module set by runningmake push-tags MODSET=<beta|stable>
. Wait for the new tag build to pass successfully. - IMPORTANT: The pull request to bring the changes from the release branch MUST be merged using the Merge pull request method, and NOT squashed using “Squash and merge”. This is important as it allows us to ensure the commit SHA from the release branch is also on the main branch. Not following this step will cause much go dependency sadness.
- If the pull request was created from the
release/<release-series>
branch, it will be auto-deleted. Restore the release branch via GitHub. - Once the patch is released, disable the Merge pull request setting.
Stable modules adhere to our versioning document guarantees, so we need to be careful before releasing. Before adding a module to the stable module set and making a first 1.x release, please open a new stabilization issue and follow the instructions in the issue template.
Once a module is ready to be released under the 1.x
version scheme, file a PR to move the module to the stable
module set and remove it from the beta
module set. Note that we do not make v1.x.y-rc.z
style releases for new stable modules; we instead treat the last two beta minor releases as release candidates and the module moves directly from the 0.x
to the 1.x
release series.
Date | Version | Release manager |
---|---|---|
2024-06-17 | v0.103.0 | @djaglowski |
2024-07-01 | v0.104.0 | @atoulme |
2024-07-15 | v0.105.0 | @TylerHelmuth |
2024-07-29 | v0.106.0 | @songy23 |
2024-08-12 | v0.107.0 | @dmitryax |
2024-08-26 | v0.108.0 | @codeboten |
2024-09-09 | v0.109.0 | @bogdandrutu |
2024-09-23 | v0.110.0 | @jpkrohling |
2024-10-07 | v0.111.0 | @mx-psi |