Package: golang-github-containers-gvisor-tap-vsocks
Version: 0.8.0+ds1-3
Severity: serious
Hello, I found the dns test failing in Ubuntu, where the network is more
strictly forbidden, and I think the test is calling home and various ip address
outside
Please consider fixing/ignoring such tests
runtime/pprof
os/signal
github.com/containers/gvisor-tap-vsock/cmd/qemu-wrapper
net/http/pprof
github.com/containers/gvisor-tap-vsock/pkg/client
github.com/containers/gvisor-tap-vsock/pkg/tap
gvisor.dev/gvisor/pkg/tcpip/header/parse
gvisor.dev/gvisor/pkg/tcpip/transport/internal/network
gvisor.dev/gvisor/pkg/tcpip/transport/internal/noop
gvisor.dev/gvisor/pkg/tcpip/transport/packet
gvisor.dev/gvisor/pkg/tcpip/network/internal/fragmentation
gvisor.dev/gvisor/pkg/tcpip/network/internal/ip
gvisor.dev/gvisor/pkg/tcpip/transport/raw
gvisor.dev/gvisor/pkg/tcpip/network/internal/multicast
github.com/containers/gvisor-tap-vsock/pkg/services/dns
gvisor.dev/gvisor/pkg/tcpip/link/nested
gvisor.dev/gvisor/pkg/tcpip/link/sniffer
gvisor.dev/gvisor/pkg/tcpip/network/ipv4
gvisor.dev/gvisor/pkg/tcpip/network/arp
gvisor.dev/gvisor/pkg/tcpip/transport/tcp
gvisor.dev/gvisor/pkg/tcpip/transport/udp
gvisor.dev/gvisor/pkg/tcpip/transport/icmp
gvisor.dev/gvisor/pkg/tcpip/adapters/gonet
github.com/containers/gvisor-tap-vsock/pkg/services/dhcp
github.com/containers/gvisor-tap-vsock/pkg/services/forwarder
github.com/containers/gvisor-tap-vsock/pkg/virtualnetwork
github.com/containers/gvisor-tap-vsock/cmd/gvproxy
dh_auto_test -O--builddirectory=_build -O--buildsystem=golang
dh_auto_test: warning: LTO optimize is enable in buildflags. But cgo doesn't
support it. LTO flags will be stripped in cgo.
cd _build && go test -vet=off -v -p 4
github.com/containers/gvisor-tap-vsock/cmd/gvproxy
github.com/containers/gvisor-tap-vsock/cmd/qemu-wrapper
github.com/containers/gvisor-tap-vsock/pkg/client
github.com/containers/gvisor-tap-vsock/pkg/fs
github.com/containers/gvisor-tap-vsock/pkg/net/stdio
github.com/containers/gvisor-tap-vsock/pkg/services/dhcp
github.com/containers/gvisor-tap-vsock/pkg/services/dns
github.com/containers/gvisor-tap-vsock/pkg/services/forwarder
github.com/containers/gvisor-tap-vsock/pkg/sshclient
github.com/containers/gvisor-tap-vsock/pkg/tap
github.com/containers/gvisor-tap-vsock/pkg/tcpproxy
github.com/containers/gvisor-tap-vsock/pkg/transport
github.com/containers/gvisor-tap-vsock/pkg/types
github.com/containers/gvisor-tap-vsock/pkg/virtualnetwork
? github.com/containers/gvisor-tap-vsock/cmd/gvproxy [no test files]
? github.com/containers/gvisor-tap-vsock/cmd/qemu-wrapper [no test files]
? github.com/containers/gvisor-tap-vsock/pkg/client [no test files]
? github.com/containers/gvisor-tap-vsock/pkg/fs [no test files]
? github.com/containers/gvisor-tap-vsock/pkg/net/stdio [no test files]
? github.com/containers/gvisor-tap-vsock/pkg/services/dhcp [no
test files]
? github.com/containers/gvisor-tap-vsock/pkg/services/forwarder [no
test files]
? github.com/containers/gvisor-tap-vsock/pkg/sshclient [no test files]
? github.com/containers/gvisor-tap-vsock/pkg/tcpproxy [no test files]
? github.com/containers/gvisor-tap-vsock/pkg/transport [no test files]
? github.com/containers/gvisor-tap-vsock/pkg/types [no test files]
? github.com/containers/gvisor-tap-vsock/pkg/virtualnetwork [no
test files]
=== RUN TestSuite
Running Suite: gvisor-tap-vsock dns suit
========================================
Random Seed: [1m1734613572[0m
Will run [1m8[0m of [1m8[0m specs
[32m•[0m[32m•[0m[32m•[0m[32m•[0m[32m•[0m[32m•[0m[32m•[0m
[90m------------------------------[0m
[91m[1m•! Panic [0.005 seconds][0m
dns add test
[90m/<<PKGBUILDDIR>>/_build/src/github.com/containers/gvisor-tap-vsock/pkg/services/dns/dns_test.go:22[0m
[91m[1mShould pass DNS requests to default system DNS server [It][0m
[90m/<<PKGBUILDDIR>>/_build/src/github.com/containers/gvisor-tap-vsock/pkg/services/dns/dns_test.go:204[0m
[91m[1mTest Panicked[0m
[91mruntime error: index out of range [0] with length 0[0m
/usr/lib/go-1.23/src/runtime/panic.go:115
[91mFull Stack Trace[0m
github.com/containers/gvisor-tap-vsock/pkg/services/dns.init.func1.9()
/<<PKGBUILDDIR>>/_build/src/github.com/containers/gvisor-tap-vsock/pkg/services/dns/dns_test.go:224
+0x2ef
github.com/containers/gvisor-tap-vsock/pkg/services/dns.TestSuite(0xc0001a89c0)
/<<PKGBUILDDIR>>/_build/src/github.com/containers/gvisor-tap-vsock/pkg/services/dns/dns_test.go:19
+0x3c
testing.tRunner(0xc0001a89c0, 0x888290)
/usr/lib/go-1.23/src/testing/testing.go:1690 +0xf4
created by testing.(*T).Run in goroutine 1
/usr/lib/go-1.23/src/testing/testing.go:1743 +0x390
[90m------------------------------[0m
[91m[1mSummarizing 1 Failure:[0m
[91m[1m[Panic!] [0m[90mdns add test [0m[91m[1m[It] Should pass DNS
requests to default system DNS server [0m
[37m/usr/lib/go-1.23/src/runtime/panic.go:115[0m
[1m[91mRan 8 of 8 Specs in 0.006 seconds[0m
[1m[91mFAIL![0m -- [32m[1m7 Passed[0m | [91m[1m1 Failed[0m |
[33m[1m0 Pending[0m | [36m[1m0 Skipped[0m
--- FAIL: TestSuite (0.01s)
=== RUN TestDNS
time="2024-12-19T13:06:12Z" level=info msg="starting test DNS servers"
time="2024-12-19T13:06:12Z" level=info msg="test DNS servers started"
time="2024-12-19T13:06:12Z" level=info msg="looking up redhat.com"
time="2024-12-19T13:06:12Z" level=info msg="dialing udp 127.0.0.1:5354"
time="2024-12-19T13:06:12Z" level=info msg="dialing udp 127.0.0.1:5354"
time="2024-12-19T13:06:12Z" level=info msg="dialing udp 127.0.0.1:5354"
time="2024-12-19T13:06:12Z" level=info msg="dialing udp 127.0.0.1:5354"
dns_test.go:263:
Error Trace:
/<<PKGBUILDDIR>>/_build/src/github.com/containers/gvisor-tap-vsock/pkg/services/dns/dns_test.go:263
Error: Received unexpected error:
lookup redhat.com on 127.0.0.53:53: no such host
Test: TestDNS
time="2024-12-19T13:06:12Z" level=error msg="serve UDP error: *net.OpError read udp
127.0.0.1:5354: use of closed network connection"
time="2024-12-19T13:06:12Z" level=error msg="serve TCP error: *net.OpError accept
tcp 127.0.0.1:5354: use of closed network connection"
--- FAIL: TestDNS (0.11s)
=== RUN TestHostsFile
--- PASS: TestHostsFile (0.00s)
=== RUN TestReloadingHostsFile
time="2024-12-19T13:06:12Z" level=error msg="Hosts file adding watcher error:no such
file or directory"
--- PASS: TestReloadingHostsFile (2.00s)
FAIL
FAIL github.com/containers/gvisor-tap-vsock/pkg/services/dns 2.144s
=== RUN TestIPPool
--- PASS: TestIPPool (0.00s)
PASS
ok github.com/containers/gvisor-tap-vsock/pkg/tap 0.015s
FAIL
dh_auto_test: error: cd _build && go test -vet=off -v -p 4
github.com/containers/gvisor-tap-vsock/cmd/gvproxy
github.com/containers/gvisor-tap-vsock/cmd/qemu-wrapper
github.com/containers/gvisor-tap-vsock/pkg/client
github.com/containers/gvisor-tap-vsock/pkg/fs
github.com/containers/gvisor-tap-vsock/pkg/net/stdio
github.com/containers/gvisor-tap-vsock/pkg/services/dhcp
github.com/containers/gvisor-tap-vsock/pkg/services/dns
github.com/containers/gvisor-tap-vsock/pkg/services/forwarder
github.com/containers/gvisor-tap-vsock/pkg/sshclient
github.com/containers/gvisor-tap-vsock/pkg/tap
github.com/containers/gvisor-tap-vsock/pkg/tcpproxy
github.com/containers/gvisor-tap-vsock/pkg/transport
github.com/containers/gvisor-tap-vsock/pkg/types
github.com/containers/gvisor-tap-vsock/pkg/virtualnetwork returned exit code 1
make: *** [debian/rules:14: binary] Error 255
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
--------------------------------------------------------------------------------
Build finished at 2024-12-19T13:06:14Z
Finished
--------