fix(litellm): register instrumentation in commitizen version files - #4408
Merged
Conversation
The litellm instrumentation package was added without registering it in `version_files` in .cz.toml, so commitizen never bumped it and it stayed at 0.1.0 while the rest of the monorepo moved to 0.62.2. Because the package is tagged `instrumentation`, the release workflow still built and published it, re-uploading the identical 0.1.0 artifacts every release. On 0.62.2 PyPI rejected the duplicate with "400 File already exists", which aborted the publish step mid-alphabet: every instrumentation from llamaindex onward stayed on 0.62.1, and release-sdk was skipped entirely so traceloop-sdk was never published either. Register both litellm version files and align the package to 0.62.2 so it bumps in lockstep with the rest of the workspace from now on. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (3)
📝 WalkthroughWalkthroughThe Litellm instrumentation package version changes from ChangesLitellm version synchronization
Estimated code review effort: 1 (Trivial) | ~2 minutes 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
doronkopit5
marked this pull request as ready for review
August 10, 2026 08:04
dvirski
approved these changes
Aug 10, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
packages/opentelemetry-instrumentation-litellmwas added in #4322 without registering it inversion_filesin.cz.toml, so commitizen never bumped it and it stayed at0.1.0while the rest of the workspace moved to0.62.2. Itsproject.jsonis taggedinstrumentation, sorelease-instrumentationskept building and publishing it — re-uploading the identical0.1.0artifacts on every release.On 0.62.2 (run 31307495252) PyPI finally rejected the duplicate:
pypa/gh-action-pypi-publishuploads alphabetically and runs withoutskip-existing, so the step aborted atlitellmand took the release with it:agno…langchain(alphabetically before litellm)llamaindex,marqo,mcp,milvus,mistralai,ollama,openai,openai-agents,pinecone,qdrant,replicate,sagemaker,together,transformers,vertexai,voyageai,watsonx,weaviate,writertraceloop-sdk: stranded on 0.62.1 —release-sdkhasneeds: release-instrumentations, so it never ranRe-running didn't help: attempt 1 had already pushed tag
v0.62.2(fatal: tag 'v0.62.2' already exists), and the later manual runs died on[NO_COMMITS_FOUND] No new commits found.The release can't be retried without a new commit onmain— which this PR provides.Fix
.cz.tomlversion_files, using the same:^version/ bare-version.pypattern as every other package.pyproject.tomlandversion.pyto the current commitizen version0.62.2, so the nextcz bumpcarries litellm to0.62.3in lockstep with everything else.uv.lockis deliberately untouched — the self-version there is stale repo-wide (langchain's says0.61.0while it publishes 0.62.2) and plays no part in the release, sincescripts/build-release.shbuilds frompyproject.toml.Verification
The consistency check now passes with litellm included. Also confirmed:
opentelemetry-instrumentation-*package is missing from.cz.toml(litellm was the only one).scripts/build-release.shnow producesopentelemetry_instrumentation_litellm-0.62.2{.tar.gz,-py3-none-any.whl}instead of0.1.0— clears the PyPI filename collision.ruff check .clean;pytest tests/→ 30 passed, 1 skipped.Follow-up (not in this PR)
The workflow is still fragile in two ways worth a separate change:
pypa/gh-action-pypi-publishhas noskip-existing, so any single already-published artifact aborts the whole publish mid-alphabet and silently skips the SDK; and nothing in CI verifies that a newtag:instrumentationpackage is registered in.cz.toml, so the next package added this way reproduces this exact failure.🤖 Generated with Claude Code
Summary by CodeRabbit