Skip to content
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

replace test_zypper_dup_works with test_no_downgrade_on_install #329

Merged
merged 1 commit into from
Jan 23, 2024

Conversation

dirkmueller
Copy link
Member

test_zypper_dup is a bit too agressive and on the other side misses cases. so we just validate that installing any of the additional packages would not cause a downgrade in the container.

continue
for req in solvable.get("solvable:requires", ()):
# Skip boolean dependencies or unversioned ones
if "(" in req or " = " not in req:
Copy link
Collaborator

Choose a reason for hiding this comment

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

This will also skip virtual requires like pkgconfig(libfoo) = 1.2.3.

Copy link
Member Author

Choose a reason for hiding this comment

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

@dcermak yeah, I didn't want to implement provides/requires matching logic. so far it was finding the essential issues without that (as typically people do Requires: %name = %version-%release somewhere. we can always improve that later if it is necessary to find more issues (but already now it finds too many :/ )

@dirkmueller dirkmueller force-pushed the no_downgrade branch 3 times, most recently from e4add9e to 2543ace Compare October 25, 2023 08:01
tests/test_repository.py Outdated Show resolved Hide resolved
@dirkmueller dirkmueller force-pushed the no_downgrade branch 7 times, most recently from 233622d to 3c99a3d Compare October 29, 2023 09:47
@dirkmueller dirkmueller requested a review from grisu48 October 30, 2023 11:58
grisu48
grisu48 previously approved these changes Oct 30, 2023
test_zypper_dup is a bit too agressive and on the other side
misses cases. so we just validate that installing any of the additional
packages would not cause a downgrade in the container.
@dirkmueller dirkmueller merged commit 987020d into main Jan 23, 2024
142 checks passed
@dirkmueller dirkmueller deleted the no_downgrade branch January 23, 2024 14:03
rcmadhankumar pushed a commit that referenced this pull request Aug 30, 2024
replace test_zypper_dup_works with test_no_downgrade_on_install
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.

4 participants