Skip to content

Conversation

@deads2k
Copy link
Contributor

@deads2k deads2k commented Sep 27, 2023

while looking at #7525 and weighing code complexity versus efficient, this may be worth the inefficiency for understandability. It's an option, not a requirement and I do recognize that it's closer to the original than the efficient.

@openshift-ci openshift-ci bot requested review from rwsu and sadasu September 27, 2023 18:39
@deads2k
Copy link
Contributor Author

deads2k commented Sep 27, 2023

/retest

@r4f4
Copy link
Contributor

r4f4 commented Sep 27, 2023

/test e2e-vsphere-ovn
/test e2e-vsphere-zones
/test e2e-gcp-ovn
/test e2e-azure-ovn

Copy link
Contributor

@r4f4 r4f4 left a comment

Choose a reason for hiding this comment

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

Suggested some changes to use the new set syntax (using Go generics). Other than that, I think I prefer this version since it's much easier to understand and maintain.
I don't think the "inefficiency" is an issue since all we're doing is to wait for the operators anyway.

Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
logrus.Debug("These cluster operators were stable: [%s]", strings.Join(stableOperators.List(), ", "))
logrus.Debugf("These cluster operators were stable: [%s]", strings.Join(sets.List(stableOperators), ", "))

Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
previouslyStableOperators := sets.String{}
previouslyStableOperators := sets.New[string]()

Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
func currentOperatorStability(clusterOperatorLister configlisters.ClusterOperatorLister) (sets.String, sets.String, error) {
func currentOperatorStability(clusterOperatorLister configlisters.ClusterOperatorLister) (sets.Set[string], sets.Set[string], error) {

Comment on lines 757 to 758
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
stableOperators := sets.String{}
unstableOperators := sets.String{}
stableOperators := sets.New[string]()
unstableOperators := sets.New[string]()

Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
for _, name := range newlyStableOperators.List() {
for _, name := range sets.List(newlyStableOperators) {

Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
for _, name := range newlyUnstableOperators.List() {
for _, name := range sets.List(newlyUnstableOperators) {

Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
logrus.Errorf("These cluster operators were not stable: [%s]", strings.Join(unstableOperators.List(), ", "))
logrus.Errorf("These cluster operators were not stable: [%s]", strings.Join(sets.List(unstableOperators), ", "))

@deads2k
Copy link
Contributor Author

deads2k commented Sep 28, 2023

the generic set doesn't have an ordered List that is very nice.

@deads2k
Copy link
Contributor Author

deads2k commented Sep 28, 2023

the generic set doesn't have an ordered List that is very nice.

I see. Very nice. Didn't know that was a thing

@r4f4
Copy link
Contributor

r4f4 commented Sep 28, 2023

/test e2e-vsphere-ovn
/test e2e-vsphere-zones
/test e2e-gcp-ovn
/test e2e-azure-ovn

@r4f4
Copy link
Contributor

r4f4 commented Sep 28, 2023

/cc @patrickdillon
We might have gotten it this time. It would be good to have you check it as well.

@r4f4
Copy link
Contributor

r4f4 commented Sep 28, 2023

I'm waiting for the CI results to stamp it, but LGTM.

@deads2k deads2k mentioned this pull request Sep 28, 2023
@r4f4
Copy link
Contributor

r4f4 commented Sep 28, 2023

With a deadline of 1 minute for all operators to reach stable in #7538, we can see the output in case of failure

time="2023-09-28T20:59:16Z" level=error msg="Error checking cluster operator Progressing status: \"context deadline exceeded\""
time="2023-09-28T20:59:16Z" level=debug msg="These cluster operators were stable: [authentication, baremetal, cloud-controller-manager, cloud-credential, cluster-autoscaler, config-operator, console, control-plane-machine-set, csi-snapshot-controller, dns, image-registry, ingress, insights, kube-apiserver, kube-controller-manager, kube-scheduler, kube-storage-version-migrator, machine-api, machine-approver, machine-config, marketplace, monitoring, network, node-tuning, openshift-apiserver, openshift-controller-manager, operator-lifecycle-manager, operator-lifecycle-manager-catalog, operator-lifecycle-manager-packageserver, service-ca, storage]"
time="2023-09-28T20:59:16Z" level=error msg="These cluster operators were not stable: [etcd, openshift-samples]"

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Sep 28, 2023
@r4f4
Copy link
Contributor

r4f4 commented Sep 29, 2023

/payload 4.15 nightly informing

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Sep 29, 2023

@r4f4: trigger 62 job(s) of type informing for the nightly release of OCP 4.15

  • periodic-ci-openshift-release-master-nightly-4.15-e2e-agent-compact-ipv4
  • periodic-ci-openshift-release-master-nightly-4.15-e2e-agent-ha-dualstack
  • periodic-ci-openshift-release-master-nightly-4.15-e2e-agent-sno-ipv6
  • periodic-ci-openshift-release-master-nightly-4.15-console-aws
  • periodic-ci-openshift-cluster-control-plane-machine-set-operator-release-4.15-periodics-e2e-aws
  • periodic-ci-openshift-release-master-nightly-4.15-e2e-aws-csi
  • periodic-ci-openshift-release-master-ci-4.15-e2e-aws-ovn
  • periodic-ci-openshift-release-master-nightly-4.15-e2e-aws-ovn-fips
  • periodic-ci-openshift-release-master-nightly-4.15-e2e-aws-ovn-single-node
  • periodic-ci-openshift-release-master-nightly-4.15-e2e-aws-ovn-single-node-serial
  • periodic-ci-openshift-release-master-nightly-4.15-e2e-aws-ovn-upgrade-rollback-oldest-supported
  • periodic-ci-openshift-release-master-nightly-4.15-e2e-aws-sdn
  • periodic-ci-openshift-release-master-nightly-4.15-e2e-aws-sdn-cgroupsv2
  • periodic-ci-openshift-release-master-ci-4.15-e2e-aws-sdn-techpreview
  • periodic-ci-openshift-release-master-ci-4.15-e2e-aws-sdn-techpreview-serial
  • periodic-ci-openshift-release-master-nightly-4.15-e2e-aws-ovn-upi
  • periodic-ci-openshift-cluster-control-plane-machine-set-operator-release-4.15-periodics-e2e-azure
  • periodic-ci-openshift-release-master-nightly-4.15-e2e-azure-csi
  • periodic-ci-openshift-release-master-ci-4.15-e2e-azure-ovn
  • periodic-ci-openshift-release-master-nightly-4.15-e2e-azure-sdn
  • periodic-ci-openshift-release-master-ci-4.15-e2e-azure-sdn-techpreview
  • periodic-ci-openshift-release-master-ci-4.15-e2e-azure-sdn-techpreview-serial
  • periodic-ci-openshift-release-master-ci-4.15-e2e-azure-sdn-upgrade
  • periodic-ci-openshift-release-master-nightly-4.15-e2e-azure-deploy-cnv
  • periodic-ci-openshift-release-master-nightly-4.15-e2e-azure-upgrade-cnv
  • periodic-ci-openshift-release-master-nightly-4.15-e2e-aws-driver-toolkit
  • periodic-ci-openshift-cluster-control-plane-machine-set-operator-release-4.15-periodics-e2e-gcp
  • periodic-ci-openshift-release-master-ci-4.15-e2e-gcp-ovn
  • periodic-ci-openshift-release-master-nightly-4.15-e2e-gcp-ovn-csi
  • periodic-ci-openshift-release-master-nightly-4.15-e2e-gcp-ovn-rt
  • periodic-ci-openshift-release-master-ci-4.15-upgrade-from-stable-4.14-e2e-gcp-ovn-upgrade
  • periodic-ci-openshift-release-master-nightly-4.15-e2e-gcp-sdn
  • periodic-ci-openshift-release-master-nightly-4.15-e2e-gcp-sdn-serial
  • periodic-ci-openshift-release-master-ci-4.15-e2e-gcp-sdn-techpreview
  • periodic-ci-openshift-release-master-ci-4.15-e2e-gcp-sdn-techpreview-serial
  • periodic-ci-openshift-release-master-nightly-4.15-e2e-gcp-sdn-upgrade
  • periodic-ci-openshift-release-master-ci-4.15-upgrade-from-stable-4.14-e2e-gcp-sdn-upgrade
  • periodic-ci-openshift-release-master-nightly-4.15-e2e-metal-ipi-ovn-dualstack
  • periodic-ci-openshift-release-master-nightly-4.15-e2e-metal-ipi-sdn-bm-upgrade
  • periodic-ci-openshift-release-master-nightly-4.15-upgrade-from-stable-4.14-e2e-metal-ipi-sdn-bm-upgrade
  • periodic-ci-openshift-release-master-nightly-4.15-e2e-metal-ipi-sdn-serial-ipv4
  • periodic-ci-openshift-release-master-nightly-4.15-e2e-metal-ipi-sdn-serial-virtualmedia-bond
  • periodic-ci-openshift-release-master-nightly-4.15-e2e-metal-ipi-serial-ovn-ipv6
  • periodic-ci-openshift-release-master-nightly-4.15-e2e-metal-ipi-serial-ovn-dualstack
  • periodic-ci-openshift-release-master-nightly-4.15-e2e-metal-ipi-upgrade-ovn-ipv6
  • periodic-ci-openshift-release-master-nightly-4.15-upgrade-from-stable-4.14-e2e-metal-ipi-upgrade-ovn-ipv6
  • periodic-ci-openshift-release-master-nightly-4.15-e2e-metal-ovn-assisted
  • periodic-ci-openshift-osde2e-main-nightly-4.15-osd-aws
  • periodic-ci-openshift-osde2e-main-nightly-4.15-osd-gcp
  • periodic-ci-openshift-release-master-nightly-4.15-e2e-aws-ovn-proxy
  • periodic-ci-openshift-release-master-nightly-4.15-e2e-metal-ovn-single-node-live-iso
  • periodic-ci-openshift-osde2e-main-nightly-4.15-rosa-classic-sts
  • periodic-ci-openshift-release-master-nightly-4.15-e2e-aws-sdn-upgrade
  • periodic-ci-openshift-release-master-nightly-4.15-e2e-telco5g
  • periodic-ci-openshift-release-master-nightly-4.15-upgrade-from-stable-4.14-e2e-aws-sdn-upgrade
  • periodic-ci-openshift-release-master-nightly-4.15-e2e-vsphere-ovn-csi
  • periodic-ci-openshift-release-master-nightly-4.15-e2e-vsphere-ovn-serial
  • periodic-ci-openshift-release-master-nightly-4.15-e2e-vsphere-ovn-techpreview
  • periodic-ci-openshift-release-master-nightly-4.15-e2e-vsphere-ovn-techpreview-serial
  • periodic-ci-openshift-release-master-nightly-4.15-e2e-vsphere-ovn-upi
  • periodic-ci-openshift-release-master-nightly-4.15-e2e-vsphere-ovn-upi-serial
  • periodic-ci-openshift-release-master-nightly-4.15-e2e-vsphere-sdn

See details on https://pr-payload-tests.ci.openshift.org/runs/ci/a27c9130-5f02-11ee-9880-d88f52ff8b23-0

@openshift-merge-robot openshift-merge-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Oct 1, 2023
@openshift-ci openshift-ci bot removed the lgtm Indicates that a PR is ready to be merged. label Oct 2, 2023
@openshift-merge-robot openshift-merge-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Oct 2, 2023
Copy link
Contributor

@r4f4 r4f4 left a comment

Choose a reason for hiding this comment

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

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Oct 2, 2023

// waitForStableOperators ensures that each cluster operator is "stable", i.e. the
// operator has not been in a progressing state for at least a certain duration,
// 30 seconds by default. Returns an error if any operator does meet this threshold
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
// 30 seconds by default. Returns an error if any operator does meet this threshold
// 30 seconds by default. Returns an error if any operator does not meet this threshold

right?

@patrickdillon
Copy link
Contributor

/approve

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Oct 2, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: patrickdillon

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 Oct 2, 2023
@openshift-ci-robot
Copy link
Contributor

/retest-required

Remaining retests: 0 against base HEAD a1cfa18 and 2 for PR HEAD 94c54e0 in total

@openshift-merge-robot
Copy link
Contributor

@deads2k: 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/okd-scos-e2e-aws-ovn 94c54e0 link false /test okd-scos-e2e-aws-ovn
ci/prow/okd-scos-images 94c54e0 link true /test okd-scos-images
ci/prow/images 94c54e0 link true /test images
ci/prow/okd-e2e-aws-ovn 94c54e0 link false /test okd-e2e-aws-ovn
ci/prow/e2e-aws-ovn 94c54e0 link true /test e2e-aws-ovn
ci/prow/okd-e2e-aws-ovn-upgrade 94c54e0 link false /test okd-e2e-aws-ovn-upgrade
ci/prow/okd-images 94c54e0 link true /test okd-images
ci/prow/e2e-aws-custom-security-groups 94c54e0 link false /test e2e-aws-custom-security-groups

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/test-infra repository. I understand the commands that are listed here.

@openshift-ci-robot
Copy link
Contributor

/retest-required

Remaining retests: 0 against base HEAD 8783558 and 1 for PR HEAD 94c54e0 in total

@openshift-ci-robot
Copy link
Contributor

/retest-required

Remaining retests: 0 against base HEAD bc15daa and 0 for PR HEAD 94c54e0 in total

@openshift-ci-robot
Copy link
Contributor

/hold

Revision 94c54e0 was retested 3 times: holding

@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 Oct 4, 2023
@r4f4
Copy link
Contributor

r4f4 commented Oct 4, 2023

/hold cancel

@openshift-ci openshift-ci bot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Oct 4, 2023
@openshift-ci-robot
Copy link
Contributor

/retest-required

Remaining retests: 0 against base HEAD bc15daa and 2 for PR HEAD 94c54e0 in total

@r4f4
Copy link
Contributor

r4f4 commented Oct 4, 2023

/test okd-scos-images

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Oct 4, 2023

@deads2k: 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-custom-security-groups 94c54e0 link false /test e2e-aws-custom-security-groups
ci/prow/okd-scos-e2e-aws-ovn 94c54e0 link false /test okd-scos-e2e-aws-ovn
ci/prow/okd-e2e-aws-ovn-upgrade 94c54e0 link false /test okd-e2e-aws-ovn-upgrade
ci/prow/okd-e2e-aws-ovn 94c54e0 link false /test okd-e2e-aws-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/test-infra repository. I understand the commands that are listed here.

@openshift-ci-robot
Copy link
Contributor

/retest-required

Remaining retests: 0 against base HEAD 732271d and 1 for PR HEAD 94c54e0 in total

@openshift-ci openshift-ci bot merged commit 3a738d8 into openshift:master Oct 5, 2023
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. lgtm Indicates that a PR is ready to be merged.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants