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 18:35:22 UTC

[GitHub] [beam] kennknowles opened a new issue, #18437: failIfNoTests: causes issues when trying to run integration tests

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

   Summary: 
   We have a couple different maven projects in beam that override the failIfNoTests property in ways that easily affect folks that are trying to run tests and end up having to build those projects but don't want to run tests in those projects.
    
   I think we should remove these overrides since I think they do more harm than good. The fact that they don't allow overriding by the user is particularly tricky to get around.
   
   Details: 
   projects overriding the failIfNoTests in intrusive ways are: 
   runners/direct/java/pom.xml (not profile protected at all)
   runners/google-cloud-dataflow-java/pom.xml (when run with dataflow-runner profile)
   runners/apex/pom.xml (not profile protected)
   
   This shows up in things like perfkitbenchmarker, where if you try to run the default pkb command for beam, it is failing: (see below for repro recreating what this does) 
   python pkb.py \--benchmarks=beam_integration_benchmark \--beam_it_args=\--tempRoot=gs://[bucket]/staging \--beam_sdk=java
   
   
   To repro: 
   mvn -e verify -Dit.test=org.apache.beam.examples.WordCountIT -DskipITs=false -Pdataflow-runner -DintegrationTestPipelineOptions=["--tempRoot=gs://sisk-test/staging","--runner=TestDataflowRunner"]("--tempRoot=gs://sisk-test/staging","--runner=TestDataflowRunner")
   
   This is very reasonable command line that should work (and pkb expects it to work.)
   
   However, this includes a specific test (-Dit.test=..), which means it will fail when it encounters the google-cloud-dataflow-java project.
   
   cc [~davor] [~jasonkuster]
   
   Imported from Jira [BEAM-2554](https://issues.apache.org/jira/browse/BEAM-2554). Original Jira may contain additional context.
   Reported by: sisk.


-- 
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