Uploaded image for project: 'RHEL Conversions'
  1. RHEL Conversions
  2. RHELC-965

Refactor pre-conversion analysis to have more accurate messages

XMLWordPrintable

    • 2023-Q2
    • Important
    • Testable

      As an effect of the heavy usage of logger.critical(...) in convert2rhel codebase, we had to intercept and catch those calls in our action class to prevent the conversion to fail as soon as we hit those places.

      The way we are dealing with the logger.critical (SystemExit), and other catch-alls exceptions right now is not ideal, thus, we need to go ahead and replace those calls with proper exceptions, so instead of catching every SystemExit call that we may rise, we will catch specific ones and treat them inside the action class to give the user a better return code and message.

      Places that we need to change

      Example of custom exception being used

      Acceptance Criteria

      • Change all the catch-all exceptions catch from the list above to be a custom exception
        • Keep in mind that the list above points to the comment that says where/what is happening to raise those general exceptions.
      • Catch that new custom exception inside the action class instead of the general catch-all exceptions.
      • NOTE: When you open one of these PRs with updated messages, please CC mportman@redhat.com on the PR so she can let us know if the wording is clear.

            rolivier@redhat.com Rodolfo Olivieri
            rolivier@redhat.com Rodolfo Olivieri
            Freya Gustavsson
            Votes:
            0 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              Resolved: