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-1430, RHELC-1500] Rename incomplete rollback envvar #1147

Merged
merged 1 commit into from
Mar 22, 2024

Conversation

Venefilyn
Copy link
Member

@Venefilyn Venefilyn commented Mar 18, 2024

We are moving away from using the word UNSUPPORTED in environment
variables as it is confusing and not very descriptive of what is
unsupported. Since this relates to the tool itself not supporting it in
a predictable way, we are renaming mentions of the word unsupported.

This change has to do with renaming
CONVERT2RHEL_UNSUPPORTED_INCOMPLETE_ROLLBACK
to
CONVERT2RHEL_INCOMPLETE_ROLLBACK

CONVERT2RHEL_INCOMPLETE_ROLLBACK means that we can garantee a rollback
will be successful on a potential failure and user would have to specify
the environment variable themselves to understand this to not blame the
tool.

This change does not do anything else and no backwards compatibility is
considered as it is intended to be changed in a major version change.

Jira Issues:

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

We are moving away from using the word UNSUPPORTED in environment
variables as it is confusing and not very descriptive of what is
unsupported. Since this relates to the tool itself not supporting it in
a predictable way, we are renaming mentions of the word unsupported.

This change has to do with renaming
CONVERT2RHEL_UNSUPPORTED INCOMPLETE_ROLLBACK
to
CONVERT2RHEL_INCOMPLETE_ROLLBACK

CONVERT2RHEL_INCOMPLETE_ROLLBACK means that we can garantee a rollback
will be successful on a potential failure and user would have to specify
the environment variable themselves to understand this to not blame the
tool.

This change does not do anything else and no backwards compatibility is
considered as it is intended to be changed in a major version change.

Related
RHELC-1430
@Venefilyn Venefilyn added kind/breaking Indicates this will require major version update tests/tier0 PR ready to run the essential test suit. Equivalent to `/packit test --labels tier0`. tests/tier1 Run (optional) tier1 test jobs. Equivalent to `/packit test --labels tier1`. labels Mar 18, 2024
@has-bot
Copy link
Member

has-bot commented Mar 18, 2024

/packit test --labels tier0


Comment generated by an automation.

@has-bot
Copy link
Member

has-bot commented Mar 18, 2024

/packit test --labels tier1


Comment generated by an automation.

Copy link

codecov bot commented Mar 18, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 95.42%. Comparing base (789f493) to head (b9df4a8).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1147   +/-   ##
=======================================
  Coverage   95.42%   95.42%           
=======================================
  Files          51       51           
  Lines        4594     4594           
  Branches      810      810           
=======================================
  Hits         4384     4384           
  Misses        134      134           
  Partials       76       76           
Flag Coverage Δ
centos-linux-7 90.48% <100.00%> (ø)
centos-linux-8 91.47% <100.00%> (ø)
centos-linux-9 91.52% <100.00%> (ø)

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.

@Venefilyn Venefilyn changed the title Breaking change: Rename incomplete rollback envvar [RHELC-1430] Breaking change: Rename incomplete rollback envvar Mar 18, 2024
@Venefilyn
Copy link
Member Author

/packit test

@Venefilyn
Copy link
Member Author

/packit retest-failed

1 similar comment
@Venefilyn
Copy link
Member Author

/packit retest-failed

@Venefilyn Venefilyn merged commit 061bc66 into oamg:main Mar 22, 2024
69 of 80 checks passed
@danmyway
Copy link
Member

Majority of test fails seem unrelated

@Venefilyn
Copy link
Member Author

@Venefilyn Venefilyn deleted the refactor/rename-incomplete-rollback branch March 22, 2024 13:04
@danmyway danmyway changed the title [RHELC-1430] Breaking change: Rename incomplete rollback envvar [RHELC-1430, RHELC-1500] Breaking change: Rename incomplete rollback envvar May 16, 2024
@hosekadam hosekadam mentioned this pull request May 27, 2024
@hosekadam hosekadam changed the title [RHELC-1430, RHELC-1500] Breaking change: Rename incomplete rollback envvar [RHELC-1430, RHELC-1500] Rename incomplete rollback envvar May 27, 2024
bocekm added a commit to bocekm/automated-satellite that referenced this pull request Feb 7, 2025
- 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.
bocekm added a commit to bocekm/automated-satellite that referenced this pull request Feb 7, 2025
- 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.
bocekm added a commit to bocekm/automated-satellite that referenced this pull request Feb 7, 2025
- 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.
bocekm added a commit to bocekm/automated-satellite that referenced this pull request Feb 7, 2025
- 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.
bocekm added a commit to bocekm/automated-satellite that referenced this pull request Feb 7, 2025
- 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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/breaking Indicates this will require major version update tests/tier0 PR ready to run the essential test suit. Equivalent to `/packit test --labels tier0`. tests/tier1 Run (optional) tier1 test jobs. Equivalent to `/packit test --labels tier1`.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants