-
Notifications
You must be signed in to change notification settings - Fork 55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor e2e for speed and clarity, add helpers #244
Conversation
Signed-off-by: Joe Lanford <[email protected]>
var conditions []metav1.Condition | ||
switch v := obj.(type) { | ||
case *catalogd.Catalog: | ||
conditions = v.Status.Conditions | ||
case *operatorv1alpha1.Operator: | ||
conditions = v.Status.Conditions | ||
default: | ||
return StopTrying(fmt.Sprintf("cannot get conditions for unknown object type %T", obj)) | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
An earlier iteration of this section of code called a separate function I had written that generically:
- converted to unstructured
- extracted "status.conditions" into
[]interface{}
- marshaled that to JSON
- unmarshaled the JSON into []metav1.Condition
That code generically handled anything that had status.conditions
with type []metav1.Condition
, but it seemed a bit hacky/overkill. I'm happy to go back to that, or entertain other options as well.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
super teeny non-blocking nit, otherwise looks good to me
/hold |
PR needs rebase. 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. |
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.19.0 to 0.23.0. - [Commits](golang/net@v0.19.0...v0.23.0) --- updated-dependencies: - dependency-name: golang.org/x/net dependency-type: indirect ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Description
This PR improves the install e2e test by:
Eventually
blocks now fail early if unexpected failures occur, which makes e2e runs fail faster rather than being required to wait the fullEventually
timeout.This should mostly eliminate the flakes related to catalog processing mentioned in #215.
Reviewer Checklist