Skip to content

Strip released local installs from oldest requirements on version bump - #842

Open
lmolkova wants to merge 3 commits into
open-telemetry:mainfrom
lmolkova:strip-local-oldest-on-bump
Open

lmolkova wants to merge 3 commits into
open-telemetry:mainfrom
lmolkova:strip-local-oldest-on-bump

Conversation

@lmolkova

@lmolkova lmolkova commented Oct 3, 2026

Copy link
Copy Markdown
Member

Follow-up to #433, related to #787.

version_utils.py bump now removes local installs from tests/requirements.oldest.txt when the declared floor of that workspace dependency is already released. Without this, the post-release bump PR fails deps-check and the local installs have to be removed by hand (as in #790).

The floor and the workspace version are compared with .dev ignored, so bump --release leaves current-cycle local installs in place. Comments next to the removed lines are not touched.

Verified by running the bump on the pre-#790 tree: it removes the same 15 lines and check_deps.py passes.

Copilot AI balanced review requested due to automatic review settings October 3, 2026 00:21
@lmolkova
lmolkova requested a review from a team as a code owner October 3, 2026 00:21
@opentelemetry-pr-dashboard

opentelemetry-pr-dashboard Bot commented Oct 3, 2026 •

Copy link
Copy Markdown

Pull request dashboard status

Waiting on the author · refreshed 2026-10-04 17:31 UTC

Investigate required status check failures.

Status above doesn't look right?
  • Just replied or pushed? Anything around or after the refresh time above may not be picked up yet — give it a few minutes.
  • Should this be with reviewers? Comment /dashboard route:reviewers to route it to them.
  • Anything wrong — including the routing? Report it with what you expected; it helps us improve the dashboard.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟢 Approval recommended

The cleanup matches the dependency invariant and is covered for development and release bumps.

Review effort: Balanced
Findings: None

What changed in this PR

Automates cleanup of stale local workspace installs during version bumps, preventing post-release dependency-check failures.

Changes:

  • Extracts local-package matching and adds released-install cleanup.
  • Runs cleanup after version bumps with release/dev coverage.
  • Makes packaging available in release workflows.
File Description
scripts/​check_deps.py Adds local-install cleanup logic.
scripts/​version_utils.py Invokes cleanup after bumps.
util/​opentelemetry-util-genai/​tests/​test_version_utils.py Tests cleanup and release behavior.
.github/​workflows/​release-all.yml Supplies packaging during bumps.
.github/​workflows/​_release-finalize.yml Supplies packaging during finalization.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@lmolkova lmolkova added the Skip Changelog PR does not require a changelog entry label Oct 3, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Skip Changelog PR does not require a changelog entry

Development

Successfully merging this pull request may close these issues.

2 participants