XMLWordPrintable

    • Icon: Sub-task Sub-task
    • Resolution: Done
    • Icon: Undefined Undefined
    • None
    • None
    • convert2rhel
    • None
    • False
    • Hide

      None

      Show
      None
    • False
    • RHELBU-1984 - Pre-conversion analysis
    • 2023-Q1
    • Testable

      This class will be the parent of all Actions to be run as part of the pre-assessment.

      The class should encompass:

      • A run method. This is what the Action Framework will run when the pre-assessment checks need to be performed.
      • A dependency list. The actions listed in the dependency list must be run before this Action and must not have failed.
      • A severity level. Tells whether a failure in this check should:
        • be a warning only
        • prevent the conversion until fixed.
        • immediately stop the conversion.
        • This has been moved into the next bullet, output of a run() because an Action may have different errors with different severities.
      • A definition of how to tell if a test has succeeded, failed, or was not able to be run.
        • Success will return None.
        • Failure will raise a specific exception. The Exception will have a numeric code and a message to display to the user.describing the failure and what can be done to remediate it.
          • A base class for this exception must also be written as the Action Runner will use specific fields from the exception when informing the user about failures
        • The Action will have several instance attributes which will be set once the check has been run:
          • status:: success/failure/could not run
          • severity: The failure is always fatal, The failure can be overridden by the user. The failure is a warning to the user (for instance: repoid check (but we are going to remove it))
          • message_id: A string that uniquely identifies the error. Can be used by external tooling to identify exactly what went wrong.
          • message: a message for the user (If we need separate messages for the pre-assessment vs conversion, then we should do this by looking up the message from the message_id in a separate data structure.
        • The runner will determine if an Action was unable to be run due to its dependencies not having run.

            tkuratom@redhat.com Toshio Kuratomi
            tkuratom@redhat.com Toshio Kuratomi
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: