Skip to content

thread: Assert thread quiescence between tests#18495

Merged
davinci26 merged 5 commits intoenvoyproxy:mainfrom
jmarantz:assert-thread-quiescence
Oct 8, 2021
Merged

thread: Assert thread quiescence between tests#18495
davinci26 merged 5 commits intoenvoyproxy:mainfrom
jmarantz:assert-thread-quiescence

Conversation

@jmarantz
Copy link
Copy Markdown
Contributor

@jmarantz jmarantz commented Oct 7, 2021

Commit Message: Adds assertions that any 'main threads' have completely quiesced between test methods. I am not certain this can be an issue given the rest of Envoy test infrastructure (e.g. memory leaks from unjoined threads), but testing this is essentially free, and it's hard to be certain.

This doesn't happen normally when I test on my machine, but maybe such a delayed closing out of a MainThread might be responsible for rare flakes.
Additional Description:
Risk Level: low (test changes only)
Testing: //test/...
Docs Changes: n/a
Release Notes: n/a
Platform Specific Features: n/a

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

@davinci26 davinci26 left a comment

Choose a reason for hiding this comment

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

thanks, one small comment regarding the function name.

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

jmarantz commented Oct 8, 2021

/retest

@repokitteh-read-only
Copy link
Copy Markdown

Retrying Azure Pipelines:
Retried failed jobs in: envoy-presubmit

🐱

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

see: more, trace.

Copy link
Copy Markdown
Member

@davinci26 davinci26 left a comment

Choose a reason for hiding this comment

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

LGTM

@davinci26 davinci26 merged commit f159b4e into envoyproxy:main Oct 8, 2021
@jmarantz jmarantz deleted the assert-thread-quiescence branch October 8, 2021 21:00
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.

2 participants