Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Fix pip.installed state managed pre-release upgrades#68526

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
kurtrwall wants to merge3 commits intosaltstack:3006.x
base:3006.x
Choose a base branch
Loading
fromkurtrwall:fix-pip-install-prerelease-upgrade

Conversation

@kurtrwall
Copy link

@kurtrwallkurtrwall commentedDec 11, 2025
edited
Loading

What does this PR do?

What issues does this PR fix or reference?

Fixes#68525

Previous Behavior

Python packages installed in an environment would not upgrade to their pre-release version when any exist in the index.

New Behavior

Pre-release versions of packages managed bypip.installed state are upgraded when usingupgrade=True andpre_releases=True.

Merge requirements satisfied?

[NOTICE] Bug fixes or features added to Salt require tests.

Commits signed with GPG?

No

bdrx312 reacted with thumbs up emoji
@kurtrwallkurtrwall requested a review froma team as acode ownerDecember 11, 2025 02:17
@kurtrwallkurtrwallforce-pushed thefix-pip-install-prerelease-upgrade branch from16ddd3a to2a05161CompareDecember 11, 2025 02:18
@kurtrwallkurtrwall changed the base branch frommaster to3005.xDecember 11, 2025 02:19
@kurtrwallkurtrwall requested a review froma team as acode ownerDecember 11, 2025 02:19
@kurtrwallkurtrwall requested review fromdwoz and removed request fora teamDecember 11, 2025 02:19
@kurtrwall
Copy link
Author

I've been able to trace the bug back to the inception of the code that usespip index versions, so I based the PR on the v3004.x branch, but I'm unsure if that was the appropriate one.

I'm also having a bit of trouble with the tests, but I didn't want it to block the contribution.

@twangboy
Copy link
Contributor

We do bug fixes on the olders supported branch where the bug exists. There will be no more releases of 3004 and 3005. The oldest supported branch is 3006.x. Please rebase this PR on 3006.x.
Also, please create a changelog for this PR.
https://docs.saltproject.io/en/3006/topics/development/changelog.html

kurtrwall reacted with thumbs up emoji

`pip index versions` will never yield pre-release versions of thepackage without the `--pre` option.In effect, this means providing `pre_releases=True` and `upgrade=True`to the `pip.installed` state will never work, but I'm unsure of theactual extent of this bug.
@kurtrwallkurtrwallforce-pushed thefix-pip-install-prerelease-upgrade branch from2a05161 to7a239d1CompareDecember 11, 2025 17:55
@kurtrwall
Copy link
Author

Rebased to 3006.x and refactored the test a bit to utililze the new fixtures and provide more coverage.

@kurtrwallkurtrwallforce-pushed thefix-pip-install-prerelease-upgrade branch from6213954 to2af6443CompareDecember 11, 2025 18:11
@twangboytwangboy changed the base branch from3005.x to3006.xDecember 11, 2025 20:04
@twangboytwangboy added the test:fullRun the full test suite labelDec 11, 2025
@twangboytwangboy added this to theSulfur v3006.18 milestoneDec 11, 2025
@kurtrwall
Copy link
Author

Hey all, thanks for the quick review of this PR.

Out of curiousity, how does the release flow work? Does the bugfix get released to all major versions, i.e. 3006.+1, 3007.+1?

@twangboy
Copy link
Contributor

It will be merged in to 3006.x and then we will merge-forward all those changes into future branches.

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

Reviewers

@twangboytwangboytwangboy approved these changes

@dwozdwozAwaiting requested review from dwozdwoz was automatically assigned from saltstack/team-core

Assignees

No one assigned

Labels

test:fullRun the full test suite

Projects

None yet

Milestone

Sulfur v3006.18

Development

Successfully merging this pull request may close these issues.

[Bug]: pip.installed state will not upgrade to pre-releases

2 participants

@kurtrwall@twangboy

[8]ページ先頭

©2009-2025 Movatter.jp