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

Fix flaky shard controller tests #3693

Merged
merged 2 commits into from
Dec 10, 2022

Conversation

yycptt
Copy link
Member

@yycptt yycptt commented Dec 7, 2022

What changed?

Why?

How did you test it?

Potential risks

Is hotfix candidate?

@yycptt yycptt requested a review from a team as a code owner December 7, 2022 03:13
@mindaugasrukas
Copy link
Contributor

Could you provide details about the flakiness and how the change fixes it?

@yycptt
Copy link
Member Author

yycptt commented Dec 7, 2022

Could you provide details about the flakiness and how the change fixes it?

I have provided details via comment in the PR. In short, acquire shard, create history engine & notify new task steps are done in the another goroutine, and the test only waits on the engine creation step before exiting. So the last step may not happen and we can't assert the mock function always will be called once.

@yiminc yiminc merged commit 912dc51 into temporalio:master Dec 10, 2022
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.

4 participants