You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@beam.apache.org by GitBox <gi...@apache.org> on 2022/06/03 16:14:39 UTC

[GitHub] [beam] kennknowles opened a new issue, #18051: Figure out TestPipeline.create(PipelineOptions) / TestPipeline.fromOptions(PipelineOptions) story

kennknowles opened a new issue, #18051:
URL: https://github.com/apache/beam/issues/18051

   TestPipeline integrates with the integration testing environment and relies heavily on being able to be configured by the environment and executed on many runners.
   
   Tests which rely on mutating PipelineOptions before creating the TestPipeline easily can get the integration wrong by creating PipelineOptions from PipelineOptionsFactory and then calling either TestPipeline.create(options) or TestPipeline.fromOptions(options), thus ignoring any integration environment pipeline options specified.
   
   We should fix the exposed methods on TestPipeline to prevent users from making this simple mistake.
   
   One suggestion is to create a TestPipeline builder which will give access to a mutable PipelineOptions which the user can edit before calling build() creating a TestPipeline.
   
   Imported from Jira [BEAM-672](https://issues.apache.org/jira/browse/BEAM-672). Original Jira may contain additional context.
   Reported by: lcwik.


-- 
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.apache.org

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