Skip to content
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

Wait for E2E Job Pod log stream to be over before finishing E2E tests #3377

Merged
merged 1 commit into from
Jul 1, 2020

Conversation

sebgl
Copy link
Contributor

@sebgl sebgl commented Jul 1, 2020

I think there are cases (eg. OCP) where streaming the E2E Pod logs is
slower than others. In such case, we may end up in a situation where, at
the end of the E2E tests, we haven't retrieved the full go test log, but still
end the test runner.
Which then makes the job fail in CI since test logs cannot be parsed and
transformed to XML.

This commit solves it by waiting for the streamStatus chan to report
something (either err or nil), before returning from the
monitorTestJob function.

Relates #3130.

I think there are cases (eg. OCP) where streaming the E2E Pod logs is
slower than others. In such case, we may end up in a situation where, at
the end of the E2E tests, we haven't retrieved the full go test log.
Which then makes the job fail in CI since test logs cannot be parsed and
transformed to XML.

This commit solves it by waiting for the streamStatus chan to report
something (either err or nil), before returning from the
`monitorTestJob` function.
@sebgl sebgl added the >test Related to unit/integration/e2e tests label Jul 1, 2020
@sebgl sebgl merged commit b74e309 into elastic:master Jul 1, 2020
david-kow pushed a commit to david-kow/cloud-on-k8s that referenced this pull request Jul 17, 2020
…elastic#3377)

I think there are cases (eg. OCP) where streaming the E2E Pod logs is
slower than others. In such case, we may end up in a situation where, at
the end of the E2E tests, we haven't retrieved the full go test log.
Which then makes the job fail in CI since test logs cannot be parsed and
transformed to XML.

This commit solves it by waiting for the streamStatus chan to report
something (either err or nil), before returning from the
`monitorTestJob` function.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
>test Related to unit/integration/e2e tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants