Skip to content

test: Ensure only one thread advances time, and enable simulated-time for hds_integration_test.#6541

Merged
lizan merged 6 commits intoenvoyproxy:masterfrom
jmarantz:only-one-thread
Apr 13, 2019
Merged

test: Ensure only one thread advances time, and enable simulated-time for hds_integration_test.#6541
lizan merged 6 commits intoenvoyproxy:masterfrom
jmarantz:only-one-thread

Conversation

@jmarantz
Copy link
Contributor

Description: It is hard to reason about tests that push time forward from more than one thread. This was happening in contention-tests. This adds some asserts to ensure that we don't do this in future tests, and fixes those tests that were doing it.
Risk Level: low
Testing: //test/..., and hds_integration_test witih tsan and --runs_per_test=1000
Docs Changes: n/a
Release Notes: n/a
Fixes: #6239

…ds_integration_test.

Signed-off-by: Joshua Marantz <jmarantz@google.com>
Signed-off-by: Joshua Marantz <jmarantz@google.com>
@jmarantz
Copy link
Contributor Author

It's possible this may fix #5183 as well.

…s, and add more info to an address-conflict issue in an unrelated flake.

Signed-off-by: Joshua Marantz <jmarantz@google.com>
…d method.

Signed-off-by: Joshua Marantz <jmarantz@google.com>
@jmarantz
Copy link
Contributor Author

/retest

@repokitteh-read-only
Copy link

🔨 rebuilding ci/circleci: ipv6_tests (failed build)

🐱

Caused by: a #6541 (comment) was created by @jmarantz.

see: more, trace.

…y_for_test.*.

Signed-off-by: Joshua Marantz <jmarantz@google.com>
Signed-off-by: Joshua Marantz <jmarantz@google.com>
@lizan lizan merged commit a5a1a99 into envoyproxy:master Apr 13, 2019
@jmarantz jmarantz deleted the only-one-thread branch April 13, 2019 13:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

time: SimulatedTimeSystem makes hds_integration_test.cc flaky

2 participants