Uploaded image for project: 'OpenShift Bugs'
  1. OpenShift Bugs
  2. OCPBUGS-65826

ClusterOperators test doesn't produce result when earlier upgrade test fails

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Undefined Undefined
    • None
    • 4.21
    • Test Framework
    • None
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Problem

      The test "[sig-cluster-lifecycle] ClusterOperators are available and not degraded after upgrade" does not produce a result if an earlier upgrade test fails, such as "[sig-arch][Feature:ClusterUpgrade] Cluster should remain functional during upgrade [Disruptive] [Serial]".

      Root Cause

      The ClusterOperators test was defined as a deferred function inside the clusterUpgrade() function in test/e2e/upgrade/upgrade.go. This meant the test would not run if the parent test "Cluster should remain functional during upgrade" failed before calling clusterUpgrade() (e.g., during config loading or upgrade context setup).

      Impact

      When upgrade tests fail early, the ClusterOperators test never runs and produces no result, making it harder to diagnose cluster state after failed upgrades.

      Fix

      Move the deferred ClusterOperators test to the parent test scope so it always runs and produces a result, even when earlier tests fail.

      Related PR

      Fix committed in: https://github.com/openshift/origin/commit/d3ff09db8d

              rhn-engineering-dgoodwin Devan Goodwin
              stbenjam Stephen Benjamin
              None
              None
              None
              None
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: