Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to execute tests when using testcontainers-go #1894

Open
ryanfaerman opened this issue Aug 27, 2024 · 0 comments
Open

Unable to execute tests when using testcontainers-go #1894

ryanfaerman opened this issue Aug 27, 2024 · 0 comments

Comments

@ryanfaerman
Copy link

ryanfaerman commented Aug 27, 2024

What version of gazelle are you using?

0.38.0

What version of rules_go are you using?

0.48.1

What version of Bazel are you using?

Bazelisk version: 1.20.0
Build label: 6.5.0
Build target: bazel-out/darwin_arm64-opt/bin/src/main/java/com/google/devtools/build/lib/bazel/BazelServer_deploy.jar
Build time: Tue Jan 23 16:45:22 2024 (1706028322)
Build timestamp: 1706028322
Build timestamp as int: 1706028322

Does this issue reproduce with the latest releases of all the above?

Yes

What operating system and processor architecture are you using?

Mac OS with M1 -- darwin, arm64

What did you do?

I attempt to use the latest version of testcontainers-go package (0.33.0) and execute tests with bazel test PATH/.... Without any testcontainers-go code in my tests, everything runs just fine.

What did you expect to see?

The tests can successfully execute, ideally spinning up containers and communicating with them. This works currently with go test PATH

What did you see instead?

Multiple errors with the following repeated for each one:

ERROR: {REDACTED}/2d73b2af33014c32bbf17fa778958384/external/com_github_golang_protobuf/proto/BUILD.bazel:33:6: in alias rule @com_github_golang_protobuf//proto:go_default_library: cycle in dependency graph:
    //{REDACTED}_files-linux_x86_64 (f8338025f0a66230e1ba6d49b9eacad02f14e6e0c7e7b992b1d5b8553498bfbd)
    //{REDACTED}-linux_x86_64 (f8338025f0a66230e1ba6d49b9eacad02f14e6e0c7e7b992b1d5b8553498bfbd)
    //{REDACTED}_lib (ca261d591a34b2212a84ee60ccd5520d87efab4d0b2972f1837472c8ea3009ec)
    //{REDACTED}/server:server (ca261d591a34b2212a84ee60ccd5520d87efab4d0b2972f1837472c8ea3009ec)
    @io_opencensus_go_contrib_exporter_prometheus//:prometheus (ca261d591a34b2212a84ee60ccd5520d87efab4d0b2972f1837472c8ea3009ec)
    @com_github_prometheus_client_golang//prometheus:go_default_library (ca261d591a34b2212a84ee60ccd5520d87efab4d0b2972f1837472c8ea3009ec)
    @com_github_prometheus_client_golang//prometheus:prometheus (ca261d591a34b2212a84ee60ccd5520d87efab4d0b2972f1837472c8ea3009ec)
    @com_github_prometheus_common//expfmt:go_default_library (ca261d591a34b2212a84ee60ccd5520d87efab4d0b2972f1837472c8ea3009ec)
    @com_github_prometheus_common//expfmt:expfmt (ca261d591a34b2212a84ee60ccd5520d87efab4d0b2972f1837472c8ea3009ec)
    @com_github_matttproud_golang_protobuf_extensions//pbutil:go_default_library (ca261d591a34b2212a84ee60ccd5520d87efab4d0b2972f1837472c8ea3009ec)
    @com_github_matttproud_golang_protobuf_extensions//pbutil:pbutil (ca261d591a34b2212a84ee60ccd5520d87efab4d0b2972f1837472c8ea3009ec)
