Closed deads2k closed 6 years ago
Two issues: 1) Issue is that fakeRuntime.Start() is returning prior to the listener being set up, and the remote runtime test is assuming that everything is ready. Whether this happens correctly or not depends upon factors such as speed of and load on the system under test among others. Solution: fakeRuntime.Start() must not return until it has successfully created the listener. remote.createAndStartFakeRemoteRuntime() must call fakeremote.Start() normally, and fakeRemote.Start() must call RemoteRuntime.server.Serve() as a goroutine.
2) Various places in remote_runtime_test.go must require.noError() rather than assert.noError().
Preparing the PR now. Tested by introducing a 1 second sleep in util.createListener, test failed every time. Fix #1, problem did not reproduce in about 10 tries. Also running a long loop, and adding load to the system.
This flakes seems to occur 1 per day or so https://snowstorm-origin-ci.svc.ci.openshift.org
https://openshift-gce-devel.appspot.com/build/origin-ci-test/pr-logs/pull/17749/test_pull_request_origin_unit/6882/
Seen post 1.9 rebase.
@sjenning are flakes still automatic p1s?