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-784] Allow but warn about deprecated env var #648

Merged
merged 2 commits into from
Nov 7, 2022

Conversation

abadger
Copy link
Member

@abadger abadger commented Nov 2, 2022

We've renamed CONVERT2RHEL_UNSUPPORTED_VERSION to CONVERT2RHEL_ALLOW_OLDER_VERSION. Allow the old env var name to be used but emit a deprecation warning in the log.

Add unittests to show the deprecation message is emitted when we use the old env var rather than the new one to allow the conversion to continue.

Followup to changes introduced for: #566
Jira Issue: RHELC-784

Checklist

  • PR meets acceptance criteria specified in the Jira issue
  • 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
  • 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

We've renamed CONVERT2RHEL_UNSUPPORTED_VERSION to
CONVERT2RHEL_ALLOW_OLDER_VERSION.  Allow the old env var name to be used
but emit a deprecation warning in the log.

Add unittests to show the deprecation message is emitted when we use the
old env var rather than the new one to allow the conversion to continue.
@codecov
Copy link

codecov bot commented Nov 2, 2022

Codecov Report

Base: 93.41% // Head: 93.42% // Increases project coverage by +0.00% 🎉

Coverage data is based on head (ae8f7d1) compared to base (71c2123).
Patch coverage: 100.00% of modified lines in pull request are covered.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #648   +/-   ##
=======================================
  Coverage   93.41%   93.42%           
=======================================
  Files          22       22           
  Lines        3115     3118    +3     
  Branches      553      554    +1     
=======================================
+ Hits         2910     2913    +3     
  Misses        143      143           
  Partials       62       62           
Flag Coverage Δ
centos-linux-6 89.89% <100.00%> (+<0.01%) ⬆️
centos-linux-7 89.81% <100.00%> (+<0.01%) ⬆️
centos-linux-8 90.00% <100.00%> (+<0.01%) ⬆️

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

Impacted Files Coverage Δ
convert2rhel/checks.py 96.49% <100.00%> (+0.03%) ⬆️

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.

@r0x0d
Copy link
Member

r0x0d commented Nov 3, 2022

Re-running one integration test as it seems to be failing because of infrastructure problems.

@r0x0d
Copy link
Member

r0x0d commented Nov 7, 2022

@abadger I think you need to link this issue as well: RHELC-784

@Venefilyn Venefilyn changed the title [RHELC-670] Allow but warn about deprecated env var [RHELC-784] Allow but warn about deprecated env var Nov 7, 2022
@Venefilyn
Copy link
Member

@abadger I think you need to link this issue as well: RHELC-784

You're right, I changed it to be that one instead

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.

Seems good to me, we can merge since the integration tests failing seem unrelated. Leaving it to you @r0x0d

@r0x0d
Copy link
Member

r0x0d commented Nov 7, 2022

The test /tests/integration/tier0/inhibit-if-kmods-is-not-supported is fixed in upstream, a rebase should fix this, but I would say that's not necessary, since every PR is failing with that.

All errors seem to not be related to the PR. Merging this right now.

@r0x0d r0x0d merged commit 84b723c into oamg:main Nov 7, 2022
hosekadam pushed a commit to hosekadam/convert2rhel that referenced this pull request Nov 11, 2022
* Allow but warn about deprecated env var

We've renamed CONVERT2RHEL_UNSUPPORTED_VERSION to
CONVERT2RHEL_ALLOW_OLDER_VERSION.  Allow the old env var name to be used
but emit a deprecation warning in the log.

Add unittests to show the deprecation message is emitted when we use the
old env var rather than the new one to allow the conversion to continue.

* Update convert2rhel/unit_tests/checks_test.py
@Venefilyn Venefilyn mentioned this pull request Nov 30, 2022
abadger added a commit to Andrew-ang9/convert2rhel that referenced this pull request Dec 7, 2022
* Allow but warn about deprecated env var

We've renamed CONVERT2RHEL_UNSUPPORTED_VERSION to
CONVERT2RHEL_ALLOW_OLDER_VERSION.  Allow the old env var name to be used
but emit a deprecation warning in the log.

Add unittests to show the deprecation message is emitted when we use the
old env var rather than the new one to allow the conversion to continue.

* Update convert2rhel/unit_tests/checks_test.py
Venefilyn pushed a commit that referenced this pull request Jun 19, 2023
* Allow but warn about deprecated env var

We've renamed CONVERT2RHEL_UNSUPPORTED_VERSION to
CONVERT2RHEL_ALLOW_OLDER_VERSION.  Allow the old env var name to be used
but emit a deprecation warning in the log.

Add unittests to show the deprecation message is emitted when we use the
old env var rather than the new one to allow the conversion to continue.

* Update convert2rhel/unit_tests/checks_test.py
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.

None yet

3 participants