Diff of the two buildlogs: -- --- b1/build.log 2024-04-24 13:35:23.693593144 +0000 +++ b2/build.log 2024-04-24 13:37:30.232195106 +0000 @@ -1,6 +1,6 @@ I: pbuilder: network access will be disabled during build -I: Current time: Tue May 27 07:57:48 -12 2025 -I: pbuilder-time-stamp: 1748375868 +I: Current time: Thu Apr 25 03:35:27 +14 2024 +I: pbuilder-time-stamp: 1713965727 I: Building the build Environment I: extracting base tarball [/var/cache/pbuilder/trixie-reproducible-base.tgz] I: copying local configuration @@ -34,54 +34,86 @@ dpkg-source: info: applying fix-test-for-tape-5.patch I: Not using root during the build. I: Installing the build-deps -I: user script /srv/workspace/pbuilder/82281/tmp/hooks/D02_print_environment starting +I: user script /srv/workspace/pbuilder/52543/tmp/hooks/D01_modify_environment starting +debug: Running on ionos2-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 +'/bin/sh' -> '/bin/bash' +lrwxrwxrwx 1 root root 9 Apr 24 13:35 /bin/sh -> /bin/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/52543/tmp/hooks/D01_modify_environment finished +I: user script /srv/workspace/pbuilder/52543/tmp/hooks/D02_print_environment starting I: set - BUILDDIR='/build/reproducible-path' - BUILDUSERGECOS='first user,first room,first work-phone,first home-phone,first other' - BUILDUSERNAME='pbuilder1' - BUILD_ARCH='i386' - DEBIAN_FRONTEND='noninteractive' - DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all parallel=22 ' - DISTRIBUTION='trixie' - HOME='/root' - HOST_ARCH='i386' + BASH=/bin/sh + BASHOPTS=checkwinsize:cmdhist:complete_fullquote:extquote:force_fignore:globasciiranges:globskipdots:hostcomplete:interactive_comments:patsub_replacement:progcomp:promptvars:sourcepath + BASH_ALIASES=() + BASH_ARGC=() + BASH_ARGV=() + BASH_CMDS=() + BASH_LINENO=([0]="12" [1]="0") + BASH_LOADABLES_PATH=/usr/local/lib/bash:/usr/lib/bash:/opt/local/lib/bash:/usr/pkg/lib/bash:/opt/pkg/lib/bash:. + BASH_SOURCE=([0]="/tmp/hooks/D02_print_environment" [1]="/tmp/hooks/D02_print_environment") + BASH_VERSINFO=([0]="5" [1]="2" [2]="21" [3]="1" [4]="release" [5]="i686-pc-linux-gnu") + BASH_VERSION='5.2.21(1)-release' + BUILDDIR=/build/reproducible-path + BUILDUSERGECOS='second user,second room,second work-phone,second home-phone,second other' + BUILDUSERNAME=pbuilder2 + BUILD_ARCH=i386 + DEBIAN_FRONTEND=noninteractive + DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all parallel=10 ' + DIRSTACK=() + DISTRIBUTION=trixie + EUID=0 + FUNCNAME=([0]="Echo" [1]="main") + GROUPS=() + HOME=/root + HOSTNAME=i-capture-the-hostname + HOSTTYPE=i686 + HOST_ARCH=i386 IFS=' ' - INVOCATION_ID='bc9bd6f48e4d43cd83f1d07c7c60ae7b' - LANG='C' - LANGUAGE='en_US:en' - LC_ALL='C' - LD_LIBRARY_PATH='/usr/lib/libeatmydata' - LD_PRELOAD='libeatmydata.so' - MAIL='/var/mail/root' - OPTIND='1' - PATH='/usr/sbin:/usr/bin:/sbin:/bin:/usr/games' - PBCURRENTCOMMANDLINEOPERATION='build' - PBUILDER_OPERATION='build' - PBUILDER_PKGDATADIR='/usr/share/pbuilder' - PBUILDER_PKGLIBDIR='/usr/lib/pbuilder' - PBUILDER_SYSCONFDIR='/etc' - PPID='82281' - PS1='# ' - PS2='> ' + INVOCATION_ID=5d0b1cd69e394cc78276d31ad32371b1 + LANG=C + LANGUAGE=de_CH:de + LC_ALL=C + LD_LIBRARY_PATH=/usr/lib/libeatmydata + LD_PRELOAD=libeatmydata.so + MACHTYPE=i686-pc-linux-gnu + MAIL=/var/mail/root + OPTERR=1 + OPTIND=1 + OSTYPE=linux-gnu + PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path + PBCURRENTCOMMANDLINEOPERATION=build + PBUILDER_OPERATION=build + PBUILDER_PKGDATADIR=/usr/share/pbuilder + PBUILDER_PKGLIBDIR=/usr/lib/pbuilder + PBUILDER_SYSCONFDIR=/etc + PIPESTATUS=([0]="0") + POSIXLY_CORRECT=y + PPID=52543 PS4='+ ' - PWD='/' - SHELL='/bin/bash' - SHLVL='2' - SUDO_COMMAND='/usr/bin/timeout -k 18.1h 18h /usr/bin/ionice -c 3 /usr/bin/nice /usr/sbin/pbuilder --build --configfile /srv/reproducible-results/rbuild-debian/r-b-build.YDqKTT5Z/pbuilderrc_XVuI --distribution trixie --hookdir /etc/pbuilder/first-build-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/trixie-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/r-b-build.YDqKTT5Z/b1 --logfile b1/build.log node-proxyquire_2.1.3+~1.0.1+~1.0.2-12.dsc' - SUDO_GID='112' - SUDO_UID='107' - SUDO_USER='jenkins' - TERM='unknown' - TZ='/usr/share/zoneinfo/Etc/GMT+12' - USER='root' - _='/usr/bin/systemd-run' - http_proxy='http://213.165.73.152:3128' + PWD=/ + SHELL=/bin/bash + SHELLOPTS=braceexpand:errexit:hashall:interactive-comments:posix + SHLVL=3 + SUDO_COMMAND='/usr/bin/timeout -k 24.1h 24h /usr/bin/ionice -c 3 /usr/bin/nice -n 11 /usr/bin/unshare --uts -- /usr/sbin/pbuilder --build --configfile /srv/reproducible-results/rbuild-debian/r-b-build.YDqKTT5Z/pbuilderrc_gHiI --distribution trixie --hookdir /etc/pbuilder/rebuild-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/trixie-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/r-b-build.YDqKTT5Z/b2 --logfile b2/build.log node-proxyquire_2.1.3+~1.0.1+~1.0.2-12.dsc' + SUDO_GID=112 + SUDO_UID=107 + SUDO_USER=jenkins + TERM=unknown + TZ=/usr/share/zoneinfo/Etc/GMT-14 + UID=0 + USER=root + _='I: set' + http_proxy=http://46.16.76.132:3128 I: uname -a - Linux ionos16-i386 6.1.0-20-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.85-1 (2024-04-11) x86_64 GNU/Linux + Linux i-capture-the-hostname 6.1.0-20-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.85-1 (2024-04-11) x86_64 GNU/Linux I: ls -l /bin - lrwxrwxrwx 1 root root 7 May 27 17:46 /bin -> usr/bin -I: user script /srv/workspace/pbuilder/82281/tmp/hooks/D02_print_environment finished + lrwxrwxrwx 1 root root 7 Apr 21 07:13 /bin -> usr/bin +I: user script /srv/workspace/pbuilder/52543/tmp/hooks/D02_print_environment finished -> Attempting to satisfy build-dependencies -> Creating pbuilder-satisfydepends-dummy package Package: pbuilder-satisfydepends-dummy @@ -94,7 +126,7 @@ Depends: debhelper-compat (= 13), eslint, mocha, node-is-object, node-js-yaml, node-merge-descriptors, node-resolve, node-should, node-tape, pandoc, perl dpkg-deb: building package 'pbuilder-satisfydepends-dummy' in '/tmp/satisfydepends-aptitude/pbuilder-satisfydepends-dummy.deb'. Selecting previously unselected package pbuilder-satisfydepends-dummy. -(Reading database ... 19706 files and directories currently installed.) +(Reading database ... 19876 files and directories currently installed.) Preparing to unpack .../pbuilder-satisfydepends-dummy.deb ... Unpacking pbuilder-satisfydepends-dummy (0.invalid.0) ... dpkg: pbuilder-satisfydepends-dummy: dependency problems, but configuring anyway as you requested: @@ -451,15 +483,15 @@ Get: 314 http://deb.debian.org/debian trixie/main i386 node-should all 13.2.3~dfsg-7 [50.0 kB] Get: 315 http://deb.debian.org/debian trixie/main i386 pandoc-data all 3.1.3-1 [445 kB] Get: 316 http://deb.debian.org/debian trixie/main i386 pandoc i386 3.1.3+ds-2 [35.7 MB] -Fetched 79.8 MB in 1s (84.2 MB/s) +Fetched 79.8 MB in 2s (32.3 MB/s) debconf: delaying package configuration, since apt-utils is not installed Selecting previously unselected package isa-support: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 ... 19706 files and directories currently installed.) +(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 ... 19876 files and directories currently installed.) Preparing to unpack .../isa-support_21_i386.deb ... Unpacking isa-support:i386 (21) ... Setting up isa-support:i386 (21) ... Selecting previously unselected package sse2-support. -(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 ... 19753 files and directories currently installed.) +(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 ... 19923 files and directories currently installed.) Preparing to unpack .../000-sse2-support_21_i386.deb ... Unpacking sse2-support (21) ... Selecting previously unselected package sensible-utils. @@ -1737,7 +1769,11 @@ Building tag database... -> Finished parsing the build-deps I: Building the package -I: Running cd /build/reproducible-path/node-proxyquire-2.1.3+~1.0.1+~1.0.2/ && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games" HOME="/nonexistent/first-build" dpkg-buildpackage -us -uc -b && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games" HOME="/nonexistent/first-build" dpkg-genchanges -S > ../node-proxyquire_2.1.3+~1.0.1+~1.0.2-12_source.changes +I: user script /srv/workspace/pbuilder/52543/tmp/hooks/A99_set_merged_usr starting +Not re-configuring usrmerge for trixie +I: user script /srv/workspace/pbuilder/52543/tmp/hooks/A99_set_merged_usr finished +hostname: Name or service not known +I: Running cd /build/reproducible-path/node-proxyquire-2.1.3+~1.0.1+~1.0.2/ && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path" HOME="/nonexistent/second-build" dpkg-buildpackage -us -uc -b && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path" HOME="/nonexistent/second-build" dpkg-genchanges -S > ../node-proxyquire_2.1.3+~1.0.1+~1.0.2-12_source.changes dpkg-buildpackage: info: source package node-proxyquire dpkg-buildpackage: info: source version 2.1.3+~1.0.1+~1.0.2-12 dpkg-buildpackage: info: source distribution unstable @@ -1865,73 +1901,73 @@ ln --force --symbolic ../../Xkeys debian/node_modules/fill-keys NODE_PATH=debian/node_modules \ find test -maxdepth 1 -type f -name '*.js' -not -path 'test/proxyquire-global.js' -exec mocha --reporter tap --no-config --no-opts --no-package --no-timeout --require should {} + -ok 1 api default export proxyquire can load -ok 2 api default export proxyquire can callThru and then load -ok 3 api default export proxyquire can noCallThru and then load -ok 4 when I require stubs with different extensions intercepts [] object -ok 5 when I require stubs with different extensions intercepts [] function -ok 6 when I require stubs with different extensions intercepts [.json] object -ok 7 when I require stubs with different extensions intercepts [.node] object -ok 8 Proxyquire load() defaults to preserving the cache -ok 9 Proxyquire load() does not pollute the cache when module is proxyquired before it is loaded -ok 10 Proxyquire preserveCache() returns a reference to itself, so it can be chained -ok 11 Proxyquire preserveCache() has Proxyquire restore the cache for the module -ok 12 Proxyquire preserveCache() allows Singletons to function properly -ok 13 Proxyquire noPreserveCache() returns a reference to itself, so it can be chained -ok 14 Proxyquire noPreserveCache() forces subsequent requires to reload the proxied module -ok 15 Proxyquire noPreserveCache() deletes the require.cache for the module being stubbed -ok 16 Proxyquire noPreserveCache() deletes the require.cache for the stubs -ok 17 Proxyquire noPreserveCache() silences errors when stub lookups fail -ok 18 Multiple requires of same module don't affect each other Given I require foo stubbed with bar1 as foo1 and foo stubbed with bar2 as foo2 foo1.bigBar() == "BAR1" -ok 19 Multiple requires of same module don't affect each other Given I require foo stubbed with bar1 as foo1 and foo stubbed with bar2 as foo2 foo2.bigBar() == "BAR2" -ok 20 Multiple requires of same module don't affect each other Given I require foo stubbed with bar1 as foo1 and foo stubbed with bar2 as foo2 and I change bar1.bar() to return barone foo1.bigBar() == "BARONE" -ok 21 Multiple requires of same module don't affect each other Given I require foo stubbed with bar1 as foo1 and foo stubbed with bar2 as foo2 and I change bar1.bar() to return barone foo2.bigBar() == "BAR2" -ok 22 When resolving foo that requires bar and stubbed baz where bar requires unstubbed baz does not stub baz in bar -ok 23 When resolving foo that requires bar and stubbed baz where bar requires unstubbed baz does not affect a normal baz import -ok 24 When resolving foo that requires stubbed /not/existing/bar.json throws an error -ok 25 When resolving foo that requires stubbed /not/existing/bar.json with @noCallThru resolves foo with stubbed bar -ok 26 When resolving foo that requires stubbed /not/existing/bar.json with noCallThru() resolves foo with stubbed bar -ok 27 When resolving foo-relative that requires relative stubbed ../not/existing/bar.json with @noCallThru resolves foo-relative with stubbed bar -ok 28 Illegal parameters to resolve give meaningful errors when I pass no request throws an exception explaining that a request path must be provided -ok 29 Illegal parameters to resolve give meaningful errors when I pass an object as a request throws an exception explaining that request needs to be a requirable string -ok 30 Illegal parameters to resolve give meaningful errors when I pass no stubs throws an exception explaining that resolve without stubs makes no sense -ok 31 Illegal parameters to resolve give meaningful errors when I pass a string as stubs throws an exception explaining that stubs need to be an object -ok 32 Illegal parameters to resolve give meaningful errors when I pass an undefined stub throws an exception with the stub key -ok 33 when I try to use compat mode should let me know that I need to fix my code or downgrade -ok 34 When requiring relative paths, they should be relative to the proxyrequired module should return the correct result -ok 35 Given foo requires the bar and path modules and bar.bar() returns "bar" When I resolve foo with no overrides to bar as foo and resolve foo with barber stub as foober. foo is required 2 times -ok 36 Given foo requires the bar and path modules and bar.bar() returns "bar" When I resolve foo with no overrides to bar as foo and resolve foo with barber stub as foober. foo's bar is unchanged foo.bigBar() == "BAR" -ok 37 Given foo requires the bar and path modules and bar.bar() returns "bar" When I resolve foo with no overrides to bar as foo and resolve foo with barber stub as foober. only stubbed modules have overrides in foober foober.bigBar() == "BARBER" -ok 38 Given foo requires the bar and path modules and bar.bar() returns "bar" When I resolve foo with no overrides to bar as foo and resolve foo with barber stub as foober. only stubbed modules have overrides in foober foober.bigExt("/folder/test.ext") == ".EXT" -ok 39 Given foo requires the bar and path modules and bar.bar() returns "bar" When I resolve foo with no overrides to bar as foo and resolve foo with barber stub as foober. only stubbed modules have overrides in foober foober.bigBas("/folder/test.ext") == "TEST.EXT" -ok 40 Given foo requires the bar and path modules and bar.bar() returns "bar" When I resolve foo with no overrides to bar as foo and resolve foo with barber stub as foober. when I override keys of stubs after resolve overrides behavior when module is required inside function call -ok 41 Given foo requires the bar and path modules and bar.bar() returns "bar" When I resolve foo with no overrides to bar as foo and resolve foo with barber stub as foober. when I override keys of stubs after resolve overrides behavior when module is required on top of file -ok 42 Given foo requires the bar and path modules and bar.bar() returns "bar" When I resolve foo with no overrides to bar as foo and resolve foo with barber stub as foober. when I override keys of stubs after resolve and then delete overrides of stubs after resolve reverts to original behavior when module is required inside function call -ok 43 Given foo requires the bar and path modules and bar.bar() returns "bar" When I resolve foo with no overrides to bar as foo and resolve foo with barber stub as foober. when I override keys of stubs after resolve and then delete overrides of stubs after resolve doesn't properly revert to original behavior when module is required on top of file -ok 44 Given foo requires the bar and path modules and bar.bar() returns "bar" When foo.bigExt() returns capitalized path.extname and foo.bigBas() returns capitalized path.basename and path.extname(file) is stubbed to return "override " + file and callThru was not changed globally or for path module foo.bigExt(file) == "OVERRIDE /FOLDER/TEST.EXT" -ok 45 Given foo requires the bar and path modules and bar.bar() returns "bar" When foo.bigExt() returns capitalized path.extname and foo.bigBas() returns capitalized path.basename and path.extname(file) is stubbed to return "override " + file and callThru was not changed globally or for path module foo.bigBas(file) == "TEST.EXT" -ok 46 Given foo requires the bar and path modules and bar.bar() returns "bar" When foo.bigExt() returns capitalized path.extname and foo.bigBas() returns capitalized path.basename and path.extname(file) is stubbed to return "override " + file and callThru is turned off for path module foo.bigExt(file) == "OVERRIDE /FOLDER/TEST.EXT" -ok 47 Given foo requires the bar and path modules and bar.bar() returns "bar" When foo.bigExt() returns capitalized path.extname and foo.bigBas() returns capitalized path.basename and path.extname(file) is stubbed to return "override " + file and callThru is turned off for path module foo.bigBas(file) throws -ok 48 Given foo requires the bar and path modules and bar.bar() returns "bar" When foo.bigExt() returns capitalized path.extname and foo.bigBas() returns capitalized path.basename and path.extname(file) is stubbed to return "override " + file and callThru was turned off globally and not changed for path module foo.bigExt(file) == "OVERRIDE /FOLDER/TEST.EXT" -ok 49 Given foo requires the bar and path modules and bar.bar() returns "bar" When foo.bigExt() returns capitalized path.extname and foo.bigBas() returns capitalized path.basename and path.extname(file) is stubbed to return "override " + file and callThru was turned off globally and not changed for path module foo.bigBas(file) throws -ok 50 Given foo requires the bar and path modules and bar.bar() returns "bar" When foo.bigExt() returns capitalized path.extname and foo.bigBas() returns capitalized path.basename and path.extname(file) is stubbed to return "override " + file and callThru was turned off globally and turned back on for path module foo.bigExt(file) == "OVERRIDE /FOLDER/TEST.EXT" -ok 51 Given foo requires the bar and path modules and bar.bar() returns "bar" When foo.bigExt() returns capitalized path.extname and foo.bigBas() returns capitalized path.basename and path.extname(file) is stubbed to return "override " + file and callThru was turned off globally and turned back on for path module foo.bigBas(file) == "TEST.EXT" -ok 52 Given foo requires the bar and path modules and bar.bar() returns "bar" When foo.bigExt() returns capitalized path.extname and foo.bigBas() returns capitalized path.basename and path.extname(file) is stubbed to return "override " + file and callThru was turned off globally and turned back on globally foo.bigExt(file) == "OVERRIDE /FOLDER/TEST.EXT" -ok 53 Given foo requires the bar and path modules and bar.bar() returns "bar" When foo.bigExt() returns capitalized path.extname and foo.bigBas() returns capitalized path.basename and path.extname(file) is stubbed to return "override " + file and callThru was turned off globally and turned back on globally foo.bigBas(file) == "TEST.EXT" -ok 54 When resolving foo that requires nulled file package throws an error -ok 55 When resolving foo that optionally requires nulled crypto package catches when resolving crypto -ok 56 Given foo requires the boof, foonum and foobool modules and boof is a string, foonum is a Number and foobool is a bool When I resolve foo with boofber stub as boof. foo is required 1 times -ok 57 Given foo requires the boof, foonum and foobool modules and boof is a string, foonum is a Number and foobool is a bool When I resolve foo with boofber stub as boof. foo's boof is boofber foo.boof == boofber -ok 58 Given foo requires the boof, foonum and foobool modules and boof is a string, foonum is a Number and foobool is a bool When I resolve foo with foonumber stub as foonum. foo is required 1 times -ok 59 Given foo requires the boof, foonum and foobool modules and boof is a string, foonum is a Number and foobool is a bool When I resolve foo with foonumber stub as foonum. foo's foonum is foonumber foo.foonum == foonumber -ok 60 Given foo requires the boof, foonum and foobool modules and boof is a string, foonum is a Number and foobool is a bool When I resolve foo with fooboolber stub as foobool. foo is required 1 times -ok 61 Given foo requires the boof, foonum and foobool modules and boof is a string, foonum is a Number and foobool is a bool When I resolve foo with fooboolber stub as foobool. foo's foobool is fooboolber foo.foobool == fooboolber -ok 62 Given foo requires the boof, foonum and foobool modules and boof is a string, foonum is a Number and foobool is a bool When I resolve foo with ./fooarray stub as fooarray. foo is required 1 times -ok 63 Given foo requires the boof, foonum and foobool modules and boof is a string, foonum is a Number and foobool is a bool When I resolve foo with ./fooarray stub as fooarray. foo's fooarray is fooarray foo.fooarray is fooarray -ok 64 Given foo requires the boof, foonum and foobool modules and boof is a string, foonum is a Number and foobool is a bool When I resolve foo with ./fooarray stub as empty. foo is required 1 times -ok 65 Given foo requires the boof, foonum and foobool modules and boof is a string, foonum is a Number and foobool is a bool When I resolve foo with ./fooarray stub as empty. foo's fooarray is the original foo.fooarray is empty -ok 66 Given foo requires the boof, foonum and foobool modules and boof is a string, foonum is a Number and foobool is a bool When I resolve foo with ./fooarray stub as empty with @noCallThru. foo is required 1 times -ok 67 Given foo requires the boof, foonum and foobool modules and boof is a string, foonum is a Number and foobool is a bool When I resolve foo with ./fooarray stub as empty with @noCallThru. foo's fooarray is empty foo.fooarray is empty +ok 1 Given foo requires the boof, foonum and foobool modules and boof is a string, foonum is a Number and foobool is a bool When I resolve foo with boofber stub as boof. foo is required 1 times +ok 2 Given foo requires the boof, foonum and foobool modules and boof is a string, foonum is a Number and foobool is a bool When I resolve foo with boofber stub as boof. foo's boof is boofber foo.boof == boofber +ok 3 Given foo requires the boof, foonum and foobool modules and boof is a string, foonum is a Number and foobool is a bool When I resolve foo with foonumber stub as foonum. foo is required 1 times +ok 4 Given foo requires the boof, foonum and foobool modules and boof is a string, foonum is a Number and foobool is a bool When I resolve foo with foonumber stub as foonum. foo's foonum is foonumber foo.foonum == foonumber +ok 5 Given foo requires the boof, foonum and foobool modules and boof is a string, foonum is a Number and foobool is a bool When I resolve foo with fooboolber stub as foobool. foo is required 1 times +ok 6 Given foo requires the boof, foonum and foobool modules and boof is a string, foonum is a Number and foobool is a bool When I resolve foo with fooboolber stub as foobool. foo's foobool is fooboolber foo.foobool == fooboolber +ok 7 Given foo requires the boof, foonum and foobool modules and boof is a string, foonum is a Number and foobool is a bool When I resolve foo with ./fooarray stub as fooarray. foo is required 1 times +ok 8 Given foo requires the boof, foonum and foobool modules and boof is a string, foonum is a Number and foobool is a bool When I resolve foo with ./fooarray stub as fooarray. foo's fooarray is fooarray foo.fooarray is fooarray +ok 9 Given foo requires the boof, foonum and foobool modules and boof is a string, foonum is a Number and foobool is a bool When I resolve foo with ./fooarray stub as empty. foo is required 1 times +ok 10 Given foo requires the boof, foonum and foobool modules and boof is a string, foonum is a Number and foobool is a bool When I resolve foo with ./fooarray stub as empty. foo's fooarray is the original foo.fooarray is empty +ok 11 Given foo requires the boof, foonum and foobool modules and boof is a string, foonum is a Number and foobool is a bool When I resolve foo with ./fooarray stub as empty with @noCallThru. foo is required 1 times +ok 12 Given foo requires the boof, foonum and foobool modules and boof is a string, foonum is a Number and foobool is a bool When I resolve foo with ./fooarray stub as empty with @noCallThru. foo's fooarray is empty foo.fooarray is empty +ok 13 Given foo requires the bar and path modules and bar.bar() returns "bar" When I resolve foo with no overrides to bar as foo and resolve foo with barber stub as foober. foo is required 2 times +ok 14 Given foo requires the bar and path modules and bar.bar() returns "bar" When I resolve foo with no overrides to bar as foo and resolve foo with barber stub as foober. foo's bar is unchanged foo.bigBar() == "BAR" +ok 15 Given foo requires the bar and path modules and bar.bar() returns "bar" When I resolve foo with no overrides to bar as foo and resolve foo with barber stub as foober. only stubbed modules have overrides in foober foober.bigBar() == "BARBER" +ok 16 Given foo requires the bar and path modules and bar.bar() returns "bar" When I resolve foo with no overrides to bar as foo and resolve foo with barber stub as foober. only stubbed modules have overrides in foober foober.bigExt("/folder/test.ext") == ".EXT" +ok 17 Given foo requires the bar and path modules and bar.bar() returns "bar" When I resolve foo with no overrides to bar as foo and resolve foo with barber stub as foober. only stubbed modules have overrides in foober foober.bigBas("/folder/test.ext") == "TEST.EXT" +ok 18 Given foo requires the bar and path modules and bar.bar() returns "bar" When I resolve foo with no overrides to bar as foo and resolve foo with barber stub as foober. when I override keys of stubs after resolve overrides behavior when module is required inside function call +ok 19 Given foo requires the bar and path modules and bar.bar() returns "bar" When I resolve foo with no overrides to bar as foo and resolve foo with barber stub as foober. when I override keys of stubs after resolve overrides behavior when module is required on top of file +ok 20 Given foo requires the bar and path modules and bar.bar() returns "bar" When I resolve foo with no overrides to bar as foo and resolve foo with barber stub as foober. when I override keys of stubs after resolve and then delete overrides of stubs after resolve reverts to original behavior when module is required inside function call +ok 21 Given foo requires the bar and path modules and bar.bar() returns "bar" When I resolve foo with no overrides to bar as foo and resolve foo with barber stub as foober. when I override keys of stubs after resolve and then delete overrides of stubs after resolve doesn't properly revert to original behavior when module is required on top of file +ok 22 Given foo requires the bar and path modules and bar.bar() returns "bar" When foo.bigExt() returns capitalized path.extname and foo.bigBas() returns capitalized path.basename and path.extname(file) is stubbed to return "override " + file and callThru was not changed globally or for path module foo.bigExt(file) == "OVERRIDE /FOLDER/TEST.EXT" +ok 23 Given foo requires the bar and path modules and bar.bar() returns "bar" When foo.bigExt() returns capitalized path.extname and foo.bigBas() returns capitalized path.basename and path.extname(file) is stubbed to return "override " + file and callThru was not changed globally or for path module foo.bigBas(file) == "TEST.EXT" +ok 24 Given foo requires the bar and path modules and bar.bar() returns "bar" When foo.bigExt() returns capitalized path.extname and foo.bigBas() returns capitalized path.basename and path.extname(file) is stubbed to return "override " + file and callThru is turned off for path module foo.bigExt(file) == "OVERRIDE /FOLDER/TEST.EXT" +ok 25 Given foo requires the bar and path modules and bar.bar() returns "bar" When foo.bigExt() returns capitalized path.extname and foo.bigBas() returns capitalized path.basename and path.extname(file) is stubbed to return "override " + file and callThru is turned off for path module foo.bigBas(file) throws +ok 26 Given foo requires the bar and path modules and bar.bar() returns "bar" When foo.bigExt() returns capitalized path.extname and foo.bigBas() returns capitalized path.basename and path.extname(file) is stubbed to return "override " + file and callThru was turned off globally and not changed for path module foo.bigExt(file) == "OVERRIDE /FOLDER/TEST.EXT" +ok 27 Given foo requires the bar and path modules and bar.bar() returns "bar" When foo.bigExt() returns capitalized path.extname and foo.bigBas() returns capitalized path.basename and path.extname(file) is stubbed to return "override " + file and callThru was turned off globally and not changed for path module foo.bigBas(file) throws +ok 28 Given foo requires the bar and path modules and bar.bar() returns "bar" When foo.bigExt() returns capitalized path.extname and foo.bigBas() returns capitalized path.basename and path.extname(file) is stubbed to return "override " + file and callThru was turned off globally and turned back on for path module foo.bigExt(file) == "OVERRIDE /FOLDER/TEST.EXT" +ok 29 Given foo requires the bar and path modules and bar.bar() returns "bar" When foo.bigExt() returns capitalized path.extname and foo.bigBas() returns capitalized path.basename and path.extname(file) is stubbed to return "override " + file and callThru was turned off globally and turned back on for path module foo.bigBas(file) == "TEST.EXT" +ok 30 Given foo requires the bar and path modules and bar.bar() returns "bar" When foo.bigExt() returns capitalized path.extname and foo.bigBas() returns capitalized path.basename and path.extname(file) is stubbed to return "override " + file and callThru was turned off globally and turned back on globally foo.bigExt(file) == "OVERRIDE /FOLDER/TEST.EXT" +ok 31 Given foo requires the bar and path modules and bar.bar() returns "bar" When foo.bigExt() returns capitalized path.extname and foo.bigBas() returns capitalized path.basename and path.extname(file) is stubbed to return "override " + file and callThru was turned off globally and turned back on globally foo.bigBas(file) == "TEST.EXT" +ok 32 api default export proxyquire can load +ok 33 api default export proxyquire can callThru and then load +ok 34 api default export proxyquire can noCallThru and then load +ok 35 when I try to use compat mode should let me know that I need to fix my code or downgrade +ok 36 When requiring relative paths, they should be relative to the proxyrequired module should return the correct result +ok 37 Illegal parameters to resolve give meaningful errors when I pass no request throws an exception explaining that a request path must be provided +ok 38 Illegal parameters to resolve give meaningful errors when I pass an object as a request throws an exception explaining that request needs to be a requirable string +ok 39 Illegal parameters to resolve give meaningful errors when I pass no stubs throws an exception explaining that resolve without stubs makes no sense +ok 40 Illegal parameters to resolve give meaningful errors when I pass a string as stubs throws an exception explaining that stubs need to be an object +ok 41 Illegal parameters to resolve give meaningful errors when I pass an undefined stub throws an exception with the stub key +ok 42 when I require stubs with different extensions intercepts [] object +ok 43 when I require stubs with different extensions intercepts [] function +ok 44 when I require stubs with different extensions intercepts [.json] object +ok 45 when I require stubs with different extensions intercepts [.node] object +ok 46 Multiple requires of same module don't affect each other Given I require foo stubbed with bar1 as foo1 and foo stubbed with bar2 as foo2 foo1.bigBar() == "BAR1" +ok 47 Multiple requires of same module don't affect each other Given I require foo stubbed with bar1 as foo1 and foo stubbed with bar2 as foo2 foo2.bigBar() == "BAR2" +ok 48 Multiple requires of same module don't affect each other Given I require foo stubbed with bar1 as foo1 and foo stubbed with bar2 as foo2 and I change bar1.bar() to return barone foo1.bigBar() == "BARONE" +ok 49 Multiple requires of same module don't affect each other Given I require foo stubbed with bar1 as foo1 and foo stubbed with bar2 as foo2 and I change bar1.bar() to return barone foo2.bigBar() == "BAR2" +ok 50 When resolving foo that requires nulled file package throws an error +ok 51 When resolving foo that optionally requires nulled crypto package catches when resolving crypto +ok 52 When resolving foo that requires bar and stubbed baz where bar requires unstubbed baz does not stub baz in bar +ok 53 When resolving foo that requires bar and stubbed baz where bar requires unstubbed baz does not affect a normal baz import +ok 54 Proxyquire load() defaults to preserving the cache +ok 55 Proxyquire load() does not pollute the cache when module is proxyquired before it is loaded +ok 56 Proxyquire preserveCache() returns a reference to itself, so it can be chained +ok 57 Proxyquire preserveCache() has Proxyquire restore the cache for the module +ok 58 Proxyquire preserveCache() allows Singletons to function properly +ok 59 Proxyquire noPreserveCache() returns a reference to itself, so it can be chained +ok 60 Proxyquire noPreserveCache() forces subsequent requires to reload the proxied module +ok 61 Proxyquire noPreserveCache() deletes the require.cache for the module being stubbed +ok 62 Proxyquire noPreserveCache() deletes the require.cache for the stubs +ok 63 Proxyquire noPreserveCache() silences errors when stub lookups fail +ok 64 When resolving foo that requires stubbed /not/existing/bar.json throws an error +ok 65 When resolving foo that requires stubbed /not/existing/bar.json with @noCallThru resolves foo with stubbed bar +ok 66 When resolving foo that requires stubbed /not/existing/bar.json with noCallThru() resolves foo with stubbed bar +ok 67 When resolving foo-relative that requires relative stubbed ../not/existing/bar.json with @noCallThru resolves foo-relative with stubbed bar # tests 67 # pass 67 # fail 0 @@ -1998,12 +2034,14 @@ dpkg-buildpackage: info: binary-only upload (no source included) dpkg-genchanges: info: not including original source code in upload I: copying local configuration +I: user script /srv/workspace/pbuilder/52543/tmp/hooks/B01_cleanup starting +I: user script /srv/workspace/pbuilder/52543/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/82281 and its subdirectories -I: Current time: Tue May 27 07:58:22 -12 2025 -I: pbuilder-time-stamp: 1748375902 +I: removing directory /srv/workspace/pbuilder/52543 and its subdirectories +I: Current time: Thu Apr 25 03:37:29 +14 2024 +I: pbuilder-time-stamp: 1713965849