Skip to content

Temp/validate mindependency fix#48120

Open
pranz1996 wants to merge 10 commits into
Azure:mainfrom
pranz1996:temp/validate-mindependency-fix
Open

Temp/validate mindependency fix#48120
pranz1996 wants to merge 10 commits into
Azure:mainfrom
pranz1996:temp/validate-mindependency-fix

Conversation

@pranz1996

Copy link
Copy Markdown
Member

Description

Please add an informative description that covers that changes made by the pull request and link all relevant issues.

If an SDK is being regenerated based on a new API spec, a link to the pull request containing these API spec changes should be included above.

All SDK Contribution checklist:

  • The pull request does not introduce [breaking changes]
  • CHANGELOG is updated for new features, bug fixes or other significant changes.
  • I have read the contribution guidelines.

General Guidelines and Best Practices

  • Title of the pull request is clear and informative.
  • There are a small number of commits, each of which have an informative message. This means that previously merged commits do not appear in the history of the PR. For more information on cleaning up the commits in your PR, see this page.

Testing Guidelines

  • Pull request includes test coverage for the included changes.

Karthik Sethuraman and others added 9 commits March 2, 2026 10:38
Adds ServiceBus unit tests mirroring the EventHub coverage for the pyamqp transport socket-option fix, closing the gap flagged in the PR review. Covers _get_tcp_socket_defaults() and _set_socket_options() for both sync and async transports, verifying defaults are applied and platform-unsupported options (e.g. TCP_MAXSEG) are skipped -- the container/virtualized-environment regression.

Refs: Azure#45394
Add unreleased CHANGELOG entries for azure-servicebus and azure-eventhub documenting the pyamqp transport container/virtualized-environment socket-option fix.

Refs: Azure#45394
# Conflicts:
#	sdk/servicebus/azure-servicebus/CHANGELOG.md
Aligns azure-eventhub _version.py with the '## 5.15.2 (Unreleased)' CHANGELOG heading so changelog verification validates against the correct unreleased entry.

Refs: Azure#45394
Validation branch: kseth/fix-transports + mindependency CFSClean fix. Ensures PyPIClient uses the internal Azure Artifacts feed instead of pypi.org during min/latest dependency resolution, which is blocked under CFSClean.
Copilot AI review requested due to automatic review settings July 17, 2026 21:24
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).
9 pipeline(s) were filtered out due to trigger conditions.
There may be pipelines that require an authorized user to comment /azp run to run.

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.

Pull request overview

Updates dependency resolution for isolated CI and fixes vendored AMQP socket configuration in Event Hubs and Service Bus.

Changes:

  • Defaults dependency resolution to the CFS feed.
  • Applies only configured, platform-supported TCP defaults.
  • Adds regression tests, release notes, versioning, and Event Hubs API snapshots.

Reviewed changes

Copilot reviewed 15 out of 16 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
sdk/servicebus/azure-servicebus/tests/unittests/test_transport.py Tests socket defaults and application.
sdk/servicebus/azure-servicebus/CHANGELOG.md Documents the connection fix.
sdk/servicebus/azure-servicebus/azure/servicebus/_pyamqp/utils.py Applies formatting.
sdk/servicebus/azure-servicebus/azure/servicebus/_pyamqp/aio/_transport_async.py Filters async socket defaults.
sdk/servicebus/azure-servicebus/azure/servicebus/_pyamqp/_transport.py Filters sync socket defaults and fixes names.
sdk/servicebus/azure-servicebus/azure/servicebus/_pyamqp/_platform.py Restricts platform-safe TCP options.
sdk/eventhub/azure-eventhub/tests/pyamqp_tests/unittest/test_transport.py Tests socket defaults and application.
sdk/eventhub/azure-eventhub/CHANGELOG.md Adds 5.15.2 release notes.
sdk/eventhub/azure-eventhub/azure/eventhub/_version.py Bumps version to 5.15.2.
sdk/eventhub/azure-eventhub/azure/eventhub/_pyamqp/aio/_transport_async.py Applies filtered async defaults.
sdk/eventhub/azure-eventhub/azure/eventhub/_pyamqp/aio/_client_async.py Applies formatting.
sdk/eventhub/azure-eventhub/azure/eventhub/_pyamqp/_transport.py Filters sync socket defaults and fixes names.
sdk/eventhub/azure-eventhub/azure/eventhub/_pyamqp/_platform.py Restricts platform-safe TCP options.
sdk/eventhub/azure-eventhub/api.metadata.yml Adds API snapshot metadata.
sdk/eventhub/azure-eventhub/api.md Adds the public API snapshot.
eng/tools/azure-sdk-tools/ci_tools/scenario/dependency_resolution.py Selects CFS for dependency resolution.

Comment on lines +48 to +53
current = os.environ.get("PIP_INDEX_URL", "")
if "pkgs.dev.azure.com" in current:
return
if current:
logger.info("Overriding PIP_INDEX_URL %s with CFS feed for dependency resolution.", current)
os.environ["PIP_INDEX_URL"] = CFS_INDEX_URL
if "pkgs.dev.azure.com" in current:
return
if current:
logger.info("Overriding PIP_INDEX_URL %s with CFS feed for dependency resolution.", current)
…n resolve_compatible_package

Under CFSClean, project_release() hits pypi.org and fails. Catch the connection error and continue the best-effort version walk instead of crashing the whole mindependency check.
Copilot AI review requested due to automatic review settings July 17, 2026 22:02

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.

Pull request overview

Copilot reviewed 16 out of 17 changed files in this pull request and generated 3 comments.

Comment on lines +48 to +50
current = os.environ.get("PIP_INDEX_URL", "")
if "pkgs.dev.azure.com" in current:
return
if "pkgs.dev.azure.com" in current:
return
if current:
logger.info("Overriding PIP_INDEX_URL %s with CFS feed for dependency resolution.", current)
Comment on lines +752 to +756
try:
version_release = pypi.project_release(package_name, version).get("info", {}).get("requires_dist", [])
except Exception as e:
logging.warning(
"Unable to retrieve release metadata for %s==%s while resolving a compatible version: %s",
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants