You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@beam.apache.org by "Stephen Sisk (JIRA)" <ji...@apache.org> on 2017/06/28 21:13:00 UTC

[jira] [Created] (BEAM-2537) Can't run IO ITs - conflicting project vs projectId pipeline options

Stephen Sisk created BEAM-2537:
----------------------------------

             Summary: Can't run IO ITs - conflicting project vs projectId pipeline options
                 Key: BEAM-2537
                 URL: https://issues.apache.org/jira/browse/BEAM-2537
             Project: Beam
          Issue Type: Bug
          Components: sdk-java-extensions, sdk-java-gcp
            Reporter: Stephen Sisk
            Assignee: Stephen Sisk


Today, 

eg. GcpOptions.java uses --project:
https://github.com/apache/beam/blob/master/sdks/java/extensions/google-cloud-platform-core/src/main/java/org/apache/beam/sdk/extensions/gcp/options/GcpOptions.java#L81

and e.g the datastore IO ITs use that parameter:
https://github.com/apache/beam/blob/master/sdks/java/io/google-cloud-platform/src/test/java/org/apache/beam/sdk/io/gcp/datastore/V1ReadIT.java#L60

however, BigtableTestOptions uses --projectId:
https://github.com/apache/beam/blob/master/sdks/java/io/google-cloud-platform/src/test/java/org/apache/beam/sdk/io/gcp/bigtable/BigtableTestOptions.java#L30

as does the spanner IO IT:
https://github.com/apache/beam/blob/master/sdks/java/io/google-cloud-platform/src/test/java/org/apache/beam/sdk/io/gcp/spanner/SpannerReadIT.java#L61

These conflicts mean that you can't run the tests as a suite successfully if you need to manually specify the project.

This works with the integration tests currently checked in b/c they are using the default project values (apache-beam-testing) when running in CI. However, that's not an option for running these tests as part of a suite when doing local development.

cc [~jasonkuster]



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)