[Bug 1071063] New: golang: tests fail to build on random packages intermittently with errors about missing stdlib
http://bugzilla.opensuse.org/show_bug.cgi?id=1071063 Bug ID: 1071063 Summary: golang: tests fail to build on random packages intermittently with errors about missing stdlib Classification: openSUSE Product: openSUSE Tumbleweed Version: Current Hardware: Other OS: Other Status: NEW Severity: Normal Priority: P5 - None Component: Containers Assignee: containers-bugowner@suse.de Reporter: asarai@suse.com QA Contact: qa-bugs@suse.de Found By: --- Blocker: --- This one is quite odd (and I'm 95% sure it's a compiler bug). We've been seeing this a lot in the Docker %check script (where we run a subset of the upstream unit tests). Effectively this looks something like this: % go test $some_pkg # works % go test $other_pkgs... $some_pkg # $some_pkg fails to build % go test $other_pkgs... $more_pkgs... $some_pkg # works For a recent SR[1] we hit this quite weirdly. The example is: % go test github.com/docker/docker/daemon/cluster/executor/container $other_pkgs # github.com/docker/docker/vendor/github.com/Graylog2/go-gelf/gelf home/abuild/go/src/github.com/docker/docker/vendor/github.com/Graylog2/go-gelf/gelf/reader.go:10: can't find import: "compress/zlib" FAIL github.com/docker/docker/daemon/cluster/executor/container [build failed] % go test github.com/docker/docker/daemon/cluster/executor/container github.com/docker/docker/daemon/logger/... $other_pkgs ok github.com/docker/docker/daemon/cluster/executor/container 3.026s coverage: 7.9% of statements This matters because we want to drop github.com/docker/docker/daemon/logger/..., but dropping it starts to break unrelated tests. Ideally we should be able to create a reproducer that isn't related to Docker. [1]: https://build.opensuse.org/request/show/548067 -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1071063 Aleksa Sarai <asarai@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|containers-bugowner@suse.de |asarai@suse.com -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1071063 http://bugzilla.opensuse.org/show_bug.cgi?id=1071063#c1 --- Comment #1 from Aleksa Sarai <asarai@suse.com> --- Weirdly it looks like this happens whenever you combine _any_ package with github.com/docker/docker/daemon/cluster/executor/container. So this also fails: % go test github.com/docker/docker/builder github.com/docker/docker/daemon/cluster/executor/container Even though github.com/docker/docker/builder has no test files. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1071063 http://bugzilla.opensuse.org/show_bug.cgi?id=1071063#c2 --- Comment #2 from Aleksa Sarai <asarai@suse.com> --- Alright, so this works: % go test github.com/docker/docker/builder github.com/docker/docker/daemon/cluster/executor/container github.com/docker/docker/daemon/logger/gelf But if we replace github.com/docker/docker/daemon/logger/gelf with anything else, it breaks. Now to come up with a non-Docker reproducer... -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com