|
| 1 | +# Releasing splunk-opentelemetry |
| 2 | + |
| 3 | +This document describes the steps to release a new version of the `splunk-opentelemetry` package. |
| 4 | + |
| 5 | +Steps to release a new version: |
| 6 | + |
| 7 | +1) Create a new branch from `main` |
| 8 | +2) Bump dependency versions in pyproject.toml |
| 9 | + - update otel dependencies to the latest versions, e.g.: |
| 10 | + - `"opentelemetry-exporter-otlp-proto-http==1.36.0"` |
| 11 | + - `"opentelemetry-instrumentation==0.57b0"` |
| 12 | +3) Bump our version in __about__.py |
| 13 | +4) Update additional version string locations |
| 14 | + - `ott_lib.py` # this file is used as a library for integration tests |
| 15 | + - `docker/requirements.txt` # this file is used to build the docker init image for the operator |
| 16 | + - `docker/example-instrumentation.yaml` # this file is just an example but would be nice to show the latest version |
| 17 | +5) Add a new entry in CHANGELOG.md |
| 18 | +6) Commit the changes with a message like "Bump version to 3.4.5" |
| 19 | + - you may want to use multiple commits for clarity, e.g.: |
| 20 | + - bump dependency versions |
| 21 | + - bump our version in `__about__.py` |
| 22 | + - update additional version string locations |
| 23 | + - update CHANGELOG.md |
| 24 | +7) Push the changes to the Github Splunk OTel Python repo |
| 25 | +8) Open a PR and merge after approval |
| 26 | +9) Navigate to the GitLab mirror and verify that the mirror has pulled the version you just merged by checking the |
| 27 | + version number in the `__about__.py` file |
| 28 | +10) When ready to release, create a new tag like `v3.4.5` on main in GitLab with the version number |
| 29 | + - a tag of the format `vX.Y.Z` will trigger the CI pipeline to build and publish the package to PyPI and the Docker image to Quay |
| 30 | +11) Monitor the release pipeline in GitLab to ensure it completes successfully |
| 31 | +12) Post release, verify that the new package is available on PyPI and the Docker image is available on Quay |
| 32 | +13) Smoke test the release locally by installing the new package and running it with a small app |
0 commit comments