Skip to content

Conversation

@akashorabek
Copy link
Collaborator

Fixes: #33909
Successful run example: https://github.com/akashorabek/beam/actions/runs/13397067650


Thank you for your contribution! Follow this checklist to help us incorporate your contribution quickly and easily:

  • Mention the appropriate issue in your description (for example: addresses #123), if applicable. This will automatically add a link to the pull request in the issue. If you would like the issue to automatically close on merging the pull request, comment fixes #<ISSUE NUMBER> instead.
  • Update CHANGES.md with noteworthy changes.
  • If this contribution is large, please file an Apache Individual Contributor License Agreement.

See the Contributor Guide for more tips on how to make review process smoother.

To check the build health, please visit https://github.com/apache/beam/blob/master/.test-infra/BUILD_STATUS.md

GitHub Actions Tests Status (on master branch)

Build python source distribution and wheels
Python tests
Java tests
Go tests

See CI.md for more information about GitHub Actions CI or the workflows README to see a list of phrases to trigger workflows.

@akashorabek akashorabek marked this pull request as ready for review February 19, 2025 12:11
@akashorabek
Copy link
Collaborator Author

R: @ahmedabu98

@github-actions
Copy link
Contributor

Stopping reviewer notifications for this pull request: review requested by someone other than the bot, ceding control. If you'd like to restart, comment assign set of reviewers

@Mock private Counter mockCounter;
private final Sleeper mockSleeper =
millis -> {
verify(mockCounter).inc(millis);
Copy link
Contributor

@Abacn Abacn Feb 19, 2025

Choose a reason for hiding this comment

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

would you mind explaining a little bit how this fixed the flaky test

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

verify expected exactly one call, but sometimes the code retries and calls inc(millis) multiple times causing the test to fail.

Copy link
Contributor

@Abacn Abacn left a comment

Choose a reason for hiding this comment

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

Thank you! These are all long-standing flaky tests

Copy link
Contributor

@ahmedabu98 ahmedabu98 left a comment

Choose a reason for hiding this comment

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

thanks @akashorabek, LGTM except for one suggestion

@github-actions github-actions bot removed the build label Feb 20, 2025
@akashorabek akashorabek marked this pull request as draft February 20, 2025 23:13
@akashorabek akashorabek marked this pull request as ready for review February 21, 2025 10:59
@Abacn Abacn merged commit ea40d9e into apache:master Feb 24, 2025
16 checks passed
VardhanThigle pushed a commit to VardhanThigle/beam that referenced this pull request Mar 21, 2025
* Fix Java GCP-IO Direct job

* Created constants for fixed numbers

* Fix comments and constants

* Changed Log type

* add more flaky test fixes

* changes
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.

The PreCommit Java GCP IO Direct job is flaky

3 participants