Skip to content

chore: fix corrupted v0.3.0 distro version to unblock the release - #50

Merged
ocelotl merged 2 commits into
mainfrom
fix-release-v0.3.0-version
Aug 3, 2026
Merged

chore: fix corrupted v0.3.0 distro version to unblock the release#50
ocelotl merged 2 commits into
mainfrom
fix-release-v0.3.0-version

Conversation

@ocelotl

@ocelotl ocelotl commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

Problem

The second Prepare Release run was invoked with the version input v0.3.0 (leading v) instead of 0.3.0. scripts/bump_for_release.py doesn't strip/validate the prefix, so commit 67b425d set:

  • packages/dash0-opentelemetry/.../version.py__version__ = "v0.3.0" (invalid PEP 440), and
  • a duplicate empty v0.3.0 - 2026-08-03 heading in CHANGELOG.rst above the correct 0.3.0 section.

This broke CI (scripts-testtest_check_version_bumped asserts each package version starts with a digit: AssertionError: ('dash0-opentelemetry', 'v0.3.0')) and the release never went out (no v0.3.0 tag, no Release run, nothing on PyPI).

Fix

Reverts 67b425d, restoring the correct prepared state from the first (good) Prepare Release run:

  • version.py0.3.0
  • removes the duplicate changelog heading (keeps the correct 0.3.0 - 2026-08-03 section)

Everything else from the good prepare (vendored 1.44.0.post1, cascaded == pins, uv.lock) is already correct and untouched. The failing test passes locally after this change.

Follow-up (separate)

scripts/bump_for_release.py should reject/normalize a version argument with a leading v so this can't recur.

@ocelotl
ocelotl requested a review from a team as a code owner August 3, 2026 22:10
@ocelotl ocelotl changed the title Fix corrupted v0.3.0 distro version to unblock the release chore: fix corrupted v0.3.0 distro version to unblock the release Aug 3, 2026
@ocelotl ocelotl closed this Aug 3, 2026
@ocelotl ocelotl reopened this Aug 3, 2026
ocelotl added 2 commits August 3, 2026 17:35
A leading 'v' (e.g. 'v0.3.0') passed to Prepare Release was written straight
into version.py, producing an invalid PEP 440 version and the tag 'vv0.3.0',
which broke CI and stalled the release. Validate the argument up front and
fail before any file is written.
@ocelotl
ocelotl force-pushed the fix-release-v0.3.0-version branch from 9ec8f88 to 0539363 Compare August 3, 2026 22:35
@ocelotl
ocelotl merged commit 1de5332 into main Aug 3, 2026
10 checks passed
@ocelotl
ocelotl deleted the fix-release-v0.3.0-version branch August 3, 2026 22:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants