Add PreCommit Java Dataflow workflow (#38094)#38124
Conversation
Split Dataflow worker tests into a separate PreCommit job to reduce Java PreCommit runtime. The StreamingDataflowWorkerTest suite takes >1h, causing the main Java PreCommit to exceed typical CI timeouts. New workflow: beam_PreCommit_Java_Dataflow - Runs only on changes to runners/google-cloud-dataflow-java/worker/** - Triggers on push, PR, schedule (every 6h), workflow_dispatch, and issue comment 'Run Java Dataflow PreCommit' - Runs :runners:google-cloud-dataflow-java:worker:test - Timeout: 240 minutes Fixes #38094
Summary of ChangesHello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request addresses long-running test suites in the Java PreCommit process by offloading Dataflow worker tests into a separate, standalone workflow. This change aims to prevent timeouts in the main pipeline by isolating these time-intensive tests, ensuring more efficient CI execution. Highlights
🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console. Ignored Files
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here. Footnotes
|
Add !runners/google-cloud-dataflow-java/worker/** to both push and pull_request_target path filters in beam_PreCommit_Java.yml. Without this, the main Java PreCommit still runs the full javaPreCommit (including slow StreamingDataflowWorkerTest) on worker changes, which defeats the purpose of splitting to a separate PreCommit job.
|
Assigning reviewers: R: @Abacn for label build. Note: If you would like to opt out of this review, comment Available commands:
The PR bot will only process comments in the main thread (not review comments). |
What
Split Dataflow worker tests into a standalone PreCommit workflow to reduce Java PreCommit runtime.
Why
Issue #38094: suite takes >1h, causing the main Java PreCommit to time out. All listed tests pass — they're just slow (~5 min each):
Changes
Testing
Closes #38094