You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@beam.apache.org by "shunping (via GitHub)" <gi...@apache.org> on 2026/05/11 01:17:54 UTC

[PR] Fix PreCommit Java PVR Prism workflow [beam]

shunping opened a new pull request, #38431:
URL: https://github.com/apache/beam/pull/38431

   `PAssert.that().containsInAnyOrder()` internally introduces a `GroupByKey`. Because portable runners like Prism do not yet support metadata propagation across `GroupByKey`, enabling metadata encoding causes an EOFException coder mismatch. 
   
   Removing `ValidatesRunner` aligns this test with the other GBK-dependent tests in MetadataPropagationTest.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@beam.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Fix PreCommit Java PVR Prism workflow [beam]

Posted by "gemini-code-assist[bot] (via GitHub)" <gi...@apache.org>.
gemini-code-assist[bot] commented on PR #38431:
URL: https://github.com/apache/beam/pull/38431#issuecomment-4416903641

   ## Summary of Changes
   
   Hello, I'm Gemini Code Assist[^1]! 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 resolves a compatibility issue in the MetadataPropagationTest suite. Because PAssert internally triggers a GroupByKey operation, it causes coder mismatch errors on portable runners that do not yet support metadata propagation across such operations. Removing the ValidatesRunner category ensures that the test suite remains stable during PreCommit workflows.
   
   ### Highlights
   
   * **Test Category Update**: Removed the ValidatesRunner category from the testMetadataPropagationParameter test to prevent failures on portable runners like Prism.
   * **Compatibility Alignment**: Aligned the test with other GBK-dependent tests in the suite to ensure consistent behavior across different runner environments.
   
   <details>
   <summary><b>New Features</b></summary>
   
   🧠 You can now enable **Memory** (public preview) 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](https://codeassist.google/code-review/login) to enable Memory in your admin console.**
   </details>
   
   <details>
   <summary><b>Using Gemini Code Assist</b></summary>
   <br>
   
   The full guide for Gemini Code Assist can be found on our [documentation page](https://developers.google.com/gemini-code-assist/docs/review-github-code), here are some quick tips.
   
   <b>Invoking Gemini</b>
   
   You can request assistance from Gemini at any point by creating a comment using either `/gemini <command>` or `@gemini-code-assist <command>`. Below is a summary of the supported commands on the current page.
   
   Feature | Command | Description
   --- | --- | ---
   Code Review | `/gemini review` | Performs a code review for the current pull request in its current state.
   Pull Request Summary | `/gemini summary` | Provides a summary of the current pull request in its current state.
   Comment | @gemini-code-assist | Responds in comments when explicitly tagged, both in pull request comments and review comments.
   Help | `/gemini help` | Displays a list of available commands.
   
   <b>Customization</b>
   
   To customize the 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 `.gemini/` folder in the base of the repository. Detailed instructions can be found [here](https://developers.google.com/gemini-code-assist/docs/customize-gemini-behavior-github).
   
   <b>Limitations & Feedback</b>
   
   Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counterproductive. You can react with :thumbsup: and :thumbsdown: 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](https://google.qualtrics.com/jfe/form/SV_2cyuGuTWsEw84yG).
   </details>
   
   
   [^1]: Review the [Privacy Notices](https://policies.google.com/privacy), [Generative AI Prohibited Use Policy](https://policies.google.com/terms/generative-ai/use-policy), [Terms of Service](https://policies.google.com/terms), and learn how to configure Gemini Code Assist in GitHub [here](https://developers.google.com/gemini-code-assist/docs/customize-gemini-behavior-github). Gemini can make mistakes, so double check it and [use code with caution](https://support.google.com/legal/answer/13505487).
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@beam.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Fix PreCommit Java PVR Prism workflow [beam]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #38431:
URL: https://github.com/apache/beam/pull/38431#issuecomment-4416909749

   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`


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@beam.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Fix PreCommit Java PVR Prism workflow [beam]

Posted by "shunping (via GitHub)" <gi...@apache.org>.
shunping commented on PR #38431:
URL: https://github.com/apache/beam/pull/38431#issuecomment-4416905984

   r: @stankiewicz @Amar3tto 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@beam.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Fix PreCommit Java PVR Prism Loopback workflow [beam]

Posted by "shunping (via GitHub)" <gi...@apache.org>.
shunping commented on code in PR #38431:
URL: https://github.com/apache/beam/pull/38431#discussion_r3215916471


##########
sdks/java/core/src/test/java/org/apache/beam/sdk/transforms/MetadataPropagationTest.java:
##########
@@ -80,8 +80,13 @@ public void testMetadataPropagationAcrossShuffleParameter() {
     pipeline.run();
   }
 
+  /**
+   * Tests metadata propagation for a parameter. Note: PAssert internally introduces a GroupByKey.
+   * This test works only with DirectRunner and runners that support metadata propagation.

Review Comment:
   Done.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@beam.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Fix PreCommit Java PVR Prism workflow [beam]

Posted by "gemini-code-assist[bot] (via GitHub)" <gi...@apache.org>.
gemini-code-assist[bot] commented on code in PR #38431:
URL: https://github.com/apache/beam/pull/38431#discussion_r3215883031


##########
sdks/java/core/src/test/java/org/apache/beam/sdk/transforms/MetadataPropagationTest.java:
##########
@@ -80,8 +80,13 @@ public void testMetadataPropagationAcrossShuffleParameter() {
     pipeline.run();
   }
 
+  /**
+   * Tests metadata propagation for a parameter. Note: PAssert internally introduces a GroupByKey.
+   * This test works only with DirectRunner and runners that support metadata propagation.

Review Comment:
   ![medium](https://www.gstatic.com/codereviewagent/medium-priority.svg)
   
   The Javadoc states that the test works with runners that support "metadata propagation". However, as noted in the PR description, the specific limitation in Prism is metadata propagation **across GroupByKey**. Since Prism supports metadata propagation in other contexts but fails here due to `PAssert`'s internal use of `GroupByKey`, it would be more accurate to specify this distinction. Additionally, consider adding a `TODO` with a link to a tracking issue for Prism's support of this feature to ensure it can be re-enabled later.
   
   ```suggestion
      * This test works only with DirectRunner and runners that support metadata propagation across GroupByKey.
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@beam.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Fix PreCommit Java PVR Prism Loopback workflow [beam]

Posted by "stankiewicz (via GitHub)" <gi...@apache.org>.
stankiewicz merged PR #38431:
URL: https://github.com/apache/beam/pull/38431


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@beam.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org