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-670] Clean up new version check #566

Merged
merged 4 commits into from
Nov 2, 2022

Conversation

Andrew-ang9
Copy link
Contributor

@Andrew-ang9 Andrew-ang9 commented Aug 11, 2022

This PR was made to clean up PR #415, which was merged without taking care of some of the other comments that were left on the PR. Those comments weren't vital enough to stop the PR from being merged.

All comments have been put in the Jira ticket and addressed for the first commit of this PR.

Jira ticket: RHELC-670

@Venefilyn Venefilyn changed the title PR#415 clean up [RHELC-670] Clean up new version check Aug 11, 2022
convert2rhel/checks.py Outdated Show resolved Hide resolved
@codecov
Copy link

codecov bot commented Aug 14, 2022

Codecov Report

Base: 93.30% // Head: 93.41% // Increases project coverage by +0.11% 🎉

Coverage data is based on head (07a6620) compared to base (20e7ad4).
Patch coverage: 100.00% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #566      +/-   ##
==========================================
+ Coverage   93.30%   93.41%   +0.11%     
==========================================
  Files          22       22              
  Lines        3107     3115       +8     
  Branches      552      553       +1     
==========================================
+ Hits         2899     2910      +11     
+ Misses        144      143       -1     
+ Partials       64       62       -2     
Flag Coverage Δ
centos-linux-6 89.88% <100.00%> (+0.12%) ⬆️
centos-linux-7 89.80% <100.00%> (+0.12%) ⬆️
centos-linux-8 89.99% <100.00%> (+0.12%) ⬆️

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

Impacted Files Coverage Δ
convert2rhel/checks.py 96.45% <100.00%> (+0.46%) ⬆️
convert2rhel/utils.py 88.88% <0.00%> (+0.65%) ⬆️

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.
📢 Do you have feedback about the report comment? Let us know in this issue.

convert2rhel/checks.py Outdated Show resolved Hide resolved
convert2rhel/checks.py Outdated Show resolved Hide resolved
convert2rhel/checks.py Outdated Show resolved Hide resolved
convert2rhel/checks.py Outdated Show resolved Hide resolved
convert2rhel/checks.py Outdated Show resolved Hide resolved
convert2rhel/checks.py Outdated Show resolved Hide resolved
convert2rhel/checks.py Outdated Show resolved Hide resolved
r0x0d
r0x0d previously requested changes Aug 22, 2022
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.

I made a couple of suggestions here, but other than that, it looks super good! Also, it's valid to mention that not all suggestions I made need to be applied if you don't think that they don't make sense. None of them were critical, just improvements to the text or style.

Good progress with that PR, @Andrew-ang9!

@lgtm-com
Copy link
Contributor

lgtm-com bot commented Aug 25, 2022

This pull request introduces 2 alerts and fixes 1 when merging 41e0a2f into 4add545 - view on LGTM.com

new alerts:

  • 2 for Unused import

fixed alerts:

  • 1 for Clear-text storage of sensitive information

@lgtm-com
Copy link
Contributor

lgtm-com bot commented Aug 26, 2022

This pull request fixes 1 alert when merging 9753b09 into 4add545 - view on LGTM.com

fixed alerts:

  • 1 for Clear-text storage of sensitive information

@lgtm-com
Copy link
Contributor

lgtm-com bot commented Aug 31, 2022

This pull request fixes 1 alert when merging 13d74b0 into 908f9d5 - view on LGTM.com

fixed alerts:

  • 1 for Clear-text storage of sensitive information

@lgtm-com
Copy link
Contributor

lgtm-com bot commented Sep 7, 2022

This pull request fixes 1 alert when merging 4f7fcf9 into 35eb8f0 - view on LGTM.com

fixed alerts:

  • 1 for Clear-text storage of sensitive information

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.

A few changes, mostly regarding logging, typos, and rewording. But also one about restoring a deleted code section - I admit the acceptance criteria in the issue was a bit confusing with this but it wasn't about removing the section but about preventing bloat by checking internet access in the beginning of the check

convert2rhel/checks.py Outdated Show resolved Hide resolved
convert2rhel/unit_tests/checks_test.py Outdated Show resolved Hide resolved
convert2rhel/checks.py Outdated Show resolved Hide resolved
convert2rhel/checks.py Outdated Show resolved Hide resolved
convert2rhel/checks.py Show resolved Hide resolved
convert2rhel/checks.py Show resolved Hide resolved
convert2rhel/checks.py Outdated Show resolved Hide resolved
convert2rhel/checks.py Outdated Show resolved Hide resolved
@lgtm-com
Copy link
Contributor

lgtm-com bot commented Sep 26, 2022

This pull request fixes 1 alert when merging 504b117 into 26cc4fe - view on LGTM.com

fixed alerts:

  • 1 for Clear-text storage of sensitive information

@packit-as-a-service
Copy link

Your git-forge project github.com/oamg/convert2rhel has permissions to build in @oamg/convert2rhel Copr project configured in Packit. However, we migrated to the solution where you can configure the allowed git-forge projects in Copr yourself and will remove the configuration in Packit for the allowed projects soon. Therefore, please, add this git-forge project github.com/oamg/convert2rhel to Packit allowed forge projectsin the Copr project settings.

@lgtm-com
Copy link
Contributor

