-
Notifications
You must be signed in to change notification settings - Fork 81
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-779] Remove unused call_yum_cmd_w_downgrades function
#669
[RHELC-779] Remove unused call_yum_cmd_w_downgrades function
#669
Conversation
286665a
to
b2bc732
Compare
Codecov ReportBase: 92.44% // Head: 92.46% // Increases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## main #669 +/- ##
==========================================
+ Coverage 92.44% 92.46% +0.01%
==========================================
Files 22 22
Lines 3192 3171 -21
Branches 564 559 -5
==========================================
- Hits 2951 2932 -19
+ Misses 173 172 -1
+ Partials 68 67 -1
Flags with carried forward coverage won't be shown. Click here to find out more.
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
@danmyway while removing away old code that was not necessary any more, I found out this test https://github.com/oamg/convert2rhel/blob/leftover-comments-from-merge-yum-transactions/tests/integration/tier1/yum-distro-sync/test_yum_distro_sync.py#L13 that seems to mimic the function that I removed, the That function was replaced with the Do you think it's necessary to still have this integration test or adapt it somehow to be more related to the ones defined here https://github.com/oamg/convert2rhel/blob/a53baba4d2fc445b32b051eb782e5aef1c2c8768/tests/integration/tier1/single-yum-transaction/test_single_yum_transaction.py? |
@@ -67,49 +67,6 @@ def __init__(self, pkg_obj, fingerprint): | |||
self.fingerprint = fingerprint | |||
|
|||
|
|||
def call_yum_cmd_w_downgrades(cmd, pkgs, retries=MAX_YUM_CMD_CALLS): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That function was not being used anywhere else other than in unit tests.
IIUIC, I believe, that we do not need the integration test then, @r0x0d |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I know this is still going to get some work as Rodolfo handles the integration test update but it looks good so far. It hits all of the acceptance criteria specified i nthe jira ticket.
I will leave it here for a while. We can come back to this after the release and remove the integration test if it is not needed any more. |
b2bc732
to
5cca81d
Compare
tests/integration/tier1/handle-special-pkgs-case/test_handle_shim_x64_pkg.py
Outdated
Show resolved
Hide resolved
tests/integration/tier1/handle-special-pkgs-case/test_handle_shim_x64_pkg.py
Outdated
Show resolved
Hide resolved
/packit test |
4be813a
to
2838533
Compare
What is this blocked on? Jira issue doesn't say |
We were blocked by #668, but it's merged now. Just forgot to remove the label |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a good change. +1 to merge.
After merging the oamg#528, we left behind a few comments to be addressed in a future PR as they were mostly about comments/logs that could be improved. In this PR, there is also a removal of one unused function that was marked as a TODO in oamg#528. Signed-off-by: Rodolfo Olivieri <rolivier@redhat.com>
Signed-off-by: Rodolfo Olivieri <rolivier@redhat.com>
Signed-off-by: Rodolfo Olivieri <rolivier@redhat.com>
3f6a481
to
992fc06
Compare
Rebased to trigger tests, let's see if the failures are only related to things that are not part from this PR. |
Couldn't see anything with tests that isn't caused by other things. Merging and monitoring main branch results |
output = resolve_dep_errors(output) | ||
|
||
# if we have problematic packages, remove them | ||
problematic_pkgs = get_problematic_pkgs(output) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These two functions, resolve_dep_errors()
and get_problematic_pkgs()
, are not used anywhere else and might have been removed together with the call_yum_cmd_w_downgrades()
.
I'll create a ticket to have that done. EDIT: Here it is: https://issues.redhat.com/browse/RHELC-903.
call_yum_cmd_w_downgrades function
Some dependencies related to dependency error resolution were left behind while working on oamg#669. This commit introduces the removal of the functions that were being left out. Signed-off-by: Rodolfo Olivieri <rolivier@redhat.com>
Some dependencies related to dependency error resolution were left behind while working on oamg#669. This commit introduces the removal of the functions that were being left out. Signed-off-by: Rodolfo Olivieri <rolivier@redhat.com>
* Remove unused dependency error resolution functions Some dependencies related to dependency error resolution were left behind while working on #669. This commit introduces the removal of the functions that were being left out. Signed-off-by: Rodolfo Olivieri <rolivier@redhat.com> * Remove extra constants Some contants were left in the code after removing some tests in pkghandler_test.py and in pkghandler.py. Signed-off-by: Rodolfo Olivieri <rolivier@redhat.com> * Remove extra constant and unused file Signed-off-by: Rodolfo Olivieri <rolivier@redhat.com> --------- Signed-off-by: Rodolfo Olivieri <rolivier@redhat.com>
* Remove unused dependency error resolution functions Some dependencies related to dependency error resolution were left behind while working on #669. This commit introduces the removal of the functions that were being left out. Signed-off-by: Rodolfo Olivieri <rolivier@redhat.com> * Remove extra constants Some contants were left in the code after removing some tests in pkghandler_test.py and in pkghandler.py. Signed-off-by: Rodolfo Olivieri <rolivier@redhat.com> * Remove extra constant and unused file Signed-off-by: Rodolfo Olivieri <rolivier@redhat.com> --------- Signed-off-by: Rodolfo Olivieri <rolivier@redhat.com>
After merging the #528, we left behind a few comments to be addressed in a future PR as they were mostly about comments/logs that could be improved.
In this PR, there is also a removal of one unused function that was marked as a TODO in #528.
Signed-off-by: Rodolfo Olivieri rolivier@redhat.com
Jira Issue: RHELC-779
Checklist
[RHELC-]
is part of the PR titleRelease Pending
Blocker