Refactor waiting loop to use resourceVersion#1333
Refactor waiting loop to use resourceVersion#1333knative-prow-robot merged 5 commits intoknative:mainfrom
Conversation
knative-prow-robot
left a comment
There was a problem hiding this comment.
@dsimansk: 4 warnings.
Details
In response to this:
Description
@rhuss per our conversation opening the PR with refactor of waiting loop. It was reverted before
0.23release due to unstable tests probably cause by the changes.
#1321Changes
- Refactor waiting loop to use resourceVersion
Reference
Fixes #1287
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.
|
|
||
| // Wait until the expected EventDone is satisfied | ||
| func (w *waitForEvent) Wait(ctx context.Context, watcher watch.Interface, name string, options Options, msgCallback MessageCallback) (error, time.Duration) { | ||
| func (w *waitForEvent) Wait(ctx context.Context, name string, initialVersion string, options Options, msgCallback MessageCallback) (error, time.Duration) { |
There was a problem hiding this comment.
Golint arg-order: error should be the last type when returning multiple items.
| // msgCallback gets called for every event with an 'Ready' condition == UNKNOWN with the event's message. | ||
| func (w *waitForReadyConfig) Wait(ctx context.Context, watcher watch.Interface, name string, options Options, msgCallback MessageCallback) (error, time.Duration) { | ||
|
|
||
| func (w *waitForReadyConfig) Wait(ctx context.Context, name string, initialVersion string, options Options, msgCallback MessageCallback) (error, time.Duration) { |
There was a problem hiding this comment.
Golint arg-order: error should be the last type when returning multiple items.
| } | ||
|
|
||
| func TestWaitTimeout(t *testing.T) { | ||
| fakeWatchApi := NewFakeWatch([]watch.Event{}) |
There was a problem hiding this comment.
Golint naming: var fakeWatchApi should be fakeWatchAPI. More info.
|
|
||
| func TestAddWaitForReadyWithChannelClose(t *testing.T) { | ||
| for i, tc := range prepareTestCases("test-service") { | ||
| fakeWatchApi := NewFakeWatch(tc.events) |
There was a problem hiding this comment.
Golint naming: var fakeWatchApi should be fakeWatchAPI. More info.
Codecov Report
@@ Coverage Diff @@
## main #1333 +/- ##
==========================================
+ Coverage 74.09% 74.37% +0.28%
==========================================
Files 160 160
Lines 8202 8215 +13
==========================================
+ Hits 6077 6110 +33
+ Misses 1420 1402 -18
+ Partials 705 703 -2
Continue to review full report at Codecov.
|
|
/test all |
|
/retest |
|
/test pull-knative-client-integration-tests |
2 similar comments
|
/test pull-knative-client-integration-tests |
|
/test pull-knative-client-integration-tests |
maximilien
left a comment
There was a problem hiding this comment.
Ping me when you are ready for a second pair of eyes review on this. Best.
|
/test pull-knative-client-integration-tests |
|
/retest |
|
/assign @rhuss |
|
/test all |
|
/retest |
acc4baa to
8c57394
Compare
|
@dsimansk any idea how we should proceed with this PR ? Do you remember the original error that we have observed ? Doesn't look like that it occurs very often ... |
|
We decided in the WG call that we want to merge this or after the release, and then have 6 week time to detect and fix any potential issues that only occurred once in the past (not sure anymore whether this was a flake) |
8c57394 to
375fc85
Compare
|
/test all |
7f3804f to
7aa1aee
Compare
|
The following is the coverage report on the affected files.
|
rhuss
left a comment
There was a problem hiding this comment.
Thanks !
Let's get the merged back in and watch the nightly builds
/lgtm
/approve
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: dsimansk, rhuss The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Description
@rhuss per our conversation opening the PR with refactor of waiting loop. It was reverted before
0.23release due to unstable tests probably cause by the changes.#1321
Changes
Reference
Fixes #1287