Uploaded image for project: 'OpenShift API for Data Protection'
  1. OpenShift API for Data Protection
  2. OADP-6710

Add background log capture and post-suite error scanning in automation

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • None
    • None
    • None
    • None
    • Quality / Stability / Reliability
    • 3
    • False
    • Hide

      None

      Show
      None
    • False
    • Not Selected
    • ToDo
    • Very Likely
    • 0
    • None
    • Unset
    • Unknown
    • None

      Description:
      Enhance automation runs by introducing background log collection for the target namespace and scanning logs for errors before suite completion.

      Requirements:

      • Use Stern([*https://github.com/stern/stern*])to continuously capture logs fromĀ  the specified $namespace
      • Save collected logs to a fileĀ 
      • Ensure the log capture runs in the background throughout the automation suite.
      • Add a Ginkgo AfterSuite hook to:
        • Stop the background log capture process.
        • Scan the saved log file for unintended errors (e.g., Error, CrashLoopBackOff, panic, Failed).
        • Report all detected errors in the test output (with context from logs).
        • Upload the captured log file as a CI artifact for easier debugging and post-run analysis.

      Acceptance Criteria:

      • Logs for the given $namespace are saved for every automation run.
      • Any unintended errors found in logs are clearly reported in the test output.
      • Background log capture process terminates cleanly at the end of the run.

              rhn-support-prajoshi Prasad Joshi
              akarol@redhat.com Aziza Karol
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: