-
Notifications
You must be signed in to change notification settings - Fork 551
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
Improve catalog source e2e #2738
Improve catalog source e2e #2738
Conversation
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: perdasilva The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
return err | ||
} | ||
|
||
source.Annotations["testKey"] = "newValue" |
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.
nit: nil check source.Annotations?
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.
e.g. source.Annotations = make(map[string]string)
return err | ||
} | ||
|
||
source.Annotations["testKey"] = genName("newValue") |
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.
nit: nil check source.Annotations?
test/e2e/catalog_e2e_test.go
Outdated
return err | ||
} | ||
catsrc.Spec.UpdateStrategy.RegistryPoll.RawInterval = correctInterval | ||
_, err = crc.OperatorsV1alpha1().CatalogSources(catsrc.GetNamespace()).Update(context.TODO(), catsrc, metav1.UpdateOptions{}) |
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.
supernit as this was an issue before this PR: context.Background()
244cafc
to
1eea043
Compare
test/e2e/catalog_e2e_test.go
Outdated
if source == nil { | ||
return errors.New("could not get catalog source") | ||
} |
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.
What I had in mind was source.Annotations = make(map[string]string)
but I won't hold up this PR as it fixes a real deflating style of e2e flake.
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.
Gotcha. I'm an idiot. I've fixed it ^^ thanks dude!
Signed-off-by: Per Goncalves da Silva <[email protected]>
1eea043
to
bbdf179
Compare
/lgtm |
Signed-off-by: Per Goncalves da Silva [email protected]
Description of the change:
This PR wraps
Update
calls in anEventually
block (together with the precedingGet
call) to make it more resilient to conflicts.Motivation for the change:
There was a downstream CI failure: [link]
Reviewer Checklist
/doc
[FLAKE]
are truly flaky[FLAKE]
tag are no longer flaky