lgtm-com bot commented Sep 28, 2022

This pull request fixes 1 alert when merging b49bb23 into 26cc4fe - view on LGTM.com

fixed alerts:

  • 1 for Clear-text storage of sensitive information

convert2rhel/checks.py Outdated Show resolved Hide resolved
convert2rhel/checks.py Outdated Show resolved Hide resolved
@packit-as-a-service
Copy link

Your git-forge project github.com/oamg/convert2rhel has permissions to build in @oamg/convert2rhel Copr project configured in Packit. However, we migrated to the solution where you can configure the allowed git-forge projects in Copr yourself and will remove the configuration in Packit for the allowed projects soon. Therefore, please, add this git-forge project github.com/oamg/convert2rhel to Packit allowed forge projectsin the Copr project settings.

@lgtm-com
Copy link
Contributor

lgtm-com bot commented Oct 4, 2022

This pull request introduces 1 alert and fixes 1 when merging 5de0181 into 23c132f - view on LGTM.com

new alerts:

  • 1 for Implicit string concatenation in a list

fixed alerts:

  • 1 for Clear-text storage of sensitive information

@lgtm-com
Copy link
Contributor

lgtm-com bot commented Oct 4, 2022

This pull request fixes 1 alert when merging 73d9369 into 23c132f - view on LGTM.com

fixed alerts:

  • 1 for Clear-text storage of sensitive information

convert2rhel/checks.py Outdated Show resolved Hide resolved
@lgtm-com
Copy link
Contributor

lgtm-com bot commented Oct 5, 2022

This pull request fixes 1 alert when merging 3bfe512 into ba02486 - view on LGTM.com

fixed alerts:

  • 1 for Clear-text storage of sensitive information

convert2rhel/unit_tests/checks_test.py Outdated Show resolved Hide resolved
convert2rhel/checks.py Outdated Show resolved Hide resolved
@lgtm-com
Copy link
Contributor

lgtm-com bot commented Oct 12, 2022

This pull request fixes 1 alert when merging 6d5c9bc into d233bd7 - view on LGTM.com

fixed alerts:

  • 1 for Clear-text storage of sensitive information

convert2rhel/checks.py Show resolved Hide resolved
convert2rhel/checks.py Outdated Show resolved Hide resolved
@lgtm-com
Copy link
Contributor

lgtm-com bot commented Oct 17, 2022

This pull request fixes 1 alert when merging f60be9f into 321a3ee - view on LGTM.com

fixed alerts:

  • 1 for Clear-text storage of sensitive information

@lgtm-com
Copy link
Contributor

lgtm-com bot commented Oct 17, 2022

This pull request fixes 1 alert when merging 767c1b5 into 321a3ee - view on LGTM.com

fixed alerts:

  • 1 for Clear-text storage of sensitive information

@lgtm-com
Copy link
Contributor

lgtm-com bot commented Oct 19, 2022

This pull request fixes 1 alert when merging b903bf7 into 9a7f103 - view on LGTM.com

fixed alerts:

  • 1 for Clear-text storage of sensitive information

@danmyway
Copy link
Member

/packit test

convert2rhel/checks.py Outdated Show resolved Hide resolved
@lgtm-com
Copy link
Contributor

lgtm-com bot commented Oct 25, 2022

This pull request fixes 1 alert when merging 00a8add into 8f544df - view on LGTM.com

fixed alerts:

  • 1 for Clear-text storage of sensitive information

convert2rhel/checks.py Outdated Show resolved Hide resolved
bocekm
bocekm previously requested changes Oct 27, 2022
convert2rhel/checks.py Outdated Show resolved Hide resolved
@lgtm-com
Copy link
Contributor

lgtm-com bot commented Nov 1, 2022

This pull request fixes 1 alert when merging ffe33b6 into 20e7ad4 - view on LGTM.com

fixed alerts:

  • 1 for Clear-text storage of sensitive information

* Changed the gpg_keys var name to fit better
* Fixes typos in some of the logging messages
* Got rid of the two imports that are not used
* Added the check to see if the c2r is the latest
* Removed the debug comments that where in ther code
* Moved a constant var to the module level
* Fixed a typo in the "cmd" var
* changed the unit test to handle differnt major ver
* Update debug log message to clarify this is about an internal
  variable, not about the packages on the system.
* Rename environment variable
* Update log messages that use the CONVERT2RHEL_UNSUPPORTED_VERSION to
  use the new name: CONVERT2RHEL_ALLOW_OLDER_VERSION
* Fix tests for new environment variable name
* Switch from --repofrom to a repofile set by --setopt.  Turning on
  proper ssl certificate checking using --setopt works on RHEL8 (dnf)
  but doesn't work on RHEL7 (yum) so we have to use a repo file.

Co-authored-by: Michal Bocek <[email protected]>
@Venefilyn Venefilyn dismissed stale reviews from bocekm and r0x0d November 2, 2022 15:23

Addressed and verified

@Venefilyn Venefilyn merged commit 71c2123 into oamg:main Nov 2, 2022
@Venefilyn Venefilyn mentioned this pull request Nov 30, 2022
Venefilyn pushed a commit that referenced this pull request Jun 19, 2023
Co-authored-by: Michal Bocek <[email protected]>
Co-authored-by: Toshio Kuratomi <[email protected]>
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.

6 participants