Skip to content

Conversation

@stbenjam
Copy link
Member

The ClusterOperators test was defined as a deferred function inside the clusterUpgrade function, which meant it 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).

Move the deferred test to the parent test scope so it always runs and produces a result, even when earlier tests fail. Also remove the duplicate non-deferred version that only ran on success.

🤖 Generated with Claude Code

/hold

The ClusterOperators test was defined as a deferred function inside the
clusterUpgrade function, which meant it 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).

Move the deferred test to the parent test scope so it always runs and
produces a result, even when earlier tests fail. Also remove the duplicate
non-deferred version that only ran on success.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
@openshift-ci-robot
Copy link

Pipeline controller notification
This repository is configured to use the pipeline controller. Second-stage tests will be triggered either automatically or after lgtm label is added, depending on the repository configuration. The pipeline controller will automatically detect which contexts are required and will utilize /test Prow commands to trigger the second stage.

For optional jobs, comment /test ? to see a list of all defined jobs. Review these jobs and use /test <job> to manually trigger optional jobs most likely to be impacted by the proposed changes.

@openshift-ci-robot openshift-ci-robot added jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. jira/invalid-bug Indicates that a referenced Jira bug is invalid for the branch this PR is targeting. labels Nov 20, 2025
@openshift-ci-robot
Copy link

@stbenjam: This pull request references Jira Issue OCPBUGS-65826, which is invalid:

  • expected the bug to target the "4.21.0" version, but no target version was set

Comment /jira refresh to re-evaluate validity if changes to the Jira bug are made, or edit the title of this pull request to link to a different bug.

The bug has been updated to refer to the pull request using the external bug tracker.

Details

In response to this:

The ClusterOperators test was defined as a deferred function inside the clusterUpgrade function, which meant it 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).

Move the deferred test to the parent test scope so it always runs and produces a result, even when earlier tests fail. Also remove the duplicate non-deferred version that only ran on success.

🤖 Generated with Claude Code

/hold

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository.

@openshift-ci openshift-ci bot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Nov 20, 2025
@openshift-ci openshift-ci bot requested review from deads2k and sjenning November 20, 2025 12:30
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Nov 20, 2025

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: stbenjam

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Nov 20, 2025
stbenjam added a commit to stbenjam/ci-tools that referenced this pull request Nov 20, 2025
… from always passing

This test was previously excluded from aggregation because it would fail
alongside other results, so we didn't need to aggregate this one (I
think that was the reasoning).

https://prow.ci.openshift.org/view/gs/test-platform-results/logs/aggregated-aws-ovn-upgrade-4.21-micro-fips-release-openshift-release-analysis-aggregator/1991442012515078144
is an example where it failed 8x alone and we didn't aggregate it.

The only reason we caught the problem was openshift/origin#30509, the
ClusterOperators test does not always run so we failed on missing
results, rather than the actual failing test.
f,
"[sig-cluster-lifecycle] ClusterOperators are available and not degraded after upgrade",
func() (error, bool) {
if err := operator.WaitForOperatorsToSettle(context.TODO(), client, 5); err != nil {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this just waste 5 minutes spinning now when the upgrade wasn't successful?

@openshift-ci-robot
Copy link

Scheduling required tests:
/test e2e-aws-csi
/test e2e-aws-ovn-fips
/test e2e-aws-ovn-microshift
/test e2e-aws-ovn-microshift-serial
/test e2e-aws-ovn-serial-1of2
/test e2e-aws-ovn-serial-2of2
/test e2e-gcp-csi
/test e2e-gcp-ovn
/test e2e-gcp-ovn-upgrade
/test e2e-vsphere-ovn
/test e2e-vsphere-ovn-upi
/test e2e-aws-csi
/test e2e-aws-ovn-fips
/test e2e-aws-ovn-microshift
/test e2e-aws-ovn-microshift-serial
/test e2e-aws-ovn-serial-1of2
/test e2e-aws-ovn-serial-2of2
/test e2e-gcp-csi
/test e2e-gcp-ovn
/test e2e-gcp-ovn-upgrade
/test e2e-vsphere-ovn
/test e2e-vsphere-ovn-upi
/test e2e-aws-csi
/test e2e-aws-ovn-fips
/test e2e-aws-ovn-microshift
/test e2e-aws-ovn-microshift-serial
/test e2e-aws-ovn-serial-1of2
/test e2e-aws-ovn-serial-2of2
/test e2e-gcp-csi
/test e2e-gcp-ovn
/test e2e-gcp-ovn-upgrade
/test e2e-vsphere-ovn
/test e2e-vsphere-ovn-upi

Scheduling tests matching the pipeline_run_if_changed or not excluded by pipeline_skip_if_only_changed parameters:
/test e2e-aws-ovn-upgrade-rollback

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Nov 20, 2025

@stbenjam: The following tests failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/prow/e2e-aws-ovn-serial-2of2 d3ff09d link true /test e2e-aws-ovn-serial-2of2
ci/prow/e2e-aws-ovn-serial-1of2 d3ff09d link true /test e2e-aws-ovn-serial-1of2
ci/prow/e2e-aws-ovn-upgrade-rollback d3ff09d link false /test e2e-aws-ovn-upgrade-rollback
ci/prow/e2e-aws-csi d3ff09d link true /test e2e-aws-csi
ci/prow/e2e-gcp-ovn d3ff09d link true /test e2e-gcp-ovn

Full PR test history. Your PR dashboard.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here.

@stbenjam stbenjam closed this Nov 24, 2025
@openshift-ci-robot
Copy link

@stbenjam: This pull request references Jira Issue OCPBUGS-65826. The bug has been updated to no longer refer to the pull request using the external bug tracker. All external bug links have been closed. The bug has been moved to the NEW state.

Details

In response to this:

The ClusterOperators test was defined as a deferred function inside the clusterUpgrade function, which meant it 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).

Move the deferred test to the parent test scope so it always runs and produces a result, even when earlier tests fail. Also remove the duplicate non-deferred version that only ran on success.

🤖 Generated with Claude Code

/hold

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. jira/invalid-bug Indicates that a referenced Jira bug is invalid for the branch this PR is targeting. jira/valid-reference Indicates that this PR references a valid Jira ticket of any type.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants