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

[RHELC-1070] Duplicate package check for preconversion analysis #987

Merged
merged 2 commits into from
Feb 20, 2024

Conversation

pr-watson
Copy link
Contributor

This PR adds a check to preconversion analysis to run "package-cleanup --dupes" to see if the users system contains multiple versions of the same package. If multiple versions of the same package are detected then an error is raised and the user is instructed to remove the duplicate packages with the help of the package-cleanup command.

Jira Issues: RHELC-1070

Checklist

  • PR has been tested manually in a VM (either author or reviewer)
  • Jira issue has been made public if possible
  • [RHELC-] is part of the PR title
  • GitHub label has been added to help with Release notes
  • PR title explains the change from the user's point of view
  • Code and tests are documented properly
  • The commits are squashed to as few commits as possible (without losing data)
  • When merged: Jira issue has been updated to Release Pending if relevant

@pr-watson pr-watson added kind/feature New feature or request tests/all Run the full test suite. Equivalent to `/packit test`. labels Nov 20, 2023
@has-bot
Copy link
Member

has-bot commented Nov 20, 2023

/packit test


@oamg/conversions-qe please review results and provide ack.

Copy link

codecov bot commented Nov 20, 2023

Codecov Report

Attention: 1 lines in your changes are missing coverage. Please review.

Comparison is base (c76c45e) 94.34% compared to head (e88931d) 94.34%.
Report is 31 commits behind head on main.

Files Patch % Lines
...t2rhel/actions/system_checks/duplicate_packages.py 93.33% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #987      +/-   ##
==========================================
- Coverage   94.34%   94.34%   -0.01%     
==========================================
  Files          47       48       +1     
  Lines        4580     4595      +15     
  Branches      818      821       +3     
==========================================
+ Hits         4321     4335      +14     
  Misses        182      182              
- Partials       77       78       +1     
Flag Coverage Δ
centos-linux-7 89.56% <93.33%> (+0.01%) ⬆️
centos-linux-8 90.55% <93.33%> (+<0.01%) ⬆️
centos-linux-9 90.61% <93.33%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@pr-watson
Copy link
Contributor Author

/packit test

@pr-watson
Copy link
Contributor Author

/packit build

@Venefilyn
Copy link
Member

/packit test

1 similar comment
@pr-watson
Copy link
Contributor Author

/packit test

Copy link
Member

@r0x0d r0x0d left a comment

Choose a reason for hiding this comment

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

Few comments, but otherwise, looks good!

@pr-watson pr-watson force-pushed the duplicate-packages branch 2 times, most recently from c35b1e7 to a0de28c Compare January 22, 2024 20:49
@pr-watson
Copy link
Contributor Author

/packit test

Copy link
Member

@Venefilyn Venefilyn left a comment

Choose a reason for hiding this comment

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

LGTM, just minor things. Can be corrected after test runs are done

@Venefilyn
Copy link
Member

/packit test

@pr-watson
Copy link
Contributor Author

With the Ethel Stage refresh going on today all tests here will be failing

@kokesak
Copy link
Member

kokesak commented Feb 15, 2024

/packit build

@Venefilyn
Copy link
Member

/packit test

4 similar comments
@pr-watson
Copy link
Contributor Author

/packit test

@pr-watson
Copy link
Contributor Author

/packit test

@pr-watson
Copy link
Contributor Author

/packit test

@pr-watson
Copy link
Contributor Author

/packit test

@pr-watson
Copy link
Contributor Author

/packit retest-failed

@pr-watson
Copy link
Contributor Author

Once #1095 is merged the integration test failures related to the redhatrelease file backup should be fixed

@pr-watson pr-watson merged commit bbae477 into oamg:main Feb 20, 2024
41 of 57 checks passed
@Venefilyn Venefilyn mentioned this pull request Feb 22, 2024
jochapma pushed a commit to jochapma/convert2rhel that referenced this pull request Mar 11, 2024
…#987)

* [RHELC-1070] Duplicate package check for preconversion analysis

* Update convert2rhel/actions/system_checks/duplicate_packages.py

Co-authored-by: Rodolfo Olivieri <[email protected]>

---------

Co-authored-by: Freya Gustavsson <[email protected]>
Co-authored-by: Rodolfo Olivieri <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature New feature or request tests/all Run the full test suite. Equivalent to `/packit test`.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants