Diff of the two buildlogs: -- --- b1/build.log 2019-06-09 13:40:10.847190836 +0000 +++ b2/build.log 2019-06-09 13:45:24.684868429 +0000 @@ -1,6 +1,6 @@ I: pbuilder: network access will be disabled during build -I: Current time: Sun Jun 9 01:11:12 -12 2019 -I: pbuilder-time-stamp: 1560085872 +I: Current time: Sun Jul 12 10:03:12 +14 2020 +I: pbuilder-time-stamp: 1594497792 I: Building the build Environment I: extracting base tarball [/var/cache/pbuilder/buster-reproducible-base.tgz] I: copying local configuration @@ -18,7 +18,7 @@ I: Extracting source gpgv: unknown type of key resource 'trustedkeys.kbx' gpgv: keyblock resource '/root/.gnupg/trustedkeys.kbx': General error -gpgv: Signature made Tue Feb 12 00:56:52 2019 -12 +gpgv: Signature made Wed Feb 13 02:56:52 2019 +14 gpgv: using RSA key 3E02FD6656295952110BAB99F51B18C720248224 gpgv: Can't check signature: No public key dpkg-source: warning: failed to verify signature on ./mongo-tools_3.4.14-4.dsc @@ -30,6 +30,18 @@ dpkg-source: info: applying 0002-Fix-logging-formatting-directives.patch I: using fakeroot in build. I: Installing the build-deps +I: user script /srv/workspace/pbuilder/36021/tmp/hooks/D01_modify_environment starting +disorder-fs debug: Running on profitbricks-build16-i386. +I: Changing host+domainname to test build reproducibility +I: Adding a custom variable just for the fun of it... +I: Changing /bin/sh to bash +Removing 'diversion of /bin/sh to /bin/sh.distrib by dash' +Adding 'diversion of /bin/sh to /bin/sh.distrib by bash' +Removing 'diversion of /usr/share/man/man1/sh.1.gz to /usr/share/man/man1/sh.distrib.1.gz by dash' +Adding 'diversion of /usr/share/man/man1/sh.1.gz to /usr/share/man/man1/sh.distrib.1.gz by bash' +I: Setting pbuilder2's login shell to /bin/bash +I: Setting pbuilder2's GECOS to second user,second room,second work-phone,second home-phone,second other +I: user script /srv/workspace/pbuilder/36021/tmp/hooks/D01_modify_environment finished -> Attempting to satisfy build-dependencies -> Creating pbuilder-satisfydepends-dummy package Package: pbuilder-satisfydepends-dummy @@ -160,7 +172,7 @@ Get: 63 http://cdn-fastly.deb.debian.org/debian buster/main i386 libssl1.1 i386 1.1.1b-2 [1525 kB] Get: 64 http://cdn-fastly.deb.debian.org/debian buster/main i386 libssl-dev i386 1.1.1b-2 [1821 kB] Get: 65 http://cdn-fastly.deb.debian.org/debian buster/main i386 pkg-config i386 0.29-6 [64.7 kB] -Fetched 86.3 MB in 1min 2s (1382 kB/s) +Fetched 86.3 MB in 10s (8966 kB/s) debconf: delaying package configuration, since apt-utils is not installed Selecting previously unselected package libbsd0:i386. (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 19231 files and directories currently installed.) @@ -441,9 +453,41 @@ Building dependency tree... Reading state information... fakeroot is already the newest version (1.23-1). -0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. +The following additional packages will be installed: + libfile-find-rule-perl libnumber-compare-perl libtext-glob-perl +The following NEW packages will be installed: + libfile-find-rule-perl libnumber-compare-perl libtext-glob-perl usrmerge +0 upgraded, 4 newly installed, 0 to remove and 0 not upgraded. +Need to get 59.5 kB of archives. +After this operation, 182 kB of additional disk space will be used. +Get:1 http://cdn-fastly.deb.debian.org/debian buster/main i386 libnumber-compare-perl all 0.03-1 [7642 B] +Get:2 http://cdn-fastly.deb.debian.org/debian buster/main i386 libtext-glob-perl all 0.10-1 [8362 B] +Get:3 http://cdn-fastly.deb.debian.org/debian buster/main i386 libfile-find-rule-perl all 0.34-1 [30.6 kB] +Get:4 http://cdn-fastly.deb.debian.org/debian buster/main i386 usrmerge all 21 [12.8 kB] +debconf: delaying package configuration, since apt-utils is not installed +Fetched 59.5 kB in 1s (81.3 kB/s) +Selecting previously unselected package libnumber-compare-perl. +(Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 34945 files and directories currently installed.) +Preparing to unpack .../libnumber-compare-perl_0.03-1_all.deb ... +Unpacking libnumber-compare-perl (0.03-1) ... +Selecting previously unselected package libtext-glob-perl. +Preparing to unpack .../libtext-glob-perl_0.10-1_all.deb ... +Unpacking libtext-glob-perl (0.10-1) ... +Selecting previously unselected package libfile-find-rule-perl. +Preparing to unpack .../libfile-find-rule-perl_0.34-1_all.deb ... +Unpacking libfile-find-rule-perl (0.34-1) ... +Selecting previously unselected package usrmerge. +Preparing to unpack .../archives/usrmerge_21_all.deb ... +Unpacking usrmerge (21) ... +Setting up libtext-glob-perl (0.10-1) ... +Setting up libnumber-compare-perl (0.03-1) ... +Setting up libfile-find-rule-perl (0.34-1) ... +Setting up usrmerge (21) ... +The system has been successfully converted. +Processing triggers for man-db (2.8.5-2) ... +Not building database; man-db/auto-update is not 'true'. I: Building the package -I: Running cd /build/mongo-tools-3.4.14/ && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games" HOME="/nonexistent/first-build" dpkg-buildpackage -us -uc -b +I: Running cd /build/mongo-tools-3.4.14/ && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path" HOME="/nonexistent/second-build" dpkg-buildpackage -us -uc -b dpkg-buildpackage: info: source package mongo-tools dpkg-buildpackage: info: source version 3.4.14-4 dpkg-buildpackage: info: source distribution unstable @@ -486,26 +530,26 @@ for tool in bsondump mongodump mongoexport mongofiles mongoimport mongooplog mongorestore mongostat mongoreplay mongotop; do \ go install -v -tags="ssl sasl" -ldflags -extldflags=-Wl,-z,now,-z,relro $tool/main/$tool.go; \ done -go: disabling cache (/nonexistent/first-build/.cache/go-build) due to initialization failure: mkdir /nonexistent: permission denied +go: disabling cache (/nonexistent/second-build/.cache/go-build) due to initialization failure: mkdir /nonexistent: permission denied github.com/mongodb/mongo-tools/common/failpoint github.com/spacemonkeygo/openssl/utils github.com/mongodb/mongo-tools/common/log gopkg.in/mgo.v2/internal/sasl -gopkg.in/mgo.v2/internal/scram -github.com/jessevdk/go-flags gopkg.in/mgo.v2/internal/json +github.com/jessevdk/go-flags +gopkg.in/mgo.v2/internal/scram github.com/mongodb/mongo-tools/common/connstring -github.com/spacemonkeygo/spacelog golang.org/x/sys/unix -gopkg.in/mgo.v2/bson +github.com/spacemonkeygo/spacelog github.com/spacemonkeygo/openssl +gopkg.in/mgo.v2/bson golang.org/x/crypto/ssh/terminal github.com/howeyc/gopass -github.com/mongodb/mongo-tools/common/util -gopkg.in/mgo.v2 github.com/mongodb/mongo-tools/common/password +github.com/mongodb/mongo-tools/common/util github.com/mongodb/mongo-tools/common/signals github.com/mongodb/mongo-tools/common/json +gopkg.in/mgo.v2 github.com/mongodb/mongo-tools/common/bsonutil github.com/mongodb/mongo-tools/common/options github.com/mongodb/mongo-tools/common/db/kerberos @@ -513,18 +557,18 @@ github.com/mongodb/mongo-tools/common/db github.com/mongodb/mongo-tools/bsondump command-line-arguments -go: disabling cache (/nonexistent/first-build/.cache/go-build) due to initialization failure: mkdir /nonexistent: permission denied +go: disabling cache (/nonexistent/second-build/.cache/go-build) due to initialization failure: mkdir /nonexistent: permission denied github.com/mongodb/mongo-tools/common/failpoint -github.com/spacemonkeygo/openssl/utils github.com/mongodb/mongo-tools/common +github.com/spacemonkeygo/openssl/utils github.com/mongodb/mongo-tools/common/log +gopkg.in/mgo.v2/internal/sasl gopkg.in/mgo.v2/internal/json +github.com/mongodb/mongo-tools/common/text github.com/jessevdk/go-flags +gopkg.in/mgo.v2/internal/scram github.com/mongodb/mongo-tools/common/connstring -github.com/mongodb/mongo-tools/common/text -gopkg.in/mgo.v2/internal/sasl github.com/spacemonkeygo/spacelog -gopkg.in/mgo.v2/internal/scram golang.org/x/sys/unix github.com/mongodb/mongo-tools/common/progress github.com/spacemonkeygo/openssl @@ -542,19 +586,19 @@ github.com/mongodb/mongo-tools/common/db/kerberos github.com/mongodb/mongo-tools/common/db/openssl github.com/mongodb/mongo-tools/common/db -github.com/mongodb/mongo-tools/common/archive github.com/mongodb/mongo-tools/common/auth +github.com/mongodb/mongo-tools/common/archive github.com/mongodb/mongo-tools/mongodump command-line-arguments -go: disabling cache (/nonexistent/first-build/.cache/go-build) due to initialization failure: mkdir /nonexistent: permission denied +go: disabling cache (/nonexistent/second-build/.cache/go-build) due to initialization failure: mkdir /nonexistent: permission denied github.com/mongodb/mongo-tools/common/failpoint github.com/spacemonkeygo/openssl/utils github.com/mongodb/mongo-tools/common/log github.com/jessevdk/go-flags gopkg.in/mgo.v2/internal/json -gopkg.in/mgo.v2/internal/scram -gopkg.in/mgo.v2/internal/sasl github.com/mongodb/mongo-tools/common/text +gopkg.in/mgo.v2/internal/sasl +gopkg.in/mgo.v2/internal/scram github.com/mongodb/mongo-tools/common/connstring github.com/spacemonkeygo/spacelog golang.org/x/sys/unix @@ -562,12 +606,12 @@ github.com/spacemonkeygo/openssl gopkg.in/mgo.v2/bson golang.org/x/crypto/ssh/terminal -gopkg.in/mgo.v2 -github.com/mongodb/mongo-tools/common/util -github.com/mongodb/mongo-tools/common/json -github.com/mongodb/mongo-tools/common/signals github.com/howeyc/gopass github.com/mongodb/mongo-tools/common/password +github.com/mongodb/mongo-tools/common/util +gopkg.in/mgo.v2 +github.com/mongodb/mongo-tools/common/signals +github.com/mongodb/mongo-tools/common/json github.com/mongodb/mongo-tools/common/bsonutil github.com/mongodb/mongo-tools/common/options github.com/mongodb/mongo-tools/common/db/kerberos @@ -575,26 +619,26 @@ github.com/mongodb/mongo-tools/common/db github.com/mongodb/mongo-tools/mongoexport command-line-arguments -go: disabling cache (/nonexistent/first-build/.cache/go-build) due to initialization failure: mkdir /nonexistent: permission denied +go: disabling cache (/nonexistent/second-build/.cache/go-build) due to initialization failure: mkdir /nonexistent: permission denied github.com/mongodb/mongo-tools/common/failpoint github.com/spacemonkeygo/openssl/utils -github.com/mongodb/mongo-tools/common/log github.com/jessevdk/go-flags -gopkg.in/mgo.v2/internal/scram +github.com/mongodb/mongo-tools/common/log gopkg.in/mgo.v2/internal/sasl gopkg.in/mgo.v2/internal/json github.com/mongodb/mongo-tools/common/connstring -github.com/spacemonkeygo/spacelog golang.org/x/sys/unix +github.com/spacemonkeygo/spacelog +gopkg.in/mgo.v2/internal/scram github.com/spacemonkeygo/openssl gopkg.in/mgo.v2/bson golang.org/x/crypto/ssh/terminal +github.com/howeyc/gopass +github.com/mongodb/mongo-tools/common/password github.com/mongodb/mongo-tools/common/util gopkg.in/mgo.v2 -github.com/howeyc/gopass github.com/mongodb/mongo-tools/common/signals github.com/mongodb/mongo-tools/common/json -github.com/mongodb/mongo-tools/common/password github.com/mongodb/mongo-tools/common/bsonutil github.com/mongodb/mongo-tools/common/options github.com/mongodb/mongo-tools/common/db/kerberos @@ -602,22 +646,22 @@ github.com/mongodb/mongo-tools/common/db github.com/mongodb/mongo-tools/mongofiles command-line-arguments -go: disabling cache (/nonexistent/first-build/.cache/go-build) due to initialization failure: mkdir /nonexistent: permission denied +go: disabling cache (/nonexistent/second-build/.cache/go-build) due to initialization failure: mkdir /nonexistent: permission denied github.com/mongodb/mongo-tools/common/failpoint github.com/spacemonkeygo/openssl/utils github.com/mongodb/mongo-tools/mongoimport/dateconv -github.com/mongodb/mongo-tools/common/log github.com/jessevdk/go-flags -gopkg.in/mgo.v2/internal/json -github.com/mongodb/mongo-tools/common/connstring -github.com/spacemonkeygo/spacelog gopkg.in/mgo.v2/internal/sasl -gopkg.in/mgo.v2/internal/scram -golang.org/x/sys/unix github.com/mongodb/mongo-tools/common/text +github.com/mongodb/mongo-tools/common/log github.com/mongodb/mongo-tools/mongoimport/csv gopkg.in/tomb.v2 +gopkg.in/mgo.v2/internal/json +github.com/mongodb/mongo-tools/common/connstring +github.com/spacemonkeygo/spacelog +gopkg.in/mgo.v2/internal/scram github.com/mongodb/mongo-tools/common/progress +golang.org/x/sys/unix github.com/spacemonkeygo/openssl gopkg.in/mgo.v2/bson golang.org/x/crypto/ssh/terminal @@ -625,8 +669,8 @@ github.com/mongodb/mongo-tools/common/password github.com/mongodb/mongo-tools/common/util gopkg.in/mgo.v2 -github.com/mongodb/mongo-tools/common/signals github.com/mongodb/mongo-tools/common/json +github.com/mongodb/mongo-tools/common/signals github.com/mongodb/mongo-tools/common/bsonutil github.com/mongodb/mongo-tools/common/options github.com/mongodb/mongo-tools/common/db/kerberos @@ -634,15 +678,15 @@ github.com/mongodb/mongo-tools/common/db github.com/mongodb/mongo-tools/mongoimport command-line-arguments -go: disabling cache (/nonexistent/first-build/.cache/go-build) due to initialization failure: mkdir /nonexistent: permission denied +go: disabling cache (/nonexistent/second-build/.cache/go-build) due to initialization failure: mkdir /nonexistent: permission denied github.com/mongodb/mongo-tools/common/failpoint github.com/spacemonkeygo/openssl/utils +github.com/jessevdk/go-flags github.com/mongodb/mongo-tools/common/log -gopkg.in/mgo.v2/internal/json -github.com/mongodb/mongo-tools/common/connstring gopkg.in/mgo.v2/internal/sasl -github.com/jessevdk/go-flags +gopkg.in/mgo.v2/internal/json gopkg.in/mgo.v2/internal/scram +github.com/mongodb/mongo-tools/common/connstring github.com/spacemonkeygo/spacelog golang.org/x/sys/unix github.com/spacemonkeygo/openssl @@ -652,29 +696,29 @@ github.com/mongodb/mongo-tools/common/password github.com/mongodb/mongo-tools/common/util gopkg.in/mgo.v2 -github.com/mongodb/mongo-tools/common/json github.com/mongodb/mongo-tools/common/signals +github.com/mongodb/mongo-tools/common/json github.com/mongodb/mongo-tools/common/options github.com/mongodb/mongo-tools/common/db/kerberos github.com/mongodb/mongo-tools/common/db/openssl github.com/mongodb/mongo-tools/common/db github.com/mongodb/mongo-tools/mongooplog command-line-arguments -go: disabling cache (/nonexistent/first-build/.cache/go-build) due to initialization failure: mkdir /nonexistent: permission denied +go: disabling cache (/nonexistent/second-build/.cache/go-build) due to initialization failure: mkdir /nonexistent: permission denied github.com/mongodb/mongo-tools/common/failpoint -github.com/spacemonkeygo/openssl/utils -github.com/mongodb/mongo-tools/common/log github.com/mongodb/mongo-tools/common +github.com/mongodb/mongo-tools/common/log gopkg.in/mgo.v2/internal/json -github.com/jessevdk/go-flags gopkg.in/mgo.v2/internal/sasl -gopkg.in/mgo.v2/internal/scram +github.com/spacemonkeygo/openssl/utils github.com/mongodb/mongo-tools/common/text +gopkg.in/mgo.v2/internal/scram github.com/mongodb/mongo-tools/mongorestore/ns +github.com/jessevdk/go-flags github.com/mongodb/mongo-tools/common/connstring github.com/spacemonkeygo/spacelog -golang.org/x/sys/unix github.com/mongodb/mongo-tools/common/progress +golang.org/x/sys/unix github.com/spacemonkeygo/openssl gopkg.in/mgo.v2/bson golang.org/x/crypto/ssh/terminal @@ -682,9 +726,9 @@ github.com/mongodb/mongo-tools/common/password github.com/mongodb/mongo-tools/common/util gopkg.in/mgo.v2 -github.com/mongodb/mongo-tools/common/json github.com/mongodb/mongo-tools/common/signals github.com/mongodb/mongo-tools/common/intents +github.com/mongodb/mongo-tools/common/json github.com/mongodb/mongo-tools/common/bsonutil github.com/mongodb/mongo-tools/common/options github.com/mongodb/mongo-tools/common/db/kerberos @@ -694,27 +738,27 @@ github.com/mongodb/mongo-tools/common/archive github.com/mongodb/mongo-tools/mongorestore command-line-arguments -go: disabling cache (/nonexistent/first-build/.cache/go-build) due to initialization failure: mkdir /nonexistent: permission denied +go: disabling cache (/nonexistent/second-build/.cache/go-build) due to initialization failure: mkdir /nonexistent: permission denied github.com/mongodb/mongo-tools/common/failpoint github.com/spacemonkeygo/openssl/utils github.com/mongodb/mongo-tools/common/log github.com/mattn/go-runewidth github.com/jessevdk/go-flags gopkg.in/mgo.v2/internal/json -github.com/mongodb/mongo-tools/common/connstring gopkg.in/mgo.v2/internal/sasl +github.com/mongodb/mongo-tools/common/text +gopkg.in/mgo.v2/internal/scram +github.com/mongodb/mongo-tools/common/connstring github.com/spacemonkeygo/spacelog golang.org/x/sys/unix -gopkg.in/mgo.v2/internal/scram -github.com/mongodb/mongo-tools/common/text github.com/nsf/termbox-go github.com/spacemonkeygo/openssl gopkg.in/mgo.v2/bson golang.org/x/crypto/ssh/terminal github.com/howeyc/gopass github.com/mongodb/mongo-tools/common/password -gopkg.in/mgo.v2 github.com/mongodb/mongo-tools/common/util +gopkg.in/mgo.v2 github.com/mongodb/mongo-tools/common/signals github.com/mongodb/mongo-tools/mongostat/status github.com/mongodb/mongo-tools/common/json @@ -726,24 +770,24 @@ github.com/mongodb/mongo-tools/common/db github.com/mongodb/mongo-tools/mongostat command-line-arguments -go: disabling cache (/nonexistent/first-build/.cache/go-build) due to initialization failure: mkdir /nonexistent: permission denied +go: disabling cache (/nonexistent/second-build/.cache/go-build) due to initialization failure: mkdir /nonexistent: permission denied github.com/mongodb/mongo-tools/common/failpoint github.com/spacemonkeygo/openssl/utils github.com/golang/snappy github.com/10gen/escaper github.com/10gen/llmgo/internal/sasl -github.com/jessevdk/go-flags -github.com/google/gopacket github.com/mongodb/mongo-tools/common/log +github.com/jessevdk/go-flags gopkg.in/mgo.v2/internal/json +github.com/google/gopacket github.com/10gen/llmgo/internal/scram github.com/10gen/llmgo/bson +github.com/patrickmn/go-cache github.com/mongodb/mongo-tools/common/connstring github.com/spacemonkeygo/spacelog -github.com/patrickmn/go-cache github.com/spacemonkeygo/openssl -gopkg.in/mgo.v2/bson github.com/google/gopacket/layers +gopkg.in/mgo.v2/bson github.com/10gen/llmgo github.com/mongodb/mongo-tools/common/util github.com/mongodb/mongo-tools/common/json @@ -752,27 +796,27 @@ github.com/mongodb/mongo-tools/common/options github.com/mongodb/mongo-tools/mongoreplay command-line-arguments -go: disabling cache (/nonexistent/first-build/.cache/go-build) due to initialization failure: mkdir /nonexistent: permission denied +go: disabling cache (/nonexistent/second-build/.cache/go-build) due to initialization failure: mkdir /nonexistent: permission denied github.com/mongodb/mongo-tools/common/failpoint github.com/spacemonkeygo/openssl/utils github.com/mongodb/mongo-tools/common/log gopkg.in/mgo.v2/internal/sasl -gopkg.in/mgo.v2/internal/scram +github.com/jessevdk/go-flags gopkg.in/mgo.v2/internal/json github.com/mongodb/mongo-tools/common/text -github.com/jessevdk/go-flags +gopkg.in/mgo.v2/internal/scram github.com/mongodb/mongo-tools/common/connstring github.com/spacemonkeygo/spacelog golang.org/x/sys/unix github.com/spacemonkeygo/openssl gopkg.in/mgo.v2/bson +golang.org/x/crypto/ssh/terminal +github.com/howeyc/gopass +github.com/mongodb/mongo-tools/common/password github.com/mongodb/mongo-tools/common/util gopkg.in/mgo.v2 -golang.org/x/crypto/ssh/terminal github.com/mongodb/mongo-tools/common/signals github.com/mongodb/mongo-tools/common/json -github.com/howeyc/gopass -github.com/mongodb/mongo-tools/common/password github.com/mongodb/mongo-tools/common/options github.com/mongodb/mongo-tools/common/db/kerberos github.com/mongodb/mongo-tools/common/db/openssl @@ -786,7 +830,7 @@ set -e; for tool in mongodump mongoexport mongofiles mongoimport mongooplog mongorestore mongostat mongotop common; do \ cd /build/mongo-tools-3.4.14/$tool && go test -v -test.types=unit; \ done -go: disabling cache (/nonexistent/first-build/.cache/go-build) due to initialization failure: mkdir /nonexistent: permission denied +go: disabling cache (/nonexistent/second-build/.cache/go-build) due to initialization failure: mkdir /nonexistent: permission denied === RUN TestMongoDumpValidateOptions With a MongoDump instance @@ -819,8 +863,8 @@ --- PASS: TestSkipCollection (0.00s) PASS -ok _/build/mongo-tools-3.4.14/mongodump 0.017s -go: disabling cache (/nonexistent/first-build/.cache/go-build) due to initialization failure: mkdir /nonexistent: permission denied +ok _/build/mongo-tools-3.4.14/mongodump 0.004s +go: disabling cache (/nonexistent/second-build/.cache/go-build) due to initialization failure: mkdir /nonexistent: permission denied === RUN TestWriteCSV With a CSV export output @@ -881,7 +925,7 @@ --- SKIP: TestKerberos (0.00s) === RUN TestExtendedJSON - Serializing a doc to extended JSON should work ✔{"_id":{"$oid":"5cfd0b7a9289d934d58f8d43"},"array":[{"$oid":"5cfd0b7a9289d934d58f8d45"},{"$undefined":true}],"hey":"sup","subdoc":{"subid":{"$oid":"5cfd0b7a9289d934d58f8d44"}}} + Serializing a doc to extended JSON should work ✔{"_id":{"$oid":"5f0a1c19ff8ef60bb759714a"},"array":[{"$oid":"5f0a1c19ff8ef60bb759714c"},{"$undefined":true}],"hey":"sup","subdoc":{"subid":{"$oid":"5f0a1c19ff8ef60bb759714b"}}} @@ -897,8 +941,8 @@ --- PASS: TestFieldSelect (0.00s) PASS -ok _/build/mongo-tools-3.4.14/mongoexport 0.018s -go: disabling cache (/nonexistent/first-build/.cache/go-build) due to initialization failure: mkdir /nonexistent: permission denied +ok _/build/mongo-tools-3.4.14/mongoexport 0.006s +go: disabling cache (/nonexistent/second-build/.cache/go-build) due to initialization failure: mkdir /nonexistent: permission denied === RUN TestValidArguments With a MongoFiles instance ✔ @@ -929,8 +973,8 @@ --- PASS: TestWriteConcernWithURIParsing (0.00s) PASS -ok _/build/mongo-tools-3.4.14/mongofiles 0.018s -go: disabling cache (/nonexistent/first-build/.cache/go-build) due to initialization failure: mkdir /nonexistent: permission denied +ok _/build/mongo-tools-3.4.14/mongofiles 0.004s +go: disabling cache (/nonexistent/second-build/.cache/go-build) due to initialization failure: mkdir /nonexistent: permission denied === RUN TestValidateFields Given an import input, in validating the headers @@ -995,13 +1039,13 @@ === RUN TestTokensToBSON Given an slice of column specs and tokens to convert to BSON - the expected ordered BSON should be produced for the givencolumn specs and tokens 2019-06-09T13:37:22.600+0000 got line: [1 2 hello] + the expected ordered BSON should be produced for the givencolumn specs and tokens 2020-07-11T20:07:57.475+0000 got line: [1 2 hello] ✔✔ - if there are more tokens than fields, additional fields should be prefixed with 'fields' and an index indicating the header number 2019-06-09T13:37:22.601+0000 got line: [1 2 hello mongodb user] + if there are more tokens than fields, additional fields should be prefixed with 'fields' and an index indicating the header number 2020-07-11T20:07:57.475+0000 got line: [1 2 hello mongodb user] ✔✔ - an error should be thrown if duplicate headers are found 2019-06-09T13:37:22.602+0000 got line: [1 2 hello mongodb user] + an error should be thrown if duplicate headers are found 2020-07-11T20:07:57.475+0000 got line: [1 2 hello mongodb user] ✔ - fields with nested values should be set appropriately 2019-06-09T13:37:22.602+0000 got line: [1 2 hello] + fields with nested values should be set appropriately 2020-07-11T20:07:57.475+0000 got line: [1 2 hello] ✔✔✔✔✔✔✔ @@ -1011,11 +1055,11 @@ === RUN TestProcessDocuments Given an import worker - processDocuments should execute the expected conversion for documents, pass then on the output channel, and close the input channel if ordered is true 2019-06-09T13:37:22.603+0000 got line: [a b c] -2019-06-09T13:37:22.603+0000 got line: [d e f] + processDocuments should execute the expected conversion for documents, pass then on the output channel, and close the input channel if ordered is true 2020-07-11T20:07:57.475+0000 got line: [a b c] +2020-07-11T20:07:57.475+0000 got line: [d e f] ✔✔✔✔✔✔ - processDocuments should execute the expected conversion for documents, pass then on the output channel, and leave the input channel open if ordered is false 2019-06-09T13:37:22.603+0000 got line: [a b c] -2019-06-09T13:37:22.603+0000 got line: [d e f] + processDocuments should execute the expected conversion for documents, pass then on the output channel, and leave the input channel open if ordered is false 2020-07-11T20:07:57.476+0000 got line: [a b c] +2020-07-11T20:07:57.476+0000 got line: [d e f] ✔✔✔✔✔ @@ -1025,11 +1069,11 @@ === RUN TestDoSequentialStreaming Given some import workers, a Converters input channel and an bson.D output channel - documents moving through the input channel should be processed and returned in sequence 2019-06-09T13:37:22.604+0000 got line: [a b c] -2019-06-09T13:37:22.604+0000 got line: [d e f] -2019-06-09T13:37:22.605+0000 got line: [d e f] -2019-06-09T13:37:22.605+0000 got line: [d e f] -2019-06-09T13:37:22.605+0000 got line: [d e f] + documents moving through the input channel should be processed and returned in sequence 2020-07-11T20:07:57.476+0000 got line: [a b c] +2020-07-11T20:07:57.476+0000 got line: [d e f] +2020-07-11T20:07:57.476+0000 got line: [d e f] +2020-07-11T20:07:57.476+0000 got line: [d e f] +2020-07-11T20:07:57.476+0000 got line: [d e f] ✔✔✔✔✔ @@ -1042,13 +1086,13 @@ 1. a boolean indicating streaming order 2. an input channel where documents are streamed in 3. an output channel where processed documents are streamed out - the entire pipeline should complete without error under normal circumstances 2019-06-09T13:37:22.606+0000 got line: [d e f] -2019-06-09T13:37:22.606+0000 got line: [d e f] -2019-06-09T13:37:22.606+0000 got line: [a b c] -2019-06-09T13:37:22.606+0000 got line: [d e f] -2019-06-09T13:37:22.606+0000 got line: [d e f] + the entire pipeline should complete without error under normal circumstances 2020-07-11T20:07:57.476+0000 got line: [d e f] +2020-07-11T20:07:57.476+0000 got line: [d e f] +2020-07-11T20:07:57.476+0000 got line: [d e f] +2020-07-11T20:07:57.476+0000 got line: [a b c] +2020-07-11T20:07:57.476+0000 got line: [d e f] ✔✔✔✔✔✔ - the entire pipeline should complete with error if an error is encountered 2019-06-09T13:37:22.606+0000 got line: [a b c] + the entire pipeline should complete with error if an error is encountered 2020-07-11T20:07:57.476+0000 got line: [a b c] ✔ @@ -1071,7 +1115,7 @@ Given a boolean 'stopOnError' and an error... an error should be returned if stopOnError is true the err is not nil ✔ errLostConnection should be returned if stopOnError is true the err is io.EOF ✔ - no error should be returned if stopOnError is false the err is not nil 2019-06-09T13:37:22.609+0000 error inserting documents: + no error should be returned if stopOnError is false the err is not nil 2020-07-11T20:07:57.477+0000 error inserting documents: ✔ no error should be returned if stopOnError is false the err is nil ✔ no error should be returned if stopOnError is true the err is nil ✔ @@ -1084,50 +1128,50 @@ With a CSV input reader badly encoded CSV should result in a parsing error ✔ - escaped quotes are parsed correctly 2019-06-09T13:37:22.611+0000 got line: [1 2 foo"bar] + escaped quotes are parsed correctly 2020-07-11T20:07:57.478+0000 got line: [1 2 foo"bar] ✔ - multiple escaped quotes separated by whitespace parsed correctly 2019-06-09T13:37:22.612+0000 got line: [1 2 foo" "bar] + multiple escaped quotes separated by whitespace parsed correctly 2020-07-11T20:07:57.478+0000 got line: [1 2 foo" "bar] ✔✔ - integer valued strings should be converted 2019-06-09T13:37:22.612+0000 got line: [1 2 3e] + integer valued strings should be converted 2020-07-11T20:07:57.478+0000 got line: [1 2 3e] ✔✔ - extra fields should be prefixed with 'field' 2019-06-09T13:37:22.613+0000 got line: [1 2f 3e may] + extra fields should be prefixed with 'field' 2020-07-11T20:07:57.478+0000 got line: [1 2f 3e may] ✔✔ - nested CSV fields should be imported properly 2019-06-09T13:37:22.613+0000 got line: [1 2f 3e may] + nested CSV fields should be imported properly 2020-07-11T20:07:57.478+0000 got line: [1 2f 3e may] ✔✔✔✔✔✔ whitespace separated quoted strings are still an error ✔ - nested CSV fields causing header collisions should error 2019-06-09T13:37:22.615+0000 got line: [1 2f 3e may june] + nested CSV fields causing header collisions should error 2020-07-11T20:07:57.479+0000 got line: [1 2f 3e may june] ✔ - calling StreamDocument() for CSVs should return next set of values 2019-06-09T13:37:22.615+0000 got line: [1 2 3] -2019-06-09T13:37:22.615+0000 got line: [4 5 6] + calling StreamDocument() for CSVs should return next set of values 2020-07-11T20:07:57.479+0000 got line: [1 2 3] +2020-07-11T20:07:57.479+0000 got line: [4 5 6] ✔✔✔ - valid CSV input file that starts with the UTF-8 BOM should not raise an error ✔2019-06-09T13:37:22.616+0000 got line: [1 2 3] -2019-06-09T13:37:22.616+0000 got line: [4 5 6] + valid CSV input file that starts with the UTF-8 BOM should not raise an error ✔2020-07-11T20:07:57.479+0000 got line: [1 2 3] +2020-07-11T20:07:57.479+0000 got line: [4 5 6] ✔✔✔✔✔✔✔✔✔✔✔✔✔ 117 total assertions ---- PASS: TestCSVStreamDocument (0.01s) +--- PASS: TestCSVStreamDocument (0.00s) === RUN TestCSVReadAndValidateHeader With a CSV input reader - setting the header should read the first line of the CSV 2019-06-09T13:37:22.617+0000 using fields: extraHeader1,extraHeader2,extraHeader3 + setting the header should read the first line of the CSV 2020-07-11T20:07:57.479+0000 using fields: extraHeader1,extraHeader2,extraHeader3 ✔✔ - setting non-colliding nested CSV headers should not raise an error 2019-06-09T13:37:22.618+0000 using fields: a,b,c -✔✔2019-06-09T13:37:22.618+0000 using fields: a.b.c,a.b.d,c -✔✔2019-06-09T13:37:22.618+0000 using fields: a.b,ab,a.c -✔✔2019-06-09T13:37:22.618+0000 using fields: a,ab,ac,dd + setting non-colliding nested CSV headers should not raise an error 2020-07-11T20:07:57.479+0000 using fields: a,b,c +✔✔2020-07-11T20:07:57.480+0000 using fields: a.b.c,a.b.d,c +✔✔2020-07-11T20:07:57.480+0000 using fields: a.b,ab,a.c +✔✔2020-07-11T20:07:57.480+0000 using fields: a,ab,ac,dd ✔✔ setting colliding nested CSV headers should raise an error ✔✔✔ setting the header that ends in a dot should error ✔✔ setting the header that starts in a dot should error ✔ setting the header that contains multiple consecutive dots should error ✔✔ setting the header using an empty file should return EOF ✔✔ - setting the header with column specs already set should replace the existing column specs 2019-06-09T13:37:22.621+0000 using fields: extraHeader1,extraHeader2,extraHeader3 + setting the header with column specs already set should replace the existing column specs 2020-07-11T20:07:57.480+0000 using fields: extraHeader1,extraHeader2,extraHeader3 ✔✔✔ - plain CSV input file sources should be parsed correctly and subsequent imports should parse correctly ✔2019-06-09T13:37:22.622+0000 got line: [1 2 3] -2019-06-09T13:37:22.622+0000 got line: [3 5.4 string] -2019-06-09T13:37:22.622+0000 got line: [5 6 6] + plain CSV input file sources should be parsed correctly and subsequent imports should parse correctly ✔2020-07-11T20:07:57.481+0000 got line: [1 2 3] +2020-07-11T20:07:57.481+0000 got line: [3 5.4 string] +2020-07-11T20:07:57.481+0000 got line: [5 6 6] ✔✔✔ @@ -1137,7 +1181,7 @@ === RUN TestCSVConvert With a CSV input reader - calling convert on a CSVConverter should return the expected BSON document 2019-06-09T13:37:22.622+0000 got line: [a b c] + calling convert on a CSVConverter should return the expected BSON document 2020-07-11T20:07:57.481+0000 got line: [a b c] ✔✔ @@ -1149,64 +1193,64 @@ With a JSON array input reader an error should be thrown if a plain JSON document is supplied ✔ reading a JSON object that has no opening bracket should error out ✔ - JSON arrays that do not end with a closing bracket should error out ✔2019-06-09T13:37:22.623+0000 got line: [{a ae}] -2019-06-09T13:37:22.623+0000 got extended line: bson.D{bson.DocElem{Name:"a", Value:"ae"}} + JSON arrays that do not end with a closing bracket should error out ✔2020-07-11T20:07:57.481+0000 got line: [{a ae}] +2020-07-11T20:07:57.481+0000 got extended line: bson.D{bson.DocElem{Name:"a", Value:"ae"}} ✔ an error should be thrown if a plain JSON file is supplied ✔✔ - array JSON input file sources should be parsed correctly and subsequent imports should parse correctly ✔2019-06-09T13:37:22.625+0000 got line: [{a 1.2} {b a} {c 0.4}] -2019-06-09T13:37:22.625+0000 got extended line: bson.D{bson.DocElem{Name:"a", Value:1.2}, bson.DocElem{Name:"b", Value:"a"}, bson.DocElem{Name:"c", Value:0.4}} -2019-06-09T13:37:22.625+0000 got line: [{a 2.4} {b string} {c 52.9}] -2019-06-09T13:37:22.625+0000 got extended line: bson.D{bson.DocElem{Name:"a", Value:2.4}, bson.DocElem{Name:"b", Value:"string"}, bson.DocElem{Name:"c", Value:52.9}} -2019-06-09T13:37:22.625+0000 got line: [{a 3} {b string} {c 52}] -2019-06-09T13:37:22.625+0000 got extended line: bson.D{bson.DocElem{Name:"a", Value:3}, bson.DocElem{Name:"b", Value:"string"}, bson.DocElem{Name:"c", Value:52}} -2019-06-09T13:37:22.625+0000 got line: [{a 4} {b string} {c 52}] -2019-06-09T13:37:22.625+0000 got extended line: bson.D{bson.DocElem{Name:"a", Value:4}, bson.DocElem{Name:"b", Value:"string"}, bson.DocElem{Name:"c", Value:52}} -2019-06-09T13:37:22.625+0000 got line: [{a 5} {b string} {c 52}] -2019-06-09T13:37:22.625+0000 got extended line: bson.D{bson.DocElem{Name:"a", Value:5}, bson.DocElem{Name:"b", Value:"string"}, bson.DocElem{Name:"c", Value:52}} -2019-06-09T13:37:22.625+0000 got line: [{a 6} {b string} {c 52}] -2019-06-09T13:37:22.625+0000 got extended line: bson.D{bson.DocElem{Name:"a", Value:6}, bson.DocElem{Name:"b", Value:"string"}, bson.DocElem{Name:"c", Value:52}} -2019-06-09T13:37:22.625+0000 got line: [{a 7} {b string} {c 52}] -2019-06-09T13:37:22.625+0000 got extended line: bson.D{bson.DocElem{Name:"a", Value:7}, bson.DocElem{Name:"b", Value:"string"}, bson.DocElem{Name:"c", Value:52}} -2019-06-09T13:37:22.625+0000 got line: [{a 8} {b string} {c 52}] -2019-06-09T13:37:22.625+0000 got extended line: bson.D{bson.DocElem{Name:"a", Value:8}, bson.DocElem{Name:"b", Value:"string"}, bson.DocElem{Name:"c", Value:52}} -2019-06-09T13:37:22.625+0000 got line: [{a 9} {b string} {c 52}] -2019-06-09T13:37:22.625+0000 got extended line: bson.D{bson.DocElem{Name:"a", Value:9}, bson.DocElem{Name:"b", Value:"string"}, bson.DocElem{Name:"c", Value:52}} -2019-06-09T13:37:22.625+0000 got line: [{a 10} {b string} {c 52}] -2019-06-09T13:37:22.625+0000 got extended line: bson.D{bson.DocElem{Name:"a", Value:10}, bson.DocElem{Name:"b", Value:"string"}, bson.DocElem{Name:"c", Value:52}} -2019-06-09T13:37:22.625+0000 got line: [{a 11} {b string} {c 52}] -2019-06-09T13:37:22.625+0000 got extended line: bson.D{bson.DocElem{Name:"a", Value:11}, bson.DocElem{Name:"b", Value:"string"}, bson.DocElem{Name:"c", Value:52}} -2019-06-09T13:37:22.625+0000 got line: [{a 12} {b string} {c 52}] -2019-06-09T13:37:22.625+0000 got extended line: bson.D{bson.DocElem{Name:"a", Value:12}, bson.DocElem{Name:"b", Value:"string"}, bson.DocElem{Name:"c", Value:52}} -2019-06-09T13:37:22.625+0000 got line: [{a 13} {b string} {c 52}] -2019-06-09T13:37:22.625+0000 got extended line: bson.D{bson.DocElem{Name:"a", Value:13}, bson.DocElem{Name:"b", Value:"string"}, bson.DocElem{Name:"c", Value:52}} -2019-06-09T13:37:22.625+0000 got line: [{a 14} {b string} {c 52}] -2019-06-09T13:37:22.625+0000 got extended line: bson.D{bson.DocElem{Name:"a", Value:14}, bson.DocElem{Name:"b", Value:"string"}, bson.DocElem{Name:"c", Value:52}} -2019-06-09T13:37:22.625+0000 got line: [{a 15} {b string} {c 52}] -2019-06-09T13:37:22.625+0000 got extended line: bson.D{bson.DocElem{Name:"a", Value:15}, bson.DocElem{Name:"b", Value:"string"}, bson.DocElem{Name:"c", Value:52}} -2019-06-09T13:37:22.625+0000 got line: [{a 16} {b string} {c 52}] -2019-06-09T13:37:22.625+0000 got extended line: bson.D{bson.DocElem{Name:"a", Value:16}, bson.DocElem{Name:"b", Value:"string"}, bson.DocElem{Name:"c", Value:52}} -2019-06-09T13:37:22.625+0000 got line: [{a 17} {b string} {c 52}] -2019-06-09T13:37:22.625+0000 got extended line: bson.D{bson.DocElem{Name:"a", Value:17}, bson.DocElem{Name:"b", Value:"string"}, bson.DocElem{Name:"c", Value:52}} -2019-06-09T13:37:22.625+0000 got line: [{a 18} {b string} {c 52}] -2019-06-09T13:37:22.625+0000 got extended line: bson.D{bson.DocElem{Name:"a", Value:18}, bson.DocElem{Name:"b", Value:"string"}, bson.DocElem{Name:"c", Value:52}} -2019-06-09T13:37:22.625+0000 got line: [{a 29} {b string} {c 52}] -2019-06-09T13:37:22.625+0000 got extended line: bson.D{bson.DocElem{Name:"a", Value:29}, bson.DocElem{Name:"b", Value:"string"}, bson.DocElem{Name:"c", Value:52}} -2019-06-09T13:37:22.625+0000 got line: [{a 20} {b string} {c 52}] -2019-06-09T13:37:22.625+0000 got extended line: bson.D{bson.DocElem{Name:"a", Value:20}, bson.DocElem{Name:"b", Value:"string"}, bson.DocElem{Name:"c", Value:52}} -2019-06-09T13:37:22.625+0000 got line: [{a 21} {b string} {c 52}] -2019-06-09T13:37:22.625+0000 got extended line: bson.D{bson.DocElem{Name:"a", Value:21}, bson.DocElem{Name:"b", Value:"string"}, bson.DocElem{Name:"c", Value:52}} -2019-06-09T13:37:22.625+0000 got line: [{a 22} {b string} {c 52}] -2019-06-09T13:37:22.625+0000 got extended line: bson.D{bson.DocElem{Name:"a", Value:22}, bson.DocElem{Name:"b", Value:"string"}, bson.DocElem{Name:"c", Value:52}} -2019-06-09T13:37:22.625+0000 got line: [{a 23} {b string} {c 52}] -2019-06-09T13:37:22.625+0000 got extended line: bson.D{bson.DocElem{Name:"a", Value:23}, bson.DocElem{Name:"b", Value:"string"}, bson.DocElem{Name:"c", Value:52}} -2019-06-09T13:37:22.625+0000 got line: [{a 24} {b string} {c 52}] -2019-06-09T13:37:22.625+0000 got extended line: bson.D{bson.DocElem{Name:"a", Value:24}, bson.DocElem{Name:"b", Value:"string"}, bson.DocElem{Name:"c", Value:52}} -2019-06-09T13:37:22.626+0000 got line: [{a 25} {b string} {c 52}] -2019-06-09T13:37:22.626+0000 got extended line: bson.D{bson.DocElem{Name:"a", Value:25}, bson.DocElem{Name:"b", Value:"string"}, bson.DocElem{Name:"c", Value:52}} -2019-06-09T13:37:22.626+0000 got line: [{a 25} {b string} {c 52}] -2019-06-09T13:37:22.626+0000 got extended line: bson.D{bson.DocElem{Name:"a", Value:25}, bson.DocElem{Name:"b", Value:"string"}, bson.DocElem{Name:"c", Value:52}} -2019-06-09T13:37:22.626+0000 got line: [{a 27} {b value} {c 65}] -2019-06-09T13:37:22.626+0000 got extended line: bson.D{bson.DocElem{Name:"a", Value:27}, bson.DocElem{Name:"b", Value:"value"}, bson.DocElem{Name:"c", Value:65}} + array JSON input file sources should be parsed correctly and subsequent imports should parse correctly ✔2020-07-11T20:07:57.482+0000 got line: [{a 1.2} {b a} {c 0.4}] +2020-07-11T20:07:57.482+0000 got extended line: bson.D{bson.DocElem{Name:"a", Value:1.2}, bson.DocElem{Name:"b", Value:"a"}, bson.DocElem{Name:"c", Value:0.4}} +2020-07-11T20:07:57.482+0000 got line: [{a 2.4} {b string} {c 52.9}] +2020-07-11T20:07:57.482+0000 got extended line: bson.D{bson.DocElem{Name:"a", Value:2.4}, bson.DocElem{Name:"b", Value:"string"}, bson.DocElem{Name:"c", Value:52.9}} +2020-07-11T20:07:57.482+0000 got line: [{a 3} {b string} {c 52}] +2020-07-11T20:07:57.482+0000 got extended line: bson.D{bson.DocElem{Name:"a", Value:3}, bson.DocElem{Name:"b", Value:"string"}, bson.DocElem{Name:"c", Value:52}} +2020-07-11T20:07:57.482+0000 got line: [{a 4} {b string} {c 52}] +2020-07-11T20:07:57.482+0000 got extended line: bson.D{bson.DocElem{Name:"a", Value:4}, bson.DocElem{Name:"b", Value:"string"}, bson.DocElem{Name:"c", Value:52}} +2020-07-11T20:07:57.482+0000 got line: [{a 5} {b string} {c 52}] +2020-07-11T20:07:57.482+0000 got extended line: bson.D{bson.DocElem{Name:"a", Value:5}, bson.DocElem{Name:"b", Value:"string"}, bson.DocElem{Name:"c", Value:52}} +2020-07-11T20:07:57.482+0000 got line: [{a 6} {b string} {c 52}] +2020-07-11T20:07:57.482+0000 got extended line: bson.D{bson.DocElem{Name:"a", Value:6}, bson.DocElem{Name:"b", Value:"string"}, bson.DocElem{Name:"c", Value:52}} +2020-07-11T20:07:57.482+0000 got line: [{a 7} {b string} {c 52}] +2020-07-11T20:07:57.482+0000 got extended line: bson.D{bson.DocElem{Name:"a", Value:7}, bson.DocElem{Name:"b", Value:"string"}, bson.DocElem{Name:"c", Value:52}} +2020-07-11T20:07:57.482+0000 got line: [{a 8} {b string} {c 52}] +2020-07-11T20:07:57.482+0000 got extended line: bson.D{bson.DocElem{Name:"a", Value:8}, bson.DocElem{Name:"b", Value:"string"}, bson.DocElem{Name:"c", Value:52}} +2020-07-11T20:07:57.482+0000 got line: [{a 9} {b string} {c 52}] +2020-07-11T20:07:57.482+0000 got extended line: bson.D{bson.DocElem{Name:"a", Value:9}, bson.DocElem{Name:"b", Value:"string"}, bson.DocElem{Name:"c", Value:52}} +2020-07-11T20:07:57.482+0000 got line: [{a 10} {b string} {c 52}] +2020-07-11T20:07:57.482+0000 got extended line: bson.D{bson.DocElem{Name:"a", Value:10}, bson.DocElem{Name:"b", Value:"string"}, bson.DocElem{Name:"c", Value:52}} +2020-07-11T20:07:57.482+0000 got line: [{a 11} {b string} {c 52}] +2020-07-11T20:07:57.482+0000 got extended line: bson.D{bson.DocElem{Name:"a", Value:11}, bson.DocElem{Name:"b", Value:"string"}, bson.DocElem{Name:"c", Value:52}} +2020-07-11T20:07:57.482+0000 got line: [{a 12} {b string} {c 52}] +2020-07-11T20:07:57.482+0000 got extended line: bson.D{bson.DocElem{Name:"a", Value:12}, bson.DocElem{Name:"b", Value:"string"}, bson.DocElem{Name:"c", Value:52}} +2020-07-11T20:07:57.482+0000 got line: [{a 13} {b string} {c 52}] +2020-07-11T20:07:57.482+0000 got extended line: bson.D{bson.DocElem{Name:"a", Value:13}, bson.DocElem{Name:"b", Value:"string"}, bson.DocElem{Name:"c", Value:52}} +2020-07-11T20:07:57.482+0000 got line: [{a 14} {b string} {c 52}] +2020-07-11T20:07:57.482+0000 got extended line: bson.D{bson.DocElem{Name:"a", Value:14}, bson.DocElem{Name:"b", Value:"string"}, bson.DocElem{Name:"c", Value:52}} +2020-07-11T20:07:57.482+0000 got line: [{a 15} {b string} {c 52}] +2020-07-11T20:07:57.482+0000 got extended line: bson.D{bson.DocElem{Name:"a", Value:15}, bson.DocElem{Name:"b", Value:"string"}, bson.DocElem{Name:"c", Value:52}} +2020-07-11T20:07:57.482+0000 got line: [{a 16} {b string} {c 52}] +2020-07-11T20:07:57.482+0000 got extended line: bson.D{bson.DocElem{Name:"a", Value:16}, bson.DocElem{Name:"b", Value:"string"}, bson.DocElem{Name:"c", Value:52}} +2020-07-11T20:07:57.482+0000 got line: [{a 17} {b string} {c 52}] +2020-07-11T20:07:57.482+0000 got extended line: bson.D{bson.DocElem{Name:"a", Value:17}, bson.DocElem{Name:"b", Value:"string"}, bson.DocElem{Name:"c", Value:52}} +2020-07-11T20:07:57.482+0000 got line: [{a 18} {b string} {c 52}] +2020-07-11T20:07:57.482+0000 got extended line: bson.D{bson.DocElem{Name:"a", Value:18}, bson.DocElem{Name:"b", Value:"string"}, bson.DocElem{Name:"c", Value:52}} +2020-07-11T20:07:57.482+0000 got line: [{a 29} {b string} {c 52}] +2020-07-11T20:07:57.482+0000 got extended line: bson.D{bson.DocElem{Name:"a", Value:29}, bson.DocElem{Name:"b", Value:"string"}, bson.DocElem{Name:"c", Value:52}} +2020-07-11T20:07:57.482+0000 got line: [{a 20} {b string} {c 52}] +2020-07-11T20:07:57.482+0000 got extended line: bson.D{bson.DocElem{Name:"a", Value:20}, bson.DocElem{Name:"b", Value:"string"}, bson.DocElem{Name:"c", Value:52}} +2020-07-11T20:07:57.482+0000 got line: [{a 21} {b string} {c 52}] +2020-07-11T20:07:57.482+0000 got extended line: bson.D{bson.DocElem{Name:"a", Value:21}, bson.DocElem{Name:"b", Value:"string"}, bson.DocElem{Name:"c", Value:52}} +2020-07-11T20:07:57.482+0000 got line: [{a 22} {b string} {c 52}] +2020-07-11T20:07:57.482+0000 got extended line: bson.D{bson.DocElem{Name:"a", Value:22}, bson.DocElem{Name:"b", Value:"string"}, bson.DocElem{Name:"c", Value:52}} +2020-07-11T20:07:57.482+0000 got line: [{a 23} {b string} {c 52}] +2020-07-11T20:07:57.482+0000 got extended line: bson.D{bson.DocElem{Name:"a", Value:23}, bson.DocElem{Name:"b", Value:"string"}, bson.DocElem{Name:"c", Value:52}} +2020-07-11T20:07:57.482+0000 got line: [{a 24} {b string} {c 52}] +2020-07-11T20:07:57.482+0000 got extended line: bson.D{bson.DocElem{Name:"a", Value:24}, bson.DocElem{Name:"b", Value:"string"}, bson.DocElem{Name:"c", Value:52}} +2020-07-11T20:07:57.482+0000 got line: [{a 25} {b string} {c 52}] +2020-07-11T20:07:57.482+0000 got extended line: bson.D{bson.DocElem{Name:"a", Value:25}, bson.DocElem{Name:"b", Value:"string"}, bson.DocElem{Name:"c", Value:52}} +2020-07-11T20:07:57.482+0000 got line: [{a 25} {b string} {c 52}] +2020-07-11T20:07:57.482+0000 got extended line: bson.D{bson.DocElem{Name:"a", Value:25}, bson.DocElem{Name:"b", Value:"string"}, bson.DocElem{Name:"c", Value:52}} +2020-07-11T20:07:57.482+0000 got line: [{a 27} {b value} {c 65}] +2020-07-11T20:07:57.482+0000 got extended line: bson.D{bson.DocElem{Name:"a", Value:27}, bson.DocElem{Name:"b", Value:"value"}, bson.DocElem{Name:"c", Value:65}} ✔✔✔ @@ -1216,35 +1260,35 @@ === RUN TestJSONPlainStreamDocument With a plain JSON input reader - string valued JSON documents should be imported properly 2019-06-09T13:37:22.626+0000 got line: [{a ae}] -2019-06-09T13:37:22.626+0000 got extended line: bson.D{bson.DocElem{Name:"a", Value:"ae"}} + string valued JSON documents should be imported properly 2020-07-11T20:07:57.483+0000 got line: [{a ae}] +2020-07-11T20:07:57.483+0000 got extended line: bson.D{bson.DocElem{Name:"a", Value:"ae"}} ✔✔ - several string valued JSON documents should be imported properly 2019-06-09T13:37:22.627+0000 got line: [{a ae}] -2019-06-09T13:37:22.627+0000 got extended line: bson.D{bson.DocElem{Name:"a", Value:"ae"}} -2019-06-09T13:37:22.627+0000 got line: [{b dc}] -2019-06-09T13:37:22.627+0000 got extended line: bson.D{bson.DocElem{Name:"b", Value:"dc"}} + several string valued JSON documents should be imported properly 2020-07-11T20:07:57.483+0000 got line: [{a ae}] +2020-07-11T20:07:57.483+0000 got extended line: bson.D{bson.DocElem{Name:"a", Value:"ae"}} +2020-07-11T20:07:57.483+0000 got line: [{b dc}] +2020-07-11T20:07:57.483+0000 got extended line: bson.D{bson.DocElem{Name:"b", Value:"dc"}} ✔✔✔ - number valued JSON documents should be imported properly 2019-06-09T13:37:22.628+0000 got line: [{a ae} {b 2}] -2019-06-09T13:37:22.628+0000 got extended line: bson.D{bson.DocElem{Name:"a", Value:"ae"}, bson.DocElem{Name:"b", Value:2}} + number valued JSON documents should be imported properly 2020-07-11T20:07:57.483+0000 got line: [{a ae} {b 2}] +2020-07-11T20:07:57.483+0000 got extended line: bson.D{bson.DocElem{Name:"a", Value:"ae"}, bson.DocElem{Name:"b", Value:2}} ✔✔ JSON arrays should return an error ✔ - plain JSON input file sources should be parsed correctly and subsequent imports should parse correctly ✔2019-06-09T13:37:22.629+0000 got line: [{a 4} {b string value} {c 1}] -2019-06-09T13:37:22.629+0000 got extended line: bson.D{bson.DocElem{Name:"a", Value:4}, bson.DocElem{Name:"b", Value:"string value"}, bson.DocElem{Name:"c", Value:1}} -2019-06-09T13:37:22.629+0000 got line: [{a 5} {b string value} {c 2}] -2019-06-09T13:37:22.629+0000 got extended line: bson.D{bson.DocElem{Name:"a", Value:5}, bson.DocElem{Name:"b", Value:"string value"}, bson.DocElem{Name:"c", Value:2}} -2019-06-09T13:37:22.629+0000 got line: [{a 6} {b string value} {c 3}] -2019-06-09T13:37:22.629+0000 got extended line: bson.D{bson.DocElem{Name:"a", Value:6}, bson.DocElem{Name:"b", Value:"string value"}, bson.DocElem{Name:"c", Value:3}} + plain JSON input file sources should be parsed correctly and subsequent imports should parse correctly ✔2020-07-11T20:07:57.484+0000 got line: [{a 4} {b string value} {c 1}] +2020-07-11T20:07:57.484+0000 got extended line: bson.D{bson.DocElem{Name:"a", Value:4}, bson.DocElem{Name:"b", Value:"string value"}, bson.DocElem{Name:"c", Value:1}} +2020-07-11T20:07:57.484+0000 got line: [{a 5} {b string value} {c 2}] +2020-07-11T20:07:57.484+0000 got extended line: bson.D{bson.DocElem{Name:"a", Value:5}, bson.DocElem{Name:"b", Value:"string value"}, bson.DocElem{Name:"c", Value:2}} +2020-07-11T20:07:57.484+0000 got line: [{a 6} {b string value} {c 3}] +2020-07-11T20:07:57.484+0000 got extended line: bson.D{bson.DocElem{Name:"a", Value:6}, bson.DocElem{Name:"b", Value:"string value"}, bson.DocElem{Name:"c", Value:3}} ✔✔✔✔✔✔✔✔✔✔✔✔✔✔✔✔✔✔✔ - reading JSON that starts with a UTF-8 BOM should not error ✔2019-06-09T13:37:22.630+0000 got line: [{a 1} {b 2} {c 3}] -2019-06-09T13:37:22.630+0000 got extended line: bson.D{bson.DocElem{Name:"a", Value:1}, bson.DocElem{Name:"b", Value:2}, bson.DocElem{Name:"c", Value:3}} -2019-06-09T13:37:22.630+0000 got line: [{a 4} {b 5} {c 6}] -2019-06-09T13:37:22.630+0000 got extended line: bson.D{bson.DocElem{Name:"a", Value:4}, bson.DocElem{Name:"b", Value:5}, bson.DocElem{Name:"c", Value:6}} + reading JSON that starts with a UTF-8 BOM should not error ✔2020-07-11T20:07:57.484+0000 got line: [{a 1} {b 2} {c 3}] +2020-07-11T20:07:57.484+0000 got extended line: bson.D{bson.DocElem{Name:"a", Value:1}, bson.DocElem{Name:"b", Value:2}, bson.DocElem{Name:"c", Value:3}} +2020-07-11T20:07:57.484+0000 got line: [{a 4} {b 5} {c 6}] +2020-07-11T20:07:57.484+0000 got extended line: bson.D{bson.DocElem{Name:"a", Value:4}, bson.DocElem{Name:"b", Value:5}, bson.DocElem{Name:"c", Value:6}} ✔✔✔✔✔✔✔✔✔✔✔✔✔ 198 total assertions ---- PASS: TestJSONPlainStreamDocument (0.01s) +--- PASS: TestJSONPlainStreamDocument (0.00s) === RUN TestReadJSONArraySeparator With an array JSON input reader @@ -1253,24 +1297,24 @@ reading an opening JSON array separator without a corresponding closing bracket should error out ✔✔ reading an opening JSON array separator with an ending closing bracket should return EOF ✔✔ reading an opening JSON array separator, an ending closing bracket but then additional characters after that, should error ✔✔ - reading invalid JSON objects between valid objects should error out ✔2019-06-09T13:37:22.633+0000 got line: [{a 3}] -2019-06-09T13:37:22.633+0000 got extended line: bson.D{bson.DocElem{Name:"a", Value:3}} + reading invalid JSON objects between valid objects should error out ✔2020-07-11T20:07:57.485+0000 got line: [{a 3}] +2020-07-11T20:07:57.485+0000 got extended line: bson.D{bson.DocElem{Name:"a", Value:3}} ✔ - reading invalid JSON objects after valid objects but between valid objects should error out ✔✔ + reading invalid JSON objects after valid objects but between valid objects should error out ✔2020-07-11T20:07:57.485+0000 got line: [{a 3}] +2020-07-11T20:07:57.486+0000 got extended line: bson.D{bson.DocElem{Name:"a", Value:3}} +2020-07-11T20:07:57.486+0000 got line: [{a 3}] +✔2020-07-11T20:07:57.486+0000 got extended line: bson.D{bson.DocElem{Name:"a", Value:3}} + 211 total assertions --- PASS: TestReadJSONArraySeparator (0.00s) === RUN TestJSONConvert -2019-06-09T13:37:22.634+0000 got line: [{a 3}] -2019-06-09T13:37:22.634+0000 got extended line: bson.D{bson.DocElem{Name:"a", Value:3}} -2019-06-09T13:37:22.634+0000 got line: [{a 3}] - - With a JSON input reader 2019-06-09T13:37:22.634+0000 got extended line: bson.D{bson.DocElem{Name:"a", Value:3}} - calling convert on a JSONConverter should return the expected BSON document 2019-06-09T13:37:22.634+0000 got line: [{field1 a} {field2 b} {field3 c}] -2019-06-09T13:37:22.634+0000 got extended line: bson.D{bson.DocElem{Name:"field1", Value:"a"}, bson.DocElem{Name:"field2", Value:"b"}, bson.DocElem{Name:"field3", Value:"c"}} + With a JSON input reader + calling convert on a JSONConverter should return the expected BSON document 2020-07-11T20:07:57.486+0000 got line: [{field1 a} {field2 b} {field3 c}] +2020-07-11T20:07:57.486+0000 got extended line: bson.D{bson.DocElem{Name:"field1", Value:"a"}, bson.DocElem{Name:"field2", Value:"b"}, bson.DocElem{Name:"field3", Value:"c"}} ✔✔ @@ -1303,86 +1347,86 @@ === RUN TestMongoImportValidateSettings Given a mongoimport instance for validation, - an error should be thrown if no collection is given ✔2019-06-09T13:37:22.636+0000 using 0 decoding workers -2019-06-09T13:37:22.636+0000 using 1 insert workers -2019-06-09T13:37:22.636+0000 no collection specified -2019-06-09T13:37:22.636+0000 using filename '' as collection + an error should be thrown if no collection is given ✔2020-07-11T20:07:57.487+0000 using 0 decoding workers +2020-07-11T20:07:57.487+0000 using 1 insert workers +2020-07-11T20:07:57.487+0000 no collection specified +2020-07-11T20:07:57.487+0000 using filename '' as collection ✔ an error should be thrown if an invalid type is given ✔✔ an error should be thrown if neither --headerline is supplied nor --fields/--fieldFile ✔✔ - no error should be thrown if --headerline is not supplied but --fields is supplied ✔2019-06-09T13:37:22.637+0000 using 0 decoding workers -2019-06-09T13:37:22.637+0000 using 1 insert workers + no error should be thrown if --headerline is not supplied but --fields is supplied ✔2020-07-11T20:07:57.487+0000 using 0 decoding workers +2020-07-11T20:07:57.487+0000 using 1 insert workers ✔ - no error should be thrown if no input type is supplied ✔2019-06-09T13:37:22.637+0000 using 0 decoding workers -2019-06-09T13:37:22.637+0000 using 1 insert workers + no error should be thrown if no input type is supplied ✔2020-07-11T20:07:57.487+0000 using 0 decoding workers +2020-07-11T20:07:57.487+0000 using 1 insert workers ✔ - no error should be thrown if there's just one positional argument ✔2019-06-09T13:37:22.637+0000 using 0 decoding workers -2019-06-09T13:37:22.637+0000 using 1 insert workers + no error should be thrown if there's just one positional argument ✔2020-07-11T20:07:57.487+0000 using 0 decoding workers +2020-07-11T20:07:57.487+0000 using 1 insert workers ✔ - an error should be thrown if --file is used with one positional argument ✔2019-06-09T13:37:22.638+0000 using 0 decoding workers -2019-06-09T13:37:22.638+0000 using 1 insert workers + an error should be thrown if --file is used with one positional argument ✔2020-07-11T20:07:57.487+0000 using 0 decoding workers +2020-07-11T20:07:57.487+0000 using 1 insert workers ✔ - an error should be thrown if there's more than one positional argument ✔2019-06-09T13:37:22.638+0000 using 0 decoding workers -2019-06-09T13:37:22.638+0000 using 1 insert workers + an error should be thrown if there's more than one positional argument ✔2020-07-11T20:07:57.488+0000 using 0 decoding workers +2020-07-11T20:07:57.488+0000 using 1 insert workers ✔ an error should be thrown if --headerline is used with JSON input ✔✔ an error should be thrown if --fields is used with JSON input ✔✔✔ an error should be thrown if --fieldFile is used with JSON input ✔✔✔ an error should be thrown if --ignoreBlanks is used with JSON input ✔✔ - no error should be thrown if --headerline is not supplied but --fieldFile is supplied ✔2019-06-09T13:37:22.640+0000 using 0 decoding workers -2019-06-09T13:37:22.640+0000 using 1 insert workers + no error should be thrown if --headerline is not supplied but --fieldFile is supplied ✔2020-07-11T20:07:57.488+0000 using 0 decoding workers +2020-07-11T20:07:57.488+0000 using 1 insert workers ✔ an error should be thrown if --mode is incorrect ✔✔ an error should be thrown if a field in the --upsertFields argument starts with a dollar sign ✔✔✔ - no error should be thrown if --upsertFields is supplied without --mode=xxx ✔2019-06-09T13:37:22.641+0000 using upsert fields: [a b c] -2019-06-09T13:37:22.641+0000 using 0 decoding workers -2019-06-09T13:37:22.641+0000 using 1 insert workers + no error should be thrown if --upsertFields is supplied without --mode=xxx ✔2020-07-11T20:07:57.489+0000 using upsert fields: [a b c] +2020-07-11T20:07:57.489+0000 using 0 decoding workers +2020-07-11T20:07:57.489+0000 using 1 insert workers ✔✔ an error should be thrown if --upsertFields is used with --mode=insert ✔✔ - if --mode=upsert is used without --upsertFields, _id should be set as the upsert field ✔2019-06-09T13:37:22.641+0000 using upsert fields: [_id] -2019-06-09T13:37:22.642+0000 using 0 decoding workers -2019-06-09T13:37:22.642+0000 using 1 insert workers -✔✔ - no error should be thrown if all fields in the --upsertFields argument are valid ✔2019-06-09T13:37:22.642+0000 using upsert fields: [a b c] -2019-06-09T13:37:22.642+0000 using 0 decoding workers -2019-06-09T13:37:22.642+0000 using 1 insert workers -✔ - no error should be thrown if --fields is supplied with CSV import ✔2019-06-09T13:37:22.642+0000 using 0 decoding workers -2019-06-09T13:37:22.642+0000 using 1 insert workers -✔ - an error should be thrown if an empty --fields is supplied with CSV import ✔2019-06-09T13:37:22.643+0000 using 0 decoding workers -2019-06-09T13:37:22.643+0000 using 1 insert workers -✔ - no error should be thrown if --fieldFile is supplied with CSV import ✔2019-06-09T13:37:22.643+0000 using 0 decoding workers -2019-06-09T13:37:22.643+0000 using 1 insert workers -✔ - an error should be thrown if no collection and no file is supplied ✔2019-06-09T13:37:22.643+0000 using 0 decoding workers -2019-06-09T13:37:22.643+0000 using 1 insert workers -2019-06-09T13:37:22.643+0000 no collection specified -2019-06-09T13:37:22.643+0000 using filename '' as collection -✔ - no error should be thrown if --file is used (without -c) supplied - the file name should be used as the collection name ✔2019-06-09T13:37:22.644+0000 using 0 decoding workers -2019-06-09T13:37:22.644+0000 using 1 insert workers -2019-06-09T13:37:22.644+0000 no collection specified -2019-06-09T13:37:22.644+0000 using filename 'input' as collection -✔✔ - with no collection name and a file name the base name of the file (without the extension) should be used as the collection name ✔2019-06-09T13:37:22.644+0000 using 0 decoding workers -2019-06-09T13:37:22.644+0000 using 1 insert workers -2019-06-09T13:37:22.644+0000 no collection specified -2019-06-09T13:37:22.644+0000 using filename 'input' as collection + if --mode=upsert is used without --upsertFields, _id should be set as the upsert field ✔2020-07-11T20:07:57.489+0000 using upsert fields: [_id] +2020-07-11T20:07:57.489+0000 using 0 decoding workers +2020-07-11T20:07:57.489+0000 using 1 insert workers +✔✔ + no error should be thrown if all fields in the --upsertFields argument are valid ✔2020-07-11T20:07:57.489+0000 using upsert fields: [a b c] +2020-07-11T20:07:57.489+0000 using 0 decoding workers +2020-07-11T20:07:57.489+0000 using 1 insert workers +✔ + no error should be thrown if --fields is supplied with CSV import ✔2020-07-11T20:07:57.489+0000 using 0 decoding workers +2020-07-11T20:07:57.489+0000 using 1 insert workers +✔ + an error should be thrown if an empty --fields is supplied with CSV import ✔2020-07-11T20:07:57.489+0000 using 0 decoding workers +2020-07-11T20:07:57.489+0000 using 1 insert workers +✔ + no error should be thrown if --fieldFile is supplied with CSV import ✔2020-07-11T20:07:57.490+0000 using 0 decoding workers +2020-07-11T20:07:57.490+0000 using 1 insert workers +✔ + an error should be thrown if no collection and no file is supplied ✔2020-07-11T20:07:57.490+0000 using 0 decoding workers +2020-07-11T20:07:57.490+0000 using 1 insert workers +2020-07-11T20:07:57.490+0000 no collection specified +2020-07-11T20:07:57.490+0000 using filename '' as collection +✔ + no error should be thrown if --file is used (without -c) supplied - the file name should be used as the collection name ✔2020-07-11T20:07:57.490+0000 using 0 decoding workers +2020-07-11T20:07:57.490+0000 using 1 insert workers +2020-07-11T20:07:57.490+0000 no collection specified +2020-07-11T20:07:57.490+0000 using filename 'input' as collection +✔✔ + with no collection name and a file name the base name of the file (without the extension) should be used as the collection name ✔2020-07-11T20:07:57.490+0000 using 0 decoding workers +2020-07-11T20:07:57.490+0000 using 1 insert workers +2020-07-11T20:07:57.490+0000 no collection specified +2020-07-11T20:07:57.490+0000 using filename 'input' as collection ✔✔ 273 total assertions ---- PASS: TestMongoImportValidateSettings (0.01s) +--- PASS: TestMongoImportValidateSettings (0.00s) === RUN TestGetSourceReader Given a mongoimport instance, on calling getSourceReader an error should be thrown if the given file referenced by the reader does not exist ✔✔ - no error should be thrown if the file exists ✔2019-06-09T13:37:22.645+0000 filesize: 934 bytes + no error should be thrown if the file exists ✔2020-07-11T20:07:57.490+0000 filesize: 934 bytes ✔ - no error should be thrown if stdin is used ✔2019-06-09T13:37:22.645+0000 reading from stdin + no error should be thrown if stdin is used ✔2020-07-11T20:07:57.490+0000 reading from stdin ✔ @@ -1392,26 +1436,26 @@ === RUN TestGetInputReader Given a io.Reader on calling getInputReader - should parse --fields using valid csv escaping ✔2019-06-09T13:37:22.645+0000 using fields: foo,bar + should parse --fields using valid csv escaping ✔2020-07-11T20:07:57.491+0000 using fields: foo,bar ✔ - should complain about non-escaped new lines in --fields ✔2019-06-09T13:37:22.646+0000 using fields: foo, + should complain about non-escaped new lines in --fields ✔2020-07-11T20:07:57.491+0000 using fields: foo, blah,bar ✔ - no error should be thrown if neither --fields nor --fieldFile is used ✔2019-06-09T13:37:22.646+0000 using fields: + no error should be thrown if neither --fields nor --fieldFile is used ✔2020-07-11T20:07:57.491+0000 using fields: ✔ - no error should be thrown if --fields is used ✔2019-06-09T13:37:22.646+0000 using fields: a,b,c + no error should be thrown if --fields is used ✔2020-07-11T20:07:57.491+0000 using fields: a,b,c ✔ - no error should be thrown if --fieldFile is used and it references a valid file ✔2019-06-09T13:37:22.647+0000 using fields: 1,2,3,3,5.4,string,5,6,6 + no error should be thrown if --fieldFile is used and it references a valid file ✔2020-07-11T20:07:57.491+0000 using fields: 1,2,3,3,5.4,string,5,6,6 ✔ an error should be thrown if --fieldFile is used and it references an invalid file ✔✔ - no error should be thrown for CSV import inputs ✔2019-06-09T13:37:22.647+0000 using fields: + no error should be thrown for CSV import inputs ✔2020-07-11T20:07:57.491+0000 using fields: ✔ - no error should be thrown for TSV import inputs ✔2019-06-09T13:37:22.647+0000 using fields: + no error should be thrown for TSV import inputs ✔2020-07-11T20:07:57.491+0000 using fields: ✔ - no error should be thrown for JSON import inputs ✔2019-06-09T13:37:22.648+0000 using fields: + no error should be thrown for JSON import inputs ✔2020-07-11T20:07:57.492+0000 using fields: ✔ an error should be thrown if --fieldFile fields are invalid ✔✔✔ - no error should be thrown if --fieldFile fields are valid ✔✔2019-06-09T13:37:22.648+0000 using fields: a,b,c + no error should be thrown if --fieldFile fields are valid ✔✔2020-07-11T20:07:57.492+0000 using fields: a,b,c ✔ @@ -1422,10 +1466,10 @@ --- SKIP: TestImportDocuments (0.00s) === RUN TestHiddenOptionsDefaults - With a new mongoimport with empty options 2019-06-09T13:37:22.649+0000 Setting num cpus to 10 + With a new mongoimport with empty options 2020-07-11T20:07:57.492+0000 Setting num cpus to 18 ✔ - Then parsing should fill args with expected defaults ✔2019-06-09T13:37:22.649+0000 using 10 decoding workers -2019-06-09T13:37:22.649+0000 using 1 insert workers + Then parsing should fill args with expected defaults ✔2020-07-11T20:07:57.492+0000 using 18 decoding workers +2020-07-11T20:07:57.492+0000 using 1 insert workers ✔✔✔ @@ -1434,15 +1478,15 @@ --- PASS: TestHiddenOptionsDefaults (0.00s) === RUN TestWriteConcernWithURIParsing - With an IngestOptions and ToolsOptions 2019-06-09T13:37:22.649+0000 Setting num cpus to 10 + With an IngestOptions and ToolsOptions 2020-07-11T20:07:57.492+0000 Setting num cpus to 18 Parsing with no value should leave write concern empty ✔✔ - and building write concern object, WMode should be majority 2019-06-09T13:37:22.650+0000 using write concern: w='majority', j=false, fsync=false, wtimeout=0 -✔✔2019-06-09T13:37:22.650+0000 Setting num cpus to 10 + and building write concern object, WMode should be majority 2020-07-11T20:07:57.493+0000 using write concern: w='majority', j=false, fsync=false, wtimeout=0 +✔✔2020-07-11T20:07:57.493+0000 Setting num cpus to 18 Parsing with no writeconcern in URI should not error ✔✔ - and parsing write concern, WMode should be majority 2019-06-09T13:37:22.650+0000 using write concern: w='majority', j=false, fsync=false, wtimeout=0 -✔✔✔2019-06-09T13:37:22.650+0000 Setting num cpus to 10 + and parsing write concern, WMode should be majority 2020-07-11T20:07:57.493+0000 using write concern: w='majority', j=false, fsync=false, wtimeout=0 +✔✔✔2020-07-11T20:07:57.493+0000 Setting num cpus to 18 Parsing with both writeconcern in URI and command line should error ✔✔ and parsing write concern, WMode should be majority ✔ @@ -1454,35 +1498,35 @@ === RUN TestTSVStreamDocument With a TSV input reader - integer valued strings should be converted tsv1 2019-06-09T13:37:22.651+0000 got line: [1 2 3e] + integer valued strings should be converted tsv1 2020-07-11T20:07:57.493+0000 got line: [1 2 3e] ✔✔ - valid TSV input file that starts with the UTF-8 BOM should not raise an error ✔2019-06-09T13:37:22.652+0000 got line: [1 2 3] + valid TSV input file that starts with the UTF-8 BOM should not raise an error ✔2020-07-11T20:07:57.493+0000 got line: [1 2 3] ✔✔ - integer valued strings should be converted tsv2 2019-06-09T13:37:22.653+0000 got line: [a b "cccc,cccc" d] + integer valued strings should be converted tsv2 2020-07-11T20:07:57.494+0000 got line: [a b "cccc,cccc" d] ✔✔ - extra columns should be prefixed with 'field' 2019-06-09T13:37:22.653+0000 got line: [1 2 3e may] + extra columns should be prefixed with 'field' 2020-07-11T20:07:57.494+0000 got line: [1 2 3e may] ✔✔ - mixed values should be parsed correctly 2019-06-09T13:37:22.654+0000 got line: [12 13.3 Inline 14] + mixed values should be parsed correctly 2020-07-11T20:07:57.494+0000 got line: [12 13.3 Inline 14] ✔✔ - calling StreamDocument() in succession for TSVs should return the correct next set of values 2019-06-09T13:37:22.655+0000 got line: [1 2 3] -2019-06-09T13:37:22.655+0000 got line: [4 5 6] + calling StreamDocument() in succession for TSVs should return the correct next set of values 2020-07-11T20:07:57.494+0000 got line: [1 2 3] +2020-07-11T20:07:57.494+0000 got line: [4 5 6] ✔✔✔✔✔✔✔✔✔✔✔✔✔ - calling StreamDocument() in succession for TSVs that contain quotes should return the correct next set of values 2019-06-09T13:37:22.656+0000 got line: [1 2 3] -2019-06-09T13:37:22.656+0000 got line: [4 " 6] + calling StreamDocument() in succession for TSVs that contain quotes should return the correct next set of values 2020-07-11T20:07:57.494+0000 got line: [1 2 3] +2020-07-11T20:07:57.495+0000 got line: [4 " 6] ✔✔✔ - plain TSV input file sources should be parsed correctly and subsequent imports should parse correctly ✔2019-06-09T13:37:22.656+0000 got line: [1 2 3] -2019-06-09T13:37:22.656+0000 got line: [3 4.6 5] -2019-06-09T13:37:22.656+0000 got line: [5 string 6] + plain TSV input file sources should be parsed correctly and subsequent imports should parse correctly ✔2020-07-11T20:07:57.495+0000 got line: [1 2 3] +2020-07-11T20:07:57.495+0000 got line: [3 4.6 5] +2020-07-11T20:07:57.495+0000 got line: [5 string 6] ✔✔✔ 351 total assertions ---- PASS: TestTSVStreamDocument (0.01s) +--- PASS: TestTSVStreamDocument (0.00s) === RUN TestTSVReadAndValidateHeader With a TSV input reader - setting the header should read the first line of the TSV 2019-06-09T13:37:22.657+0000 using fields: extraHeader1,extraHeader2,extraHeader3 + setting the header should read the first line of the TSV 2020-07-11T20:07:57.495+0000 using fields: extraHeader1,extraHeader2,extraHeader3 ✔✔ @@ -1492,7 +1536,7 @@ === RUN TestTSVConvert With a TSV input reader - calling convert on a TSVConverter should return the expected BSON document 2019-06-09T13:37:22.657+0000 got line: [a b c] + calling convert on a TSVConverter should return the expected BSON document 2020-07-11T20:07:57.495+0000 got line: [a b c] ✔✔ @@ -1610,15 +1654,15 @@ 494 total assertions ---- PASS: TestFieldParsers (0.01s) +--- PASS: TestFieldParsers (0.00s) PASS -ok _/build/mongo-tools-3.4.14/mongoimport 0.093s -go: disabling cache (/nonexistent/first-build/.cache/go-build) due to initialization failure: mkdir /nonexistent: permission denied +ok _/build/mongo-tools-3.4.14/mongoimport 0.030s +go: disabling cache (/nonexistent/second-build/.cache/go-build) due to initialization failure: mkdir /nonexistent: permission denied === RUN TestBasicOps --- SKIP: TestBasicOps (0.00s) PASS -ok _/build/mongo-tools-3.4.14/mongooplog 0.012s -go: disabling cache (/nonexistent/first-build/.cache/go-build) due to initialization failure: mkdir /nonexistent: permission denied +ok _/build/mongo-tools-3.4.14/mongooplog 0.003s +go: disabling cache (/nonexistent/second-build/.cache/go-build) due to initialization failure: mkdir /nonexistent: permission denied === RUN TestCreateAllIntents With a test MongoRestore @@ -1687,7 +1731,7 @@ 88 total assertions ---- PASS: TestCreateIntentsForCollection (0.01s) +--- PASS: TestCreateIntentsForCollection (0.00s) === RUN TestCollectionExists --- SKIP: TestCollectionExists (0.00s) === RUN TestGetDumpAuthVersion @@ -1705,7 +1749,7 @@ 100 total assertions ---- PASS: TestGetDumpAuthVersion (0.06s) +--- PASS: TestGetDumpAuthVersion (0.02s) === RUN TestMongorestoreShortArchive With a test MongoRestore @@ -1770,8 +1814,8 @@ --- PASS: TestWriteConcernWithURIParsing (0.00s) PASS -ok _/build/mongo-tools-3.4.14/mongorestore 0.107s -go: disabling cache (/nonexistent/first-build/.cache/go-build) due to initialization failure: mkdir /nonexistent: permission denied +ok _/build/mongo-tools-3.4.14/mongorestore 0.031s +go: disabling cache (/nonexistent/second-build/.cache/go-build) due to initialization failure: mkdir /nonexistent: permission denied === RUN TestStatLine StatsLine should accurately calculate opcounter diffs ✔✔✔✔✔✔✔✔✔✔✔✔✔✔✔✔ @@ -1801,10 +1845,10 @@ --- PASS: TestIsMongos (0.00s) PASS -ok _/build/mongo-tools-3.4.14/mongostat 0.018s -go: disabling cache (/nonexistent/first-build/.cache/go-build) due to initialization failure: mkdir /nonexistent: permission denied +ok _/build/mongo-tools-3.4.14/mongostat 0.004s +go: disabling cache (/nonexistent/second-build/.cache/go-build) due to initialization failure: mkdir /nonexistent: permission denied ? _/build/mongo-tools-3.4.14/mongotop [no test files] -go: disabling cache (/nonexistent/first-build/.cache/go-build) due to initialization failure: mkdir /nonexistent: permission denied +go: disabling cache (/nonexistent/second-build/.cache/go-build) due to initialization failure: mkdir /nonexistent: permission denied ? _/build/mongo-tools-3.4.14/common [no test files] make[1]: Leaving directory '/build/mongo-tools-3.4.14' create-stamp debian/debhelper-build-stamp @@ -1843,12 +1887,14 @@ dpkg-source --after-build . dpkg-buildpackage: info: binary-only upload (no source included) I: copying local configuration +I: user script /srv/workspace/pbuilder/36021/tmp/hooks/B01_cleanup starting +I: user script /srv/workspace/pbuilder/36021/tmp/hooks/B01_cleanup finished I: unmounting dev/ptmx filesystem I: unmounting dev/pts filesystem I: unmounting dev/shm filesystem I: unmounting proc filesystem I: unmounting sys filesystem I: cleaning the build env -I: removing directory /srv/workspace/pbuilder/31038 and its subdirectories -I: Current time: Sun Jun 9 01:40:10 -12 2019 -I: pbuilder-time-stamp: 1560087610 +I: removing directory /srv/workspace/pbuilder/36021 and its subdirectories +I: Current time: Sun Jul 12 10:08:24 +14 2020 +I: pbuilder-time-stamp: 1594498104