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 test StreamingDataflowWorkerTest #28173

Merged
merged 2 commits into from
Aug 28, 2023

Conversation

olalamichelle
Copy link
Contributor

Use MockClock instead of real system clock to fix the test flakiness.

@github-actions
Copy link
Contributor

Assigning reviewers. If you would like to opt out of this review, comment assign to next reviewer:

R: @tvalentyn added as fallback since no labels match configuration

Available commands:

  • stop reviewer notifications - opt out of the automated review tooling
  • remind me after tests pass - tag the comment author after tests pass
  • waiting on author - shift the attention set back to the author (any comment or push by the author will return the attention set to the reviewers)

The PR bot will only process comments in the main thread (not review comments).

@tvalentyn tvalentyn added the java label Aug 28, 2023
@tvalentyn tvalentyn merged commit 505f942 into apache:master Aug 28, 2023
@tvalentyn
Copy link
Contributor

Thank you, @olalamichelle !

lostluck pushed a commit to lostluck/beam that referenced this pull request Aug 30, 2023
@Abacn
Copy link
Contributor

Abacn commented Sep 9, 2023

Interestingly, after merging this test worked well for a while but became highly flaky since Sept 8th: #28383

import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.verify;
import static org.mockito.Mockito.when;
import static org.mockito.Mockito.*;
Copy link
Contributor

Choose a reason for hiding this comment

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

btw beam does not use asterisk import, not sure why this wasn't caught by checkStyle

Abacn added a commit that referenced this pull request Sep 13, 2023
Abacn added a commit that referenced this pull request Sep 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants