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 Java GCP-IO Direct job #34019

Draft
wants to merge 8 commits into
base: master
Choose a base branch
from

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

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

@@ -50,7 +49,7 @@ public class RampupThrottlingFnTest {
@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.

@@ -131,7 +131,15 @@ public static Iterable<Object[]> data() {
private static final int ORIGINAL_N = 60;
// for dynamic destination test
private static final int NUM_DESTINATIONS = 3;
private static final int TOTAL_NUM_STREAMS = 9;
Copy link
Contributor

Choose a reason for hiding this comment

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

R: @ahmedabu98 who took care of SchemaUpdate tests

Copy link
Contributor

Choose a reason for hiding this comment

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

@akashorabek can we set TOTAL_NUM_STREAMS=6 and SCHEMA_UPDATE_TRIGGER=2? I worry we might be missing some unknown edge cases by restricting it too much

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

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

@@ -131,7 +131,15 @@ public static Iterable<Object[]> data() {
private static final int ORIGINAL_N = 60;
// for dynamic destination test
private static final int NUM_DESTINATIONS = 3;
private static final int TOTAL_NUM_STREAMS = 9;
Copy link
Contributor

Choose a reason for hiding this comment

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

@akashorabek can we set TOTAL_NUM_STREAMS=6 and SCHEMA_UPDATE_TRIGGER=2? I worry we might be missing some unknown edge cases by restricting it too much

@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
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