[
https://issues.apache.org/jira/browse/BEAM-11647?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17290660#comment-17290660
]
Daniel Oliveira commented on BEAM-11647:
----------------------------------------
I think I got this bug to replicate with '--info' logging. It's hitting it on
the integration/xlang package instead of integration/synthetic, but based on
the error it looks like it could occur in any of my integration test packages.
{noformat}
# github.com/apache/beam/sdks/go/test/integration/xlang
19:36:23 FAIL github.com/apache/beam/sdks/go/test/integration/xlang [setup
failed]
19:36:23 package github.com/apache/beam/sdks/go/test/integration/xlang (test)
19:36:23 imports github.com/apache/beam/sdks/go/pkg/beam/testing/ptest
19:36:23 imports github.com/apache/beam/sdks/go/pkg/beam/runners/dataflow
19:36:23 imports cloud.google.com/go/storage
19:36:23 imports cloud.google.com/go/internal/optional: use of internal
package
github.com/apache/beam/sdks/go/vendor/cloud.google.com/go/internal/optional not
allowed
{noformat}
I think this is an issue with our vendoring. Because it would be perfectly fine
normally for `cloud.google.com/go/storage` to import
`cloud.google.com/go/internal/optional`, since it's an internal package in the
same project. But in this case I think vendoring is changing it to
`github.com/apache/beam/sdks/go/vendor/cloud.google.com/go/internal/optional`
and detecting it as a different internal package.
Unfortunately I don't know how to fix it immediately, but I'll experiment with
it a bit. The strange part is I'm still not sure why this would be a flake, or
why it would only be happening on Jenkins.
> beam_PreCommit_Go_Cron flaky
> ----------------------------
>
> Key: BEAM-11647
> URL: https://issues.apache.org/jira/browse/BEAM-11647
> Project: Beam
> Issue Type: Bug
> Components: sdk-go
> Reporter: Kyle Weaver
> Assignee: Daniel Oliveira
> Priority: P1
> Labels: flake, test-failure
> Time Spent: 50m
> Remaining Estimate: 0h
>
> 10:07:52 Test for github.com/apache/beam/sdks/go/test/integration/synthetic
> finished, 1 completed, 1 failed.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)