.-> @com_github_golang_protobuf//proto:go_default_library (ca261d591a34b2212a84ee60ccd5520d87efab4d0b2972f1837472c8ea3009ec)
|   @com_github_golang_protobuf//proto:proto (ca261d591a34b2212a84ee60ccd5520d87efab4d0b2972f1837472c8ea3009ec)
|   @org_golang_google_protobuf//reflect/protodesc:go_default_library (ca261d591a34b2212a84ee60ccd5520d87efab4d0b2972f1837472c8ea3009ec)
|   @org_golang_google_protobuf//reflect/protodesc:protodesc (ca261d591a34b2212a84ee60ccd5520d87efab4d0b2972f1837472c8ea3009ec)
|   @org_golang_google_protobuf//types/gofeaturespb:gofeaturespb (ca261d591a34b2212a84ee60ccd5520d87efab4d0b2972f1837472c8ea3009ec)
|   @org_golang_google_protobuf//types/gofeaturespb:gofeaturespb_go_proto (ca261d591a34b2212a84ee60ccd5520d87efab4d0b2972f1837472c8ea3009ec)
|   @io_bazel_rules_go//proto:go_proto (ca261d591a34b2212a84ee60ccd5520d87efab4d0b2972f1837472c8ea3009ec)
`-- @com_github_golang_protobuf//proto:go_default_library (ca261d591a34b2212a84ee60ccd5520d87efab4d0b2972f1837472c8ea3009ec)
WARNING: errors encountered while analyzing target '//{REDACTED}_files-linux_x86_64': it will not be built
ERROR: {REDACTED}/BUILD.bazel:60:8: in pkg_tar_impl rule //{REDACTED}_tar-linux_x86_64: cycle in dependency graph: target depends on an already-reported cycle
WARNING: errors encountered while analyzing target '//{REDACTED}_tar-linux_x86_64': it will not be built
ERROR: {REDACTED}/2d73b2af33014c32bbf17fa778958384/external/com_github_golang_protobuf/proto/BUILD.bazel:33:6: in alias rule @com_github_golang_protobuf//proto:go_default_library: cycle in dependency graph:
    //{REDACTED}_files-linux_arm64 (f8338025f0a66230e1ba6d49b9eacad02f14e6e0c7e7b992b1d5b8553498bfbd)
    //{REDACTED}-linux_arm64 (f8338025f0a66230e1ba6d49b9eacad02f14e6e0c7e7b992b1d5b8553498bfbd)
    //{REDACTED}_lib (092b8996a8a8f5b2fa1af6cfffa473b35d4a755bb80fc3099d75100a9cbdcbf6)
    //{REDACTED}/server:server (092b8996a8a8f5b2fa1af6cfffa473b35d4a755bb80fc3099d75100a9cbdcbf6)
    @io_opencensus_go_contrib_exporter_prometheus//:prometheus (092b8996a8a8f5b2fa1af6cfffa473b35d4a755bb80fc3099d75100a9cbdcbf6)
    @com_github_prometheus_client_golang//prometheus:go_default_library (092b8996a8a8f5b2fa1af6cfffa473b35d4a755bb80fc3099d75100a9cbdcbf6)
    @com_github_prometheus_client_golang//prometheus:prometheus (092b8996a8a8f5b2fa1af6cfffa473b35d4a755bb80fc3099d75100a9cbdcbf6)
    @com_github_prometheus_common//expfmt:go_default_library (092b8996a8a8f5b2fa1af6cfffa473b35d4a755bb80fc3099d75100a9cbdcbf6)
    @com_github_prometheus_common//expfmt:expfmt (092b8996a8a8f5b2fa1af6cfffa473b35d4a755bb80fc3099d75100a9cbdcbf6)
    @com_github_matttproud_golang_protobuf_extensions//pbutil:go_default_library (092b8996a8a8f5b2fa1af6cfffa473b35d4a755bb80fc3099d75100a9cbdcbf6)
    @com_github_matttproud_golang_protobuf_extensions//pbutil:pbutil (092b8996a8a8f5b2fa1af6cfffa473b35d4a755bb80fc3099d75100a9cbdcbf6)
.-> @com_github_golang_protobuf//proto:go_default_library (092b8996a8a8f5b2fa1af6cfffa473b35d4a755bb80fc3099d75100a9cbdcbf6)
|   @com_github_golang_protobuf//proto:proto (092b8996a8a8f5b2fa1af6cfffa473b35d4a755bb80fc3099d75100a9cbdcbf6)
|   @org_golang_google_protobuf//reflect/protodesc:go_default_library (092b8996a8a8f5b2fa1af6cfffa473b35d4a755bb80fc3099d75100a9cbdcbf6)
|   @org_golang_google_protobuf//reflect/protodesc:protodesc (092b8996a8a8f5b2fa1af6cfffa473b35d4a755bb80fc3099d75100a9cbdcbf6)
|   @org_golang_google_protobuf//types/gofeaturespb:gofeaturespb (092b8996a8a8f5b2fa1af6cfffa473b35d4a755bb80fc3099d75100a9cbdcbf6)
|   @org_golang_google_protobuf//types/gofeaturespb:gofeaturespb_go_proto (092b8996a8a8f5b2fa1af6cfffa473b35d4a755bb80fc3099d75100a9cbdcbf6)
|   @io_bazel_rules_go//proto:go_proto (092b8996a8a8f5b2fa1af6cfffa473b35d4a755bb80fc3099d75100a9cbdcbf6)
`-- @com_github_golang_protobuf//proto:go_default_library (092b8996a8a8f5b2fa1af6cfffa473b35d4a755bb80fc3099d75100a9cbdcbf6)
WARNING: errors encountered while analyzing target '//{REDACTED}_files-linux_arm64': it will not be built
ERROR: /{REDACTED}/BUILD.bazel:27:10: in go_binary rule //{REDACTED}-linux_x86_64: cycle in dependency graph: target depends on an already-reported cycle
WARNING: errors encountered while analyzing target '//{REDACTED}-linux_x86_64': it will not be built
ERROR: {REDACTED}/BUILD.bazel:81:10: in oci_image rule //{REDACTED}:image-linux_x86_64: cycle in dependency graph: target depends on an already-reported cycle
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant