-
Notifications
You must be signed in to change notification settings - Fork 40k
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
Fix TestServiceAlloc flakes #37487
Fix TestServiceAlloc flakes #37487
Conversation
Lgtm |
@k8s-bot unit test this, issue: #IGNORE (Waiting for status to be reported) |
@@ -203,7 +203,8 @@ func (e *Store) List(ctx api.Context, options *api.ListOptions) (runtime.Object, | |||
// ListPredicate returns a list of all the items matching m. | |||
func (e *Store) ListPredicate(ctx api.Context, p storage.SelectionPredicate, options *api.ListOptions) (runtime.Object, error) { | |||
if options == nil { | |||
options = &api.ListOptions{ResourceVersion: "0"} | |||
// By default we should serve the request from etcd. | |||
options = &api.ListOptions{ResourceVersion: ""} |
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.
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.
Does this need backporting?
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.
I think so.
@deads2k @smarterclayton - if you're fine with this, can one of you apply label? |
@@ -105,7 +105,7 @@ func (c *Repair) runOnce() error { | |||
// the service collection. The caching layer keeps per-collection RVs, | |||
// and this is proper, since in theory the collections could be hosted | |||
// in separate etcd (or even non-etcd) instances. | |||
list, err := c.registry.ListServices(ctx, nil) |
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.
With the fix in the generic store, why is this needed?
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.
We just should avoid passing nil - it seems there are just few such places in the code and we should forbid it.
@@ -203,7 +203,8 @@ func (e *Store) List(ctx api.Context, options *api.ListOptions) (runtime.Object, | |||
// ListPredicate returns a list of all the items matching m. | |||
func (e *Store) ListPredicate(ctx api.Context, p storage.SelectionPredicate, options *api.ListOptions) (runtime.Object, error) { | |||
if options == nil { | |||
options = &api.ListOptions{ResourceVersion: "0"} | |||
// By default we should serve the request from etcd. | |||
options = &api.ListOptions{ResourceVersion: ""} |
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.
Does this need backporting?
@liggitt is more familiar with this area than I am. I'll defer to him. |
Good question - maybe? But it's not that crucial, because if you are http sending a request to apiserver, the the "List handler" will always create ListOptions and for that path it's never nil. |
If one of those internal paths was the IP allocator, that seems important to backport |
I wasn't trying to say not to backport it - I'm fine with backporting. |
But first we probably need to have in in head :) |
LGTM |
I would pick it to 1.5 and 1.4 |
@liggitt - definitely for 1.5. But I'm fine with cherrypicking it to 1.4 too - I will prepare cherrypicks once this is merged. |
@k8s-bot test this |
@wojtek-t : just 1.5 milestone with lgtm(s), trying to get the submit queue to pick it up. |
Jenkins GCI GKE smoke e2e failed for commit 1760660. Full PR test history. The magic incantation to run this job again is |
Jenkins GCE e2e failed for commit 1760660. Full PR test history. The magic incantation to run this job again is |
@dims - you do NOT need to trigger tests to merge bot to pick them up. If retest will be needed, merge bot will do it itself. What you did actually pushed a bunch of PRs OUT of queue, because after your trigger a bunch of them stuck in "error in queue" or sth like that state. So please do NOT do it again. |
@k8s-bot test this, issue: #IGNORE (build started) |
@k8s-bot e2e test this, issue: #IGNORE (error in queue) |
Jenkins GCE etcd3 e2e failed for commit 1760660. Full PR test history. The magic incantation to run this job again is |
@wojtek-t ack. will not repeat that. apologies. |
@k8s-bot test this [submit-queue is verifying that this PR is safe to merge] |
Automatic merge from submit-queue |
Commit found in the "release-1.5" branch appears to be this PR. Removing the "cherrypick-candidate" label. If this is an error find help to get your PR picked. |
…87-upstream-release-1.4 Fix TestServiceAlloc flakes
Fix #37040
This change is