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

Automatically switch to upload_graph when the graph is large #28621

Merged
merged 13 commits into from
Oct 27, 2023

Conversation

liferoad
Copy link
Collaborator

@liferoad liferoad commented Sep 22, 2023

Now the job graph is larger than 10 MB, it will be automatically uploaded by enabling upload_graph for Java SDK.


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.

@liferoad
Copy link
Collaborator Author

I plan to manually test this later (might add one integration test). So no need to merge this now. Thanks.

@liferoad liferoad marked this pull request as ready for review September 30, 2023 16:07
@liferoad
Copy link
Collaborator Author

Tested these changes internally. The test passed.

@liferoad
Copy link
Collaborator Author

R: @Abacn

@github-actions
Copy link
Contributor

Stopping reviewer notifications for this pull request: review requested by someone other than the bot, ceding control

@kennknowles
Copy link
Member

Let us get a test externally. It should be very easy - just a single small test method with a big graph.

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.

For the integration test, /runners/google-cloud-dataflow-java/src/test could be a choice to settle these tests. Although currently there is only unit tests, this path is added to the integration test class path:

googleCloudPlatformIntegrationTest project(project.path)

@liferoad
Copy link
Collaborator Author

Let us get a test externally. It should be very easy - just a single small test method with a big graph.

Added one unit test.

@liferoad liferoad requested review from Abacn and kennknowles October 20, 2023 20:39
Copy link
Member

@kennknowles kennknowles left a comment

Choose a reason for hiding this comment

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

LGTM except it isn't really a breaking change.

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.

Thanks! the code changes LGTM. Had a comment about CHANGES.md item

CHANGES.md Outdated Show resolved Hide resolved
@liferoad liferoad changed the title Automatically Switch to upload_graph when the graph is large Automatically switch to upload_graph when the graph is large Oct 26, 2023
@liferoad liferoad requested a review from Abacn October 26, 2023 18:35
@liferoad liferoad requested a review from kennknowles October 26, 2023 18:49
@kennknowles
Copy link
Member

Once it is green again (for the record) will merge. Or any committer can merge.

@liferoad
Copy link
Collaborator Author

Run Java PreCommit

1 similar comment
@liferoad
Copy link
Collaborator Author

Run Java PreCommit

@liferoad
Copy link
Collaborator Author

Note "org.apache.beam.runners.dataflow.worker.StreamingDataflowWorkerTest.testActiveThreadMetric[*]" seems flaky. I tried several times to get all greens.

@Abacn
Copy link
Contributor

Abacn commented Oct 27, 2023

Note "org.apache.beam.runners.dataflow.worker.StreamingDataflowWorkerTest.testActiveThreadMetric[*]" seems flaky. I tried several times to get all greens.

Yes this is unrelated. Tracking bug: #28957 caused by #28513 there is a pending PR include a fix: #29041 (comment)

@Abacn Abacn merged commit 3b89039 into apache:master Oct 27, 2023
19 checks passed
@kennknowles
Copy link
Member

I think it is OK to disable the test or even better to roll back the change so we do not have untested stuff in the codebase.

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