Skip to content

Wait for informers to start to fix test flakes. - #2848

Merged
knative-prow-robot merged 1 commit into
knative:masterfrom
markusthoemmes:fix-flakes2
Jan 4, 2019
Merged

knative-prow-robot merged 1 commit into
knative:masterfrom
markusthoemmes:fix-flakes2

Conversation

@markusthoemmes

Copy link
Copy Markdown
Contributor

Fixes #2443
Fixes #2462

Two very annoying unit test flakes, hopefully fixed.

Proposed Changes

  • Wait for the informers to actually start and sync before creating entities.

Release Note

NONE

@knative-prow-robot knative-prow-robot added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label Jan 4, 2019

@knative-prow-robot knative-prow-robot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@markusthoemmes: 0 warnings.

Details

In response to this:

Fixes #2443
Fixes #2462

Two very annoying unit test flakes, hopefully fixed.

Proposed Changes

  • Wait for the informers to actually start and sync before creating entities.

Release Note

NONE

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.

@markusthoemmes

Copy link
Copy Markdown
Contributor Author

Let's hit it a bit: Unit tests passed once.

/test pull-knative-serving-unit-tests

@dprotaso

dprotaso commented Jan 4, 2019

Copy link
Copy Markdown
Member

/lgtm

@knative-prow-robot knative-prow-robot added the lgtm Indicates that a PR is ready to be merged. label Jan 4, 2019
@markusthoemmes

Copy link
Copy Markdown
Contributor Author

Passed twice

/test pull-knative-serving-unit-tests

@markusthoemmes

Copy link
Copy Markdown
Contributor Author

Three times

/test pull-knative-serving-unit-tests

@markusthoemmes

Copy link
Copy Markdown
Contributor Author

Four times:

/test pull-knative-serving-unit-tests

@markusthoemmes

Copy link
Copy Markdown
Contributor Author

Five times:

/test pull-knative-serving-unit-tests

@markusthoemmes

Copy link
Copy Markdown
Contributor Author

Six times:

/test pull-knative-serving-unit-tests

@markusthoemmes

Copy link
Copy Markdown
Contributor Author

Seven times:

/test pull-knative-serving-unit-tests

@adrcunha

adrcunha commented Jan 4, 2019

Copy link
Copy Markdown
Contributor

Silly question: do they fail locally, so you could run them N times in a row on your machine, instead of having to manually request Prow to retest them?

@markusthoemmes

markusthoemmes commented Jan 4, 2019 •

Copy link
Copy Markdown
Contributor Author

@adrcunha I did extensively test them locally (ran them thousands of times). Prow sometimes has proven to surface different races due to a different CPU topology etc. so I usually retrigger them a bit there for extra safety.

And yes, they used to fail locally (given high enough retry count)

@markusthoemmes

Copy link
Copy Markdown
Contributor Author

Aiming for ten :)

Eight times successful:

/test pull-knative-serving-unit-tests

@markusthoemmes

Copy link
Copy Markdown
Contributor Author

Nine times!

/test pull-knative-serving-unit-tests

@markusthoemmes

Copy link
Copy Markdown
Contributor Author

Passed 10 times, ready to go from my PoV.

https://gubernator.knative.dev/builds/knative-prow/pr-logs/pull/knative_serving/2848/pull-knative-serving-unit-tests/

/assign @mattmoor

@tcnghia

tcnghia commented Jan 4, 2019

Copy link
Copy Markdown
Contributor

/lgtm
/approve

@knative-prow-robot

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: dprotaso, markusthoemmes, tcnghia

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

@knative-prow-robot knative-prow-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jan 4, 2019
@knative-prow-robot
knative-prow-robot merged commit b685c0b into knative:master Jan 4, 2019
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. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

TestNewRouteCallsSyncHandler is flaky Route Global Resync test is still flaky

6 participants