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

test: cleanup grpc and http2 tests to minimize flakes #938

Merged
merged 1 commit into from
Dec 13, 2018

Conversation

kjin
Copy link
Contributor

@kjin kjin commented Dec 12, 2018

grpc and http2 tests fail occasionally on nightly builds because the acceptable range for span time ranges isn't ideal for the CI environment. I've moved them off the old common.assertSpanDuration to the newer utils.assertSpanDuration which allows us to use more reasonable time ranges. There is also a bit of minor cleanup involved as some common.* values are no longer used anywhere.

Note: The test-trace-http2.ts diff seems large because of an indentation change, but the tests themselves are the same.

@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Dec 12, 2018
@kjin kjin force-pushed the fix-system-tests-2 branch 2 times, most recently from 6d83297 to 581b9e6 Compare December 12, 2018 21:34
@kjin kjin changed the title [wip] test: cleanup grpc and http2 tests to minimize flakes test: cleanup grpc and http2 tests to minimize flakes Dec 12, 2018
@kjin kjin requested a review from a team December 12, 2018 22:05
Copy link
Contributor

@ofrobots ofrobots left a comment

Choose a reason for hiding this comment

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

LGTM w/ question.

assert.ok(
spanDuration >= bounds[0] && spanDuration <= bounds[1],
spanDuration >= lowerBound - ASSERT_SPAN_TIME_TOLERANCE_MS &&
spanDuration <= upperBound + ASSERT_SPAN_TIME_TOLERANCE_MS,

This comment was marked as spam.

This comment was marked as spam.

@kjin kjin merged commit 32dcb55 into googleapis:master Dec 13, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants