Kyle,
Great. Thank you for quick response.

On Tue, Nov 12, 2019 at 4:26 PM Kyle Weaver <kcwea...@google.com> wrote:

> Hi Tomo, thanks for reporting.
>
> This test passes on my machine and on Jenkins. I'm guessing this test is
> assuming something about the host's gcloud settings, and is overfitting as
> a result. Probably we should mock something so that the test doesn't
> actually need to call gcloud.
>
> I have created a JIRA issue for this and assigned to myself:
> https://issues.apache.org/jira/browse/BEAM-8628
>
> Kyle
>
> On Tue, Nov 12, 2019 at 7:41 AM Tomo Suzuki <suzt...@google.com> wrote:
>
>> Hi Beam developers,
>>
>> I'm trying to build Apache Beam from the source. But GcpOptionsTest fails
>> (error below).
>>
>> Did anybody solve this problem already?
>>
>> I'm using master (c2e58c55)
>>
>> suztomo@suxtomo24:~/beam4$ ./gradlew -p sdks/java check
>> ...
>> FAILURE: Build failed with an exception.
>>
>> * What went wrong:
>> Execution failed for task
>> ':sdks:java:extensions:google-cloud-platform-core:test'.
>> > There were failing tests. See the report at:
>> file:///usr/local/google/home/suztomo/beam4/sdks/java/extensions/google-cloud-platform-core/build/reports/tests/test/index.html
>>
>> The HTML file shows the following stacktrace:
>>
>> java.lang.AssertionError:
>> Expected: (an instance of java.lang.IllegalArgumentException and
>> exception with message a string containing "Error constructing default
>> value for gcpTempLocation: tempLocation is not a valid GCS path" and
>> exception with cause exception with message a string containing "Output
>> path does not exist or is not writeable")
>>      but: exception with cause exception with message a string containing
>> "Output path does not exist or is not writeable" cause message was "Unable
>> to verify that GCS bucket gs://does exists."
>> Stacktrace was: java.lang.IllegalArgumentException: Error constructing
>> default value for gcpTempLocation: tempLocation is not a valid GCS path,
>> gs://does/not/exist.
>>
>>
>> The problem (at the surface) is, in my development
>> environment, gcpOptions.getGcsUtil().bucketAccessible(gcsPath) throws
>> IOException rather than returning false. I want to know whether this is
>> specific to my environment or not.
>>
>> I'm using
>> - 1.8.0_181-google-v7
>> - x86_64 Debian GNU/Linux (Google buid)
>>
>> --
>> Regards,
>> Tomo
>>
>

-- 
Regards,
Tomo

Reply via email to