Skip to content

Log events stream when TestEventStreaming fails. - #18613

Merged
thaJeztah merged 1 commit into
moby:masterfrom
calavera:flack_streaming_events_test
Dec 11, 2015
Merged

thaJeztah merged 1 commit into
moby:masterfrom
calavera:flack_streaming_events_test

Conversation

@calavera

Copy link
Copy Markdown
Contributor

Let's see if we can catch there two errors that cripple the windows builds every now and then:

----------------------------------------------------------------------
FAIL: docker_cli_events_test.go:216: DockerSuite.TestEventsImageImport

docker_cli_events_test.go:253:
    c.Fatal("failed to observe image import in timely fashion")
... Error: failed to observe image import in timely fashion
----------------------------------------------------------------------
FAIL: docker_cli_build_test.go:6423: DockerSuite.TestBuildTagEvent

docker_cli_build_test.go:6453:
    c.Fatal("The 'tag' event not heard from the server")
... Error: The 'tag' event not heard from the server

Signed-off-by: David Calavera [email protected]

Let the tag event some more time to be emitted.

Signed-off-by: David Calavera <[email protected]>
@calavera

Copy link
Copy Markdown
Contributor Author

Can we get this merged? It will help us diagnose those failures better in the future if the happen again.

@thaJeztah

Copy link
Copy Markdown
Member

LGTM

@mrunalp

mrunalp commented Dec 11, 2015

Copy link
Copy Markdown
Contributor

+1

@anusha-ragunathan

Copy link
Copy Markdown
Contributor

LGTM

thaJeztah added a commit that referenced this pull request Dec 11, 2015
Log events stream when TestEventStreaming fails.
@thaJeztah
thaJeztah merged commit 8d36f09 into moby:master Dec 11, 2015
@calavera
calavera deleted the flack_streaming_events_test branch December 11, 2015 23:41
@anusha-ragunathan

Copy link
Copy Markdown
Contributor

https://jenkins.dockerproject.org/job/Windows-PRs/18621/console fails in TestEventsImageImport and TestEventsStreaming with additional errors. Looking at TestEventsStreaming logs, the logged containerID is from the previous resize test, TestEventsResize. We should add asserts for container create as well as log the "since" timestamp in TestEventsStreaming.

FAIL: docker_cli_events_test.go:422: DockerSuite.TestEventsStreaming

docker_cli_events_test.go:470:
c.Fatal("failed to observe container create in timely fashion", "\n", buffer.String())
... Error: failed to observe container create in timely fashion
2015-12-13T16:03:03.204376500Z 3f402b43081d6075dc06c549e3cb3211ca49544bf7526046d972acaa72ebe06d: (from busybox) resize
2015-12-13T16:03:03.266769900Z 3f402b43081d6075dc06c549e3cb3211ca49544bf7526046d972acaa72ebe06d: (from busybox) kill
2015-12-13T16:03:03.335462100Z 3f402b43081d6075dc06c549e3cb3211ca49544bf7526046d972acaa72ebe06d: (from busybox) die
2015-12-13T16:03:03.460009400Z 3f402b43081d6075dc06c549e3cb3211ca49544bf7526046d972acaa72ebe06d: (from busybox) stop
2015-12-13T16:03:03.715760000Z 3f402b43081d6075dc06c549e3cb3211ca49544bf7526046d972acaa72ebe06d: (from busybox) destroy

@thaJeztah

Copy link
Copy Markdown
Member

Just had this failing again in https://jenkins.dockerproject.org/job/Windows-PRs/19042/console

I don't see additional output though

PASS: docker_cli_build_test.go:4999: DockerSuite.TestBuildSymlinkBreakout   0.837s

----------------------------------------------------------------------
FAIL: docker_cli_build_test.go:6423: DockerSuite.TestBuildTagEvent

docker_cli_build_test.go:6453:
    c.Fatal("The 'tag' event not heard from the server")
... Error: The 'tag' event not heard from the server


----------------------------------------------------------------------
PASS: docker_cli_build_test.go:2121: DockerSuite.TestBuildUser  2.118s

@thaJeztah

Copy link
Copy Markdown
Member

Oh here's output of the other test:

PASS: docker_cli_events_test.go:544: DockerSuite.TestEventsResize   0.966s

----------------------------------------------------------------------
FAIL: docker_cli_events_test.go:422: DockerSuite.TestEventsStreaming

docker_cli_events_test.go:470:
    c.Fatal("failed to observe container create in timely fashion", "\n", buffer.String())
... Error: failed to observe container create in timely fashion
2015-12-21T11:28:17.072849000Z 37a687af8d9fb043d40732bde38eee120c9733ea978e3a26fcf9ad7d1ee8ab7f: (from busybox) stop
2015-12-21T11:28:17.290061500Z 37a687af8d9fb043d40732bde38eee120c9733ea978e3a26fcf9ad7d1ee8ab7f: (from busybox) destroy

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants