Conversation
Summary of ChangesHello @tarun-google, 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 enhances the Apache Beam Python SDK by introducing new 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. Changelog
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. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
|
Run Python_Transforms PreCommit 3.10 |
|
Assigning reviewers: R: @claudevdm for label python. 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). |
|
/gemini review |
There was a problem hiding this comment.
Code Review
This pull request adds support for PAUSE and PAUSED job states in the Dataflow runner. The changes correctly update the state polling logic, state mappings, and the PipelineState enum. New tests are included to cover these additions. The changes are well-implemented, but I've identified an opportunity to refactor some duplicated test code to improve maintainability.
claudevdm
left a comment
There was a problem hiding this comment.
Were these changes auto-generated by
?| _VERSION = 'v1b3' | ||
| _CLIENT_ID = '1042881264118.apps.googleusercontent.com' | ||
| _CLIENT_SECRET = 'x_Tw5K8nnjoRAqULM9PFAC2b' | ||
| _CLIENT_ID = 'CLIENT_ID' |
There was a problem hiding this comment.
is this agreeable? script did this
There was a problem hiding this comment.
I do not think storing the secret and id here is required. when we run from local it gets gcloud creds. If you think other users might need it we can manually fix it.
|
@Abacn can you please also take a look? I'm not familiar with these autogenerated files but I assume we just trust what is generated? |
Abacn
left a comment
There was a problem hiding this comment.
Yeah, Beam Python SDK vendors a Dataflow v1beta3 client generated by (long-deprecated) Google apitools. The tooling may have some weird behaviors.
sdks/python/apache_beam/runners/dataflow/internal/clients/dataflow/dataflow_v1b3_client.py
Outdated
Show resolved
Hide resolved
|
Run Python PreCommit 3.10 |
Add Pause and Paused states.
Note: we have to update the documentation once feature is released completely https://docs.cloud.google.com/dataflow/docs/reference/rest/v1b3/projects.jobs#Job.JobState
GitHub Actions Tests Status (on master branch)
See CI.md for more information about GitHub Actions CI or the workflows README to see a list of phrases to trigger workflows.