-
Notifications
You must be signed in to change notification settings - Fork 87
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-1397] Always save conversion facts file #1102
Conversation
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #1102 +/- ##
==========================================
- Coverage 94.89% 94.84% -0.06%
==========================================
Files 49 49
Lines 4549 4541 -8
Branches 809 806 -3
==========================================
- Hits 4317 4307 -10
- Misses 156 158 +2
Partials 76 76
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
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.
Haven't tested it locally, but it looks good!
/packit test --labels tier0 |
1 similar comment
/packit test --labels tier0 |
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.
@sideangleside mentioned that what we do is not telemetry.
tests/integration/tier0/non-destructive/basic-sanity-checks/test_basic_sanity_checks.py
Outdated
Show resolved
Hide resolved
.../non-destructive/single-yum-transaction-validation/test_single_yum_transaction_validation.py
Outdated
Show resolved
Hide resolved
Co-authored-by: Michal Bocek <[email protected]>
/packit test --labels tier0 |
* Always save conversion facts. * Remove unit tests related to disabling telemetry. * Remove disabled telemetry checks from integration tests. * Apply suggestions from code review Co-authored-by: Michal Bocek <[email protected]> --------- Co-authored-by: Michal Bocek <[email protected]>
loggerinst.info("Skipping, telemetry disabled.") | ||
"""Print information about data collection and ask for acknowledgement.""" | ||
loggerinst.info( | ||
"The convert2rhel utility generates a /etc/rhsm/facts/convert2rhel.fact file that contains the below data" |
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.
The path is wrong. Fixed in #1183.
- The --no-rpm-va option has no effect with `convert2rhel analysis` anymore (rpm -Va runs always and a warning is printed when the option is used saying that it has no effect) -- Related: oamg/convert2rhel#875 - The CONVERT2RHEL_DISABLE_TELEMETRY env var was removed -- Related: oamg/convert2rhel#1102 - The CONVERT2RHEL_UNSUPPORTED_INCOMPLETE_ROLLBACK was removed in favor of CONVERT2RHEL_INCOMPLETE_ROLLBACK -- Related: oamg/convert2rhel#1147 - The CONVERT2RHEL_LATEST_VERSION env var has never been a valid env var recognized by convert2rhel. It is an ID of one of convert2rhel Actions. A similar env var to this is CONVERT2RHEL_UNSUPPORTED_VERSION which is in recent versions (2.x) removed in favor of CONVERT2RHEL_ALLOW_OLDER_VERSION.
- The --no-rpm-va option has no effect with `convert2rhel analysis` anymore (rpm -Va runs always and a warning is printed when the option is used saying that it has no effect) -- Related: oamg/convert2rhel#875 - The CONVERT2RHEL_DISABLE_TELEMETRY env var was removed -- Related: oamg/convert2rhel#1102 - The CONVERT2RHEL_UNSUPPORTED_INCOMPLETE_ROLLBACK was removed in favor of CONVERT2RHEL_INCOMPLETE_ROLLBACK -- Related: oamg/convert2rhel#1147 - The CONVERT2RHEL_LATEST_VERSION env var has never been a valid env var recognized by convert2rhel. It is an ID of one of convert2rhel Actions. A similar env var to this is CONVERT2RHEL_UNSUPPORTED_VERSION which is in recent versions (2.x) removed in favor of CONVERT2RHEL_ALLOW_OLDER_VERSION.
- The --no-rpm-va option has no effect with `convert2rhel analysis` anymore (rpm -Va runs always and a warning is printed when the option is used saying that it has no effect) -- Related: oamg/convert2rhel#875 - The CONVERT2RHEL_DISABLE_TELEMETRY env var was removed -- Related: oamg/convert2rhel#1102 - The CONVERT2RHEL_UNSUPPORTED_INCOMPLETE_ROLLBACK was removed in favor of CONVERT2RHEL_INCOMPLETE_ROLLBACK -- Related: oamg/convert2rhel#1147 - The CONVERT2RHEL_LATEST_VERSION env var has never been a valid env var recognized by convert2rhel. It is an ID of one of convert2rhel Actions. A similar env var to this is CONVERT2RHEL_UNSUPPORTED_VERSION which is in recent versions (2.x) removed in favor of CONVERT2RHEL_ALLOW_OLDER_VERSION.
- The --no-rpm-va option has no effect with `convert2rhel analysis` anymore (rpm -Va runs always and a warning is printed when the option is used saying that it has no effect) -- Related: oamg/convert2rhel#875 - The CONVERT2RHEL_DISABLE_TELEMETRY env var was removed -- Related: oamg/convert2rhel#1102 - The CONVERT2RHEL_UNSUPPORTED_INCOMPLETE_ROLLBACK was removed in favor of CONVERT2RHEL_INCOMPLETE_ROLLBACK -- Related: oamg/convert2rhel#1147 - The CONVERT2RHEL_LATEST_VERSION env var has never been a valid env var recognized by convert2rhel. It is an ID of one of convert2rhel Actions. A similar env var to this is CONVERT2RHEL_UNSUPPORTED_VERSION which is in recent versions (2.x) removed in favor of CONVERT2RHEL_ALLOW_OLDER_VERSION.
- The --no-rpm-va option has no effect with `convert2rhel analysis` anymore (rpm -Va runs always and a warning is printed when the option is used saying that it has no effect) -- Related: oamg/convert2rhel#875 - The CONVERT2RHEL_DISABLE_TELEMETRY env var was removed -- Related: oamg/convert2rhel#1102 - The CONVERT2RHEL_UNSUPPORTED_INCOMPLETE_ROLLBACK was removed in favor of CONVERT2RHEL_INCOMPLETE_ROLLBACK -- Related: oamg/convert2rhel#1147 - The CONVERT2RHEL_LATEST_VERSION env var has never been a valid env var recognized by convert2rhel. It is an ID of one of convert2rhel Actions. A similar env var to this is CONVERT2RHEL_UNSUPPORTED_VERSION which is in recent versions (2.x) removed in favor of CONVERT2RHEL_ALLOW_OLDER_VERSION. Also, the convert_reboot_requested should not be needed when it comes to just analyzing the system (convert2rhel analyze). The --restart convert2rhel option is heeded just when it comes to the actual conversion. And, when the workshop executes and older convert2rhel version (on purpose) then the pre-conversion analysis ends up with two inhibitors: - Outdated convert2rhel version detected - Outdated packages detected This commit adds the related environment variables to override the inhibitors.
Always create the conversion facts file.
This change removes the
CONVERT2RHEL_DISABLE_TELEMETRY
environment variable.Jira Issues: RHELC-1397
Checklist
[RHELC-]
is part of the PR titleRelease Pending
if relevant