#1014136 golang-mongodb-mongo-driver FTBFS due to failing tests

#1014136#5
Date:
2022-06-30 18:25:36 UTC
From:
To:
Dear Maintainer,

There was already a patch in this package to skip tests that require
a running mongodb instance. The latest upstream release added more
tests with this requirement, so I added logic to skip them to the
already existing patch

In Ubuntu, the attached patch was applied to achieve the following:

  * Resolve FTBFS by Skiping more tests that require a running mongodb instance


Thanks for considering the patch.

#1014136#10
Date:
2022-11-29 18:33:04 UTC
From:
To:
Control: tag -1 moreinfo unreproducible

I have no mongodb running and when building there's no build failure,
so I think I'm not understanding what this is trying to fix? This
definitely does not FTBFS in Debian.

Thanks,
Guillem

#1014136#17
Date:
2022-12-18 16:41:33 UTC
From:
To:
Hi. I have a failed build for this package.

The log contains this:

=== RUN   TestPollingSRVRecordsSpec/Remove_all
     polling_srv_records_test.go:134:
                 Error Trace:    /<<PKGBUILDDIR>>/_build/src/go.mongodb.org/mongo-driver/x/mongo/driver/topology/polling_srv_records_test.go:134
                 Error:          Received unexpected error:
                                 error parsing uri: lookup _mongodb._tcp.test1.test.build.10gen.cc on 192.168.122.1:53: server misbehaving
                 Test:           TestPollingSRVRecordsSpec/Remove_all
                 Messages:       Problem parsing the uri: error parsing uri: lookup _mongodb._tcp.test1.test.build.10gen.cc on 192.168.122.1:53: server misbehaving
--- FAIL: TestPollingSRVRecordsSpec (1.97s)
     --- PASS: TestPollingSRVRecordsSpec/Add_new_record (0.07s)
     --- PASS: TestPollingSRVRecordsSpec/Remove_existing_record (0.52s)
     --- PASS: TestPollingSRVRecordsSpec/Replace_existing_record (0.83s)
     --- FAIL: TestPollingSRVRecordsSpec/Replace_both_with_one_new (0.54s)
     --- FAIL: TestPollingSRVRecordsSpec/Replace_both_with_two_new (0.00s)
     --- FAIL: TestPollingSRVRecordsSpec/DNS_lookup_timeout (0.00s)
     --- FAIL: TestPollingSRVRecordsSpec/DNS_lookup_failure (0.00s)
     --- FAIL: TestPollingSRVRecordsSpec/Remove_all (0.00s)


This is a self-hosted KVM virtual machine, and 192.168.122.1:53 is the DNS server, which
is really the host machine. Apparently the tests are trying to do DNS queries, which
I believe it's not allowed by Policy.

See also:

https://tests.reproducible-builds.org/debian/rbuild/bookworm/amd64/golang-mongodb-mongo-driver_1.8.4+ds1-3.rbuild.log.gz

[ Not sure if this is the same problem reported by William or not ]

Thanks.

#1014136#22
Date:
2024-06-12 18:35:13 UTC
From:
To:
tags 1014136 - moreinfo unreproducible
tags 1014136 + ftbfs
tags 1014136 + bookworm
severity 1014136 serious
retitle 1014136 golang-mongodb-mongo-driver: Tries to access Internet during build
close 1014136 1.12.1+ds1-2
thanks

Hi.

This was 100% reproducible in bookworm when using the unshare backend of sbuild,
which deliberately makes network access to fail:

sbuild --chroot-mode=unshare -d bookworm golang-mongodb-mongo-driver

Because half of the autobuilders in our buildd network is now using
the unshare backend, this is now (also) a FTBFS bug.

The bug was fixed by Shengjing Zhu in release 1.12.1+ds1-2,
so I'm marking this as fixed in such version.

Thanks.