Skip to content

Fix opentelemetry dependency conflicts by regenerating requirements.txt with pip-compile #2640

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

Copilot
Copy link
Contributor

@Copilot Copilot AI commented Jul 28, 2025

This PR fixes the CI failure in Dependabot PR #2600 that attempted to upgrade opentelemetry-instrumentation-psycopg2 from 0.52b1 to 0.56b0.

Problem

The original Dependabot upgrade failed because it only upgraded some opentelemetry packages while leaving others at incompatible versions, creating a dependency conflict:

× No solution found when resolving dependencies:
  ╰─▶ Because opentelemetry-instrumentation==0.56b0 depends on
      opentelemetry-semantic-conventions==0.56b0 and you require
      opentelemetry-instrumentation==0.56b0, we can conclude that you require
      opentelemetry-semantic-conventions==0.56b0.
      And because you require opentelemetry-semantic-conventions==0.52b1, we
      can conclude that your requirements are unsatisfiable.

Solution

Used pip-compile to properly regenerate requirements.txt with resolved dependencies:

pip-compile requirements.in --upgrade -o requirements.txt

This updated all opentelemetry packages to consistent 0.57b0 versions (newer than Dependabot's target), including:

  • opentelemetry-instrumentation-psycopg2==0.57b0 (the original target)
  • opentelemetry-semantic-conventions==0.57b0 (resolves the conflict)
  • All other opentelemetry packages updated to 0.57b0 for consistency

The solution also upgraded azure-monitor-opentelemetry to version 1.6.13, which supports the newer opentelemetry package versions.

Fixes #2639.


💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.

@pamelafox
Copy link
Collaborator

@copilot Install failed-

Run uv pip install -r requirements-dev.txt
× No solution found when resolving dependencies:
╰─▶ Because opentelemetry-instrumentation==0.56b0 depends on
opentelemetry-semantic-conventions==0.56b0 and you require
opentelemetry-instrumentation==0.56b0, we can conclude that you require
opentelemetry-semantic-conventions==0.56b0.
And because you require opentelemetry-semantic-conventions==0.52b1, we
can conclude that your requirements are unsatisfiable.

Copy link
Contributor Author

Copilot AI commented Jul 29, 2025

@copilot Install failed-

Run uv pip install -r requirements-dev.txt
...

Fixed the dependency conflict by using pip-compile to regenerate requirements.txt properly. The issue was that manually upgrading individual opentelemetry packages created inconsistent versions. Now all opentelemetry packages are at consistent 0.57b0 versions, and both requirements.txt and requirements-dev.txt install successfully. The fix is in commit e280d12.

@Copilot Copilot AI changed the title [WIP] Dependabot #2600 to upgrade opentelemetry-instrumentation-psycopg2 failed CI Fix opentelemetry dependency conflicts by regenerating requirements.txt with pip-compile Jul 29, 2025
Copilot finished work on behalf of pamelafox July 29, 2025 23:49
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.

Dependabot #2600 to upgrade opentelemetry-instrumentation-psycopg2 failed CI
2 participants