Dependencies filter available versions based on prerelease state of initial requirement#45043
Merged
scbedd merged 1 commit intoAzure:mainfrom Feb 5, 2026
Merged
Conversation
…equirement is GA, then only include GA. Otherwise include all
Contributor
There was a problem hiding this comment.
Pull request overview
This pull request adds prerelease filtering to the dependency resolution process used during latest/mindependency workflows. The changes address an issue where prerelease versions were being selected when they shouldn't be, which was causing installation failures (specifically with azure-ai-evaluation due to httpx/openai compatibility issues).
Changes:
- Added logic to filter out prerelease package versions unless the dependency specifier explicitly allows them
- Minor code formatting improvements (compressing multi-line list comprehensions to single lines)
- Added trailing comma to dictionary definition for consistency
l0lawrence
approved these changes
Feb 5, 2026
Member
Author
|
Nightly core tests checking out. Merged. |
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.
During processing of
latest/mindependency, we have the following flow:azure-ai-evaluationtriggered this investigation due to the weird behavior around httpx resolving > 1 and being incompatible withopenaiinstall - breaking latestdependency installation forazure-ai-evaluation.msrest), apply those filters to the versions coming back from the package manager.This PR adds an additional step before processing the bounded versions -> filter out any packages that are prerelease if the specifier is not prerelease itself.
Frankly this has been like this a long time, I'm surprised it's taken this long to break.
As for origin, I have a suspicion that the behavior change is due to this PR: https://github.com/Azure/azure-sdk-for-python/pull/41973/changes#diff-3ea00033d292b993f07eec44e7472a93982f8275a6025c20df7423f067a1c1ca