Diff of the two buildlogs: -- --- b1/build.log 2021-05-30 08:28:28.258554049 +0000 +++ b2/build.log 2021-05-30 08:28:59.077343965 +0000 @@ -1,8 +1,6 @@ -unshare: unshare failed: Cannot allocate memory -W: pbuilder: unshare CLONE_NEWNET not available -I: pbuilder: network access is available during build! -I: Current time: Sat May 29 20:24:19 -12 2021 -I: pbuilder-time-stamp: 1622363059 +I: pbuilder: network access will be disabled during build +I: Current time: Sun Jul 3 04:51:28 +14 2022 +I: pbuilder-time-stamp: 1656773488 I: Building the build Environment I: extracting base tarball [/var/cache/pbuilder/bullseye-reproducible-base.tgz] I: copying local configuration @@ -19,8 +17,8 @@ I: copying [./ruby-contracts_0.16.0-1.debian.tar.xz] I: Extracting source gpgv: unknown type of key resource 'trustedkeys.kbx' -gpgv: keyblock resource '/tmp/dpkg-verify-sig.D47CpMLW/trustedkeys.kbx': General error -gpgv: Signature made Wed Aug 23 04:58:41 2017 -12 +gpgv: keyblock resource '/tmp/dpkg-verify-sig.80vTAxgz/trustedkeys.kbx': General error +gpgv: Signature made Thu Aug 24 06:58:41 2017 +14 gpgv: using RSA key 7E43E9ACBF727AB3CF0885338716CE4614A452D8 gpgv: Can't check signature: No public key dpkg-source: warning: failed to verify signature on ./ruby-contracts_0.16.0-1.dsc @@ -29,137 +27,171 @@ dpkg-source: info: unpacking ruby-contracts_0.16.0-1.debian.tar.xz I: using fakeroot in build. I: Installing the build-deps -I: user script /srv/workspace/pbuilder/10153/tmp/hooks/D02_print_environment starting +I: user script /srv/workspace/pbuilder/34691/tmp/hooks/D01_modify_environment starting +debug: Running on ionos16-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/34691/tmp/hooks/D01_modify_environment finished +I: user script /srv/workspace/pbuilder/34691/tmp/hooks/D02_print_environment starting I: set - BUILDDIR='/build' - 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,-fixfilepath parallel=10' - DISTRIBUTION='' - HOME='/root' - HOST_ARCH='i386' + BASH=/bin/sh + BASHOPTS=checkwinsize:cmdhist:complete_fullquote:extquote:force_fignore:globasciiranges:hostcomplete:interactive_comments:progcomp:promptvars:sourcepath + BASH_ALIASES=() + BASH_ARGC=() + BASH_ARGV=() + BASH_CMDS=() + BASH_LINENO=([0]="12" [1]="0") + BASH_SOURCE=([0]="/tmp/hooks/D02_print_environment" [1]="/tmp/hooks/D02_print_environment") + BASH_VERSINFO=([0]="5" [1]="1" [2]="4" [3]="1" [4]="release" [5]="i686-pc-linux-gnu") + BASH_VERSION='5.1.4(1)-release' + BUILDDIR=/build + 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,-fixfilepath parallel=18' + DIRSTACK=() + DISTRIBUTION= + EUID=0 + FUNCNAME=([0]="Echo" [1]="main") + GROUPS=() + HOME=/root + HOSTNAME=i-capture-the-hostname + HOSTTYPE=i686 + HOST_ARCH=i386 IFS=' ' - INVOCATION_ID='9f26d33aabde489abe0b28b55cc2c50a' - 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='10153' - PS1='# ' - PS2='> ' + INVOCATION_ID=8aa09857149c4c89b753131df6f669d6 + 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=34691 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/tmp.gozgPOU8yo/pbuilderrc_6GMs --hookdir /etc/pbuilder/first-build-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/bullseye-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/tmp.gozgPOU8yo/b1 --logfile b1/build.log ruby-contracts_0.16.0-1.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://78.137.99.97: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/tmp.gozgPOU8yo/pbuilderrc_IFhZ --hookdir /etc/pbuilder/rebuild-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/bullseye-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/tmp.gozgPOU8yo/b2 --logfile b2/build.log --extrapackages usrmerge ruby-contracts_0.16.0-1.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://85.184.249.68:3128 I: uname -a - Linux ionos12-i386 4.19.0-16-686-pae #1 SMP Debian 4.19.181-1 (2021-03-19) i686 GNU/Linux + Linux i-capture-the-hostname 4.19.0-16-amd64 #1 SMP Debian 4.19.181-1 (2021-03-19) x86_64 GNU/Linux I: ls -l /bin - total 5840 - -rwxr-xr-x 1 root root 1367848 Feb 24 08:57 bash - -rwxr-xr-x 3 root root 38280 Jul 20 2020 bunzip2 - -rwxr-xr-x 3 root root 38280 Jul 20 2020 bzcat - lrwxrwxrwx 1 root root 6 Jul 20 2020 bzcmp -> bzdiff - -rwxr-xr-x 1 root root 2225 Jul 20 2020 bzdiff - lrwxrwxrwx 1 root root 6 Jul 20 2020 bzegrep -> bzgrep - -rwxr-xr-x 1 root root 4877 Sep 4 2019 bzexe - lrwxrwxrwx 1 root root 6 Jul 20 2020 bzfgrep -> bzgrep - -rwxr-xr-x 1 root root 3775 Jul 20 2020 bzgrep - -rwxr-xr-x 3 root root 38280 Jul 20 2020 bzip2 - -rwxr-xr-x 1 root root 17768 Jul 20 2020 bzip2recover - lrwxrwxrwx 1 root root 6 Jul 20 2020 bzless -> bzmore - -rwxr-xr-x 1 root root 1297 Jul 20 2020 bzmore - -rwxr-xr-x 1 root root 38824 Sep 22 2020 cat - -rwxr-xr-x 1 root root 71624 Sep 22 2020 chgrp - -rwxr-xr-x 1 root root 67528 Sep 22 2020 chmod - -rwxr-xr-x 1 root root 75752 Sep 22 2020 chown - -rwxr-xr-x 1 root root 157960 Sep 22 2020 cp - -rwxr-xr-x 1 root root 128724 Dec 10 01:23 dash - -rwxr-xr-x 1 root root 124904 Sep 22 2020 date - -rwxr-xr-x 1 root root 92172 Sep 22 2020 dd - -rwxr-xr-x 1 root root 100752 Sep 22 2020 df - -rwxr-xr-x 1 root root 153964 Sep 22 2020 dir - -rwxr-xr-x 1 root root 83644 Feb 7 02:38 dmesg - lrwxrwxrwx 1 root root 8 Nov 6 2019 dnsdomainname -> hostname - lrwxrwxrwx 1 root root 8 Nov 6 2019 domainname -> hostname - -rwxr-xr-x 1 root root 34664 Sep 22 2020 echo - -rwxr-xr-x 1 root root 28 Nov 9 2020 egrep - -rwxr-xr-x 1 root root 34664 Sep 22 2020 false - -rwxr-xr-x 1 root root 28 Nov 9 2020 fgrep - -rwxr-xr-x 1 root root 71928 Feb 7 02:38 findmnt - -rwsr-xr-x 1 root root 30112 Feb 26 04:12 fusermount - -rwxr-xr-x 1 root root 210488 Nov 9 2020 grep - -rwxr-xr-x 2 root root 2346 Mar 2 11:30 gunzip - -rwxr-xr-x 1 root root 6376 Mar 2 11:30 gzexe - -rwxr-xr-x 1 root root 100952 Mar 2 11:30 gzip - -rwxr-xr-x 1 root root 21916 Nov 6 2019 hostname - -rwxr-xr-x 1 root root 83980 Sep 22 2020 ln - -rwxr-xr-x 1 root root 55572 Feb 7 2020 login - -rwxr-xr-x 1 root root 153964 Sep 22 2020 ls - -rwxr-xr-x 1 root root 153124 Feb 7 02:38 lsblk - -rwxr-xr-x 1 root root 96328 Sep 22 2020 mkdir - -rwxr-xr-x 1 root root 79912 Sep 22 2020 mknod - -rwxr-xr-x 1 root root 47048 Sep 22 2020 mktemp - -rwxr-xr-x 1 root root 58920 Feb 7 02:38 more - -rwsr-xr-x 1 root root 50720 Feb 7 02:38 mount - -rwxr-xr-x 1 root root 13856 Feb 7 02:38 mountpoint - -rwxr-xr-x 1 root root 157996 Sep 22 2020 mv - lrwxrwxrwx 1 root root 8 Nov 6 2019 nisdomainname -> hostname - lrwxrwxrwx 1 root root 14 Apr 18 03:38 pidof -> /sbin/killall5 - -rwxr-xr-x 1 root root 38824 Sep 22 2020 pwd - lrwxrwxrwx 1 root root 4 Feb 24 08:57 rbash -> bash - -rwxr-xr-x 1 root root 46984 Sep 22 2020 readlink - -rwxr-xr-x 1 root root 75720 Sep 22 2020 rm - -rwxr-xr-x 1 root root 46984 Sep 22 2020 rmdir - -rwxr-xr-x 1 root root 22292 Sep 27 2020 run-parts - -rwxr-xr-x 1 root root 125036 Dec 22 2018 sed - lrwxrwxrwx 1 root root 4 May 27 21:26 sh -> dash - -rwxr-xr-x 1 root root 34696 Sep 22 2020 sleep - -rwxr-xr-x 1 root root 83880 Sep 22 2020 stty - -rwsr-xr-x 1 root root 79396 Feb 7 02:38 su - -rwxr-xr-x 1 root root 34696 Sep 22 2020 sync - -rwxr-xr-x 1 root root 602584 Feb 16 21:55 tar - -rwxr-xr-x 1 root root 13860 Sep 27 2020 tempfile - -rwxr-xr-x 1 root root 108520 Sep 22 2020 touch - -rwxr-xr-x 1 root root 34664 Sep 22 2020 true - -rwxr-xr-x 1 root root 17768 Feb 26 04:12 ulockmgr_server - -rwsr-xr-x 1 root root 30236 Feb 7 02:38 umount - -rwxr-xr-x 1 root root 34664 Sep 22 2020 uname - -rwxr-xr-x 2 root root 2346 Mar 2 11:30 uncompress - -rwxr-xr-x 1 root root 153964 Sep 22 2020 vdir - -rwxr-xr-x 1 root root 63024 Feb 7 02:38 wdctl - lrwxrwxrwx 1 root root 8 Nov 6 2019 ypdomainname -> hostname - -rwxr-xr-x 1 root root 1984 Mar 2 11:30 zcat - -rwxr-xr-x 1 root root 1678 Mar 2 11:30 zcmp - -rwxr-xr-x 1 root root 5880 Mar 2 11:30 zdiff - -rwxr-xr-x 1 root root 29 Mar 2 11:30 zegrep - -rwxr-xr-x 1 root root 29 Mar 2 11:30 zfgrep - -rwxr-xr-x 1 root root 2081 Mar 2 11:30 zforce - -rwxr-xr-x 1 root root 7585 Mar 2 11:30 zgrep - -rwxr-xr-x 1 root root 2206 Mar 2 11:30 zless - -rwxr-xr-x 1 root root 1842 Mar 2 11:30 zmore - -rwxr-xr-x 1 root root 4553 Mar 2 11:30 znew -I: user script /srv/workspace/pbuilder/10153/tmp/hooks/D02_print_environment finished + total 5776 + -rwxr-xr-x 1 root root 1367848 Feb 25 2021 bash + -rwxr-xr-x 3 root root 38280 Jul 21 2020 bunzip2 + -rwxr-xr-x 3 root root 38280 Jul 21 2020 bzcat + lrwxrwxrwx 1 root root 6 Jul 21 2020 bzcmp -> bzdiff + -rwxr-xr-x 1 root root 2225 Jul 21 2020 bzdiff + lrwxrwxrwx 1 root root 6 Jul 21 2020 bzegrep -> bzgrep + -rwxr-xr-x 1 root root 4877 Sep 5 2019 bzexe + lrwxrwxrwx 1 root root 6 Jul 21 2020 bzfgrep -> bzgrep + -rwxr-xr-x 1 root root 3775 Jul 21 2020 bzgrep + -rwxr-xr-x 3 root root 38280 Jul 21 2020 bzip2 + -rwxr-xr-x 1 root root 17768 Jul 21 2020 bzip2recover + lrwxrwxrwx 1 root root 6 Jul 21 2020 bzless -> bzmore + -rwxr-xr-x 1 root root 1297 Jul 21 2020 bzmore + -rwxr-xr-x 1 root root 38824 Sep 23 2020 cat + -rwxr-xr-x 1 root root 71624 Sep 23 2020 chgrp + -rwxr-xr-x 1 root root 67528 Sep 23 2020 chmod + -rwxr-xr-x 1 root root 75752 Sep 23 2020 chown + -rwxr-xr-x 1 root root 157960 Sep 23 2020 cp + -rwxr-xr-x 1 root root 128724 Dec 11 2020 dash + -rwxr-xr-x 1 root root 124904 Sep 23 2020 date + -rwxr-xr-x 1 root root 92172 Sep 23 2020 dd + -rwxr-xr-x 1 root root 100752 Sep 23 2020 df + -rwxr-xr-x 1 root root 153964 Sep 23 2020 dir + -rwxr-xr-x 1 root root 83644 Feb 8 2021 dmesg + lrwxrwxrwx 1 root root 8 Nov 8 2019 dnsdomainname -> hostname + lrwxrwxrwx 1 root root 8 Nov 8 2019 domainname -> hostname + -rwxr-xr-x 1 root root 34664 Sep 23 2020 echo + -rwxr-xr-x 1 root root 28 Nov 10 2020 egrep + -rwxr-xr-x 1 root root 34664 Sep 23 2020 false + -rwxr-xr-x 1 root root 28 Nov 10 2020 fgrep + -rwxr-xr-x 1 root root 71928 Feb 8 2021 findmnt + -rwsr-xr-x 1 root root 30112 Feb 27 2021 fusermount + -rwxr-xr-x 1 root root 210488 Nov 10 2020 grep + -rwxr-xr-x 2 root root 2346 Mar 3 2021 gunzip + -rwxr-xr-x 1 root root 6376 Mar 3 2021 gzexe + -rwxr-xr-x 1 root root 100952 Mar 3 2021 gzip + -rwxr-xr-x 1 root root 21916 Nov 8 2019 hostname + -rwxr-xr-x 1 root root 83980 Sep 23 2020 ln + -rwxr-xr-x 1 root root 55572 Feb 8 2020 login + -rwxr-xr-x 1 root root 153964 Sep 23 2020 ls + -rwxr-xr-x 1 root root 153124 Feb 8 2021 lsblk + -rwxr-xr-x 1 root root 96328 Sep 23 2020 mkdir + -rwxr-xr-x 1 root root 79912 Sep 23 2020 mknod + -rwxr-xr-x 1 root root 47048 Sep 23 2020 mktemp + -rwxr-xr-x 1 root root 58920 Feb 8 2021 more + -rwsr-xr-x 1 root root 50720 Feb 8 2021 mount + -rwxr-xr-x 1 root root 13856 Feb 8 2021 mountpoint + -rwxr-xr-x 1 root root 157996 Sep 23 2020 mv + lrwxrwxrwx 1 root root 8 Nov 8 2019 nisdomainname -> hostname + lrwxrwxrwx 1 root root 14 Apr 19 2021 pidof -> /sbin/killall5 + -rwxr-xr-x 1 root root 38824 Sep 23 2020 pwd + lrwxrwxrwx 1 root root 4 Feb 25 2021 rbash -> bash + -rwxr-xr-x 1 root root 46984 Sep 23 2020 readlink + -rwxr-xr-x 1 root root 75720 Sep 23 2020 rm + -rwxr-xr-x 1 root root 46984 Sep 23 2020 rmdir + -rwxr-xr-x 1 root root 22292 Sep 28 2020 run-parts + -rwxr-xr-x 1 root root 125036 Dec 23 2018 sed + lrwxrwxrwx 1 root root 4 Jul 3 04:51 sh -> bash + lrwxrwxrwx 1 root root 4 Jul 1 05:46 sh.distrib -> dash + -rwxr-xr-x 1 root root 34696 Sep 23 2020 sleep + -rwxr-xr-x 1 root root 83880 Sep 23 2020 stty + -rwsr-xr-x 1 root root 79396 Feb 8 2021 su + -rwxr-xr-x 1 root root 34696 Sep 23 2020 sync + -rwxr-xr-x 1 root root 602584 Feb 17 2021 tar + -rwxr-xr-x 1 root root 13860 Sep 28 2020 tempfile + -rwxr-xr-x 1 root root 108520 Sep 23 2020 touch + -rwxr-xr-x 1 root root 34664 Sep 23 2020 true + -rwxr-xr-x 1 root root 17768 Feb 27 2021 ulockmgr_server + -rwsr-xr-x 1 root root 30236 Feb 8 2021 umount + -rwxr-xr-x 1 root root 34664 Sep 23 2020 uname + -rwxr-xr-x 2 root root 2346 Mar 3 2021 uncompress + -rwxr-xr-x 1 root root 153964 Sep 23 2020 vdir + -rwxr-xr-x 1 root root 63024 Feb 8 2021 wdctl + lrwxrwxrwx 1 root root 8 Nov 8 2019 ypdomainname -> hostname + -rwxr-xr-x 1 root root 1984 Mar 3 2021 zcat + -rwxr-xr-x 1 root root 1678 Mar 3 2021 zcmp + -rwxr-xr-x 1 root root 5880 Mar 3 2021 zdiff + -rwxr-xr-x 1 root root 29 Mar 3 2021 zegrep + -rwxr-xr-x 1 root root 29 Mar 3 2021 zfgrep + -rwxr-xr-x 1 root root 2081 Mar 3 2021 zforce + -rwxr-xr-x 1 root root 7585 Mar 3 2021 zgrep + -rwxr-xr-x 1 root root 2206 Mar 3 2021 zless + -rwxr-xr-x 1 root root 1842 Mar 3 2021 zmore + -rwxr-xr-x 1 root root 4553 Mar 3 2021 znew +I: user script /srv/workspace/pbuilder/34691/tmp/hooks/D02_print_environment finished -> Attempting to satisfy build-dependencies -> Creating pbuilder-satisfydepends-dummy package Package: pbuilder-satisfydepends-dummy @@ -332,7 +364,7 @@ Get: 129 http://deb.debian.org/debian bullseye/main i386 ruby-rspec-expectations all 3.9.0c2e2m1s3-2 [89.9 kB] Get: 130 http://deb.debian.org/debian bullseye/main i386 ruby-rspec-mocks all 3.9.0c2e2m1s3-2 [81.4 kB] Get: 131 http://deb.debian.org/debian bullseye/main i386 ruby-rspec all 3.9.0c2e2m1s3-2 [8348 B] -Fetched 44.8 MB in 8s (5506 kB/s) +Fetched 44.8 MB in 1s (54.5 MB/s) debconf: delaying package configuration, since apt-utils is not installed Selecting previously unselected package bsdextrautils. (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 ... 19674 files and directories currently installed.) @@ -884,9 +916,41 @@ Building dependency tree... Reading state information... fakeroot is already the newest version (1.25.3-1.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, 157 kB of additional disk space will be used. +Get:1 http://deb.debian.org/debian bullseye/main i386 libnumber-compare-perl all 0.03-1.1 [6956 B] +Get:2 http://deb.debian.org/debian bullseye/main i386 libtext-glob-perl all 0.11-1 [8888 B] +Get:3 http://deb.debian.org/debian bullseye/main i386 libfile-find-rule-perl all 0.34-1 [30.6 kB] +Get:4 http://deb.debian.org/debian bullseye/main i386 usrmerge all 25 [13.0 kB] +debconf: delaying package configuration, since apt-utils is not installed +Fetched 59.5 kB in 0s (4291 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 ... 26839 files and directories currently installed.) +Preparing to unpack .../libnumber-compare-perl_0.03-1.1_all.deb ... +Unpacking libnumber-compare-perl (0.03-1.1) ... +Selecting previously unselected package libtext-glob-perl. +Preparing to unpack .../libtext-glob-perl_0.11-1_all.deb ... +Unpacking libtext-glob-perl (0.11-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_25_all.deb ... +Unpacking usrmerge (25) ... +Setting up libtext-glob-perl (0.11-1) ... +Setting up libnumber-compare-perl (0.03-1.1) ... +Setting up libfile-find-rule-perl (0.34-1) ... +Setting up usrmerge (25) ... +The system has been successfully converted. +Processing triggers for man-db (2.9.4-2) ... +Not building database; man-db/auto-update is not 'true'. I: Building the package -I: Running cd /build/ruby-contracts-0.16.0/ && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games" HOME="/nonexistent/first-build" dpkg-buildpackage -us -uc -b +I: Running cd /build/ruby-contracts-0.16.0/ && 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 ruby-contracts dpkg-buildpackage: info: source version 0.16.0-1 dpkg-buildpackage: info: source distribution unstable @@ -925,23 +989,23 @@ └──────────────────────────────────────────────────────────────────────────────┘ install -d /build/ruby-contracts-0.16.0/debian/ruby-contracts/usr/lib/ruby/vendor_ruby -install -D -m644 /build/ruby-contracts-0.16.0/lib/contracts/call_with.rb /build/ruby-contracts-0.16.0/debian/ruby-contracts/usr/lib/ruby/vendor_ruby/contracts/call_with.rb -install -D -m644 /build/ruby-contracts-0.16.0/lib/contracts/version.rb /build/ruby-contracts-0.16.0/debian/ruby-contracts/usr/lib/ruby/vendor_ruby/contracts/version.rb -install -D -m644 /build/ruby-contracts-0.16.0/lib/contracts/core.rb /build/ruby-contracts-0.16.0/debian/ruby-contracts/usr/lib/ruby/vendor_ruby/contracts/core.rb -install -D -m644 /build/ruby-contracts-0.16.0/lib/contracts/decorators.rb /build/ruby-contracts-0.16.0/debian/ruby-contracts/usr/lib/ruby/vendor_ruby/contracts/decorators.rb -install -D -m644 /build/ruby-contracts-0.16.0/lib/contracts/formatters.rb /build/ruby-contracts-0.16.0/debian/ruby-contracts/usr/lib/ruby/vendor_ruby/contracts/formatters.rb -install -D -m644 /build/ruby-contracts-0.16.0/lib/contracts/invariants.rb /build/ruby-contracts-0.16.0/debian/ruby-contracts/usr/lib/ruby/vendor_ruby/contracts/invariants.rb install -D -m644 /build/ruby-contracts-0.16.0/lib/contracts/engine/base.rb /build/ruby-contracts-0.16.0/debian/ruby-contracts/usr/lib/ruby/vendor_ruby/contracts/engine/base.rb -install -D -m644 /build/ruby-contracts-0.16.0/lib/contracts/engine/target.rb /build/ruby-contracts-0.16.0/debian/ruby-contracts/usr/lib/ruby/vendor_ruby/contracts/engine/target.rb install -D -m644 /build/ruby-contracts-0.16.0/lib/contracts/engine/eigenclass.rb /build/ruby-contracts-0.16.0/debian/ruby-contracts/usr/lib/ruby/vendor_ruby/contracts/engine/eigenclass.rb +install -D -m644 /build/ruby-contracts-0.16.0/lib/contracts/engine/target.rb /build/ruby-contracts-0.16.0/debian/ruby-contracts/usr/lib/ruby/vendor_ruby/contracts/engine/target.rb +install -D -m644 /build/ruby-contracts-0.16.0/lib/contracts/invariants.rb /build/ruby-contracts-0.16.0/debian/ruby-contracts/usr/lib/ruby/vendor_ruby/contracts/invariants.rb +install -D -m644 /build/ruby-contracts-0.16.0/lib/contracts/method_reference.rb /build/ruby-contracts-0.16.0/debian/ruby-contracts/usr/lib/ruby/vendor_ruby/contracts/method_reference.rb +install -D -m644 /build/ruby-contracts-0.16.0/lib/contracts/call_with.rb /build/ruby-contracts-0.16.0/debian/ruby-contracts/usr/lib/ruby/vendor_ruby/contracts/call_with.rb install -D -m644 /build/ruby-contracts-0.16.0/lib/contracts/validators.rb /build/ruby-contracts-0.16.0/debian/ruby-contracts/usr/lib/ruby/vendor_ruby/contracts/validators.rb -install -D -m644 /build/ruby-contracts-0.16.0/lib/contracts/support.rb /build/ruby-contracts-0.16.0/debian/ruby-contracts/usr/lib/ruby/vendor_ruby/contracts/support.rb -install -D -m644 /build/ruby-contracts-0.16.0/lib/contracts/builtin_contracts.rb /build/ruby-contracts-0.16.0/debian/ruby-contracts/usr/lib/ruby/vendor_ruby/contracts/builtin_contracts.rb -install -D -m644 /build/ruby-contracts-0.16.0/lib/contracts/errors.rb /build/ruby-contracts-0.16.0/debian/ruby-contracts/usr/lib/ruby/vendor_ruby/contracts/errors.rb +install -D -m644 /build/ruby-contracts-0.16.0/lib/contracts/core.rb /build/ruby-contracts-0.16.0/debian/ruby-contracts/usr/lib/ruby/vendor_ruby/contracts/core.rb +install -D -m644 /build/ruby-contracts-0.16.0/lib/contracts/attrs.rb /build/ruby-contracts-0.16.0/debian/ruby-contracts/usr/lib/ruby/vendor_ruby/contracts/attrs.rb +install -D -m644 /build/ruby-contracts-0.16.0/lib/contracts/decorators.rb /build/ruby-contracts-0.16.0/debian/ruby-contracts/usr/lib/ruby/vendor_ruby/contracts/decorators.rb +install -D -m644 /build/ruby-contracts-0.16.0/lib/contracts/version.rb /build/ruby-contracts-0.16.0/debian/ruby-contracts/usr/lib/ruby/vendor_ruby/contracts/version.rb install -D -m644 /build/ruby-contracts-0.16.0/lib/contracts/method_handler.rb /build/ruby-contracts-0.16.0/debian/ruby-contracts/usr/lib/ruby/vendor_ruby/contracts/method_handler.rb +install -D -m644 /build/ruby-contracts-0.16.0/lib/contracts/builtin_contracts.rb /build/ruby-contracts-0.16.0/debian/ruby-contracts/usr/lib/ruby/vendor_ruby/contracts/builtin_contracts.rb install -D -m644 /build/ruby-contracts-0.16.0/lib/contracts/engine.rb /build/ruby-contracts-0.16.0/debian/ruby-contracts/usr/lib/ruby/vendor_ruby/contracts/engine.rb -install -D -m644 /build/ruby-contracts-0.16.0/lib/contracts/attrs.rb /build/ruby-contracts-0.16.0/debian/ruby-contracts/usr/lib/ruby/vendor_ruby/contracts/attrs.rb -install -D -m644 /build/ruby-contracts-0.16.0/lib/contracts/method_reference.rb /build/ruby-contracts-0.16.0/debian/ruby-contracts/usr/lib/ruby/vendor_ruby/contracts/method_reference.rb +install -D -m644 /build/ruby-contracts-0.16.0/lib/contracts/support.rb /build/ruby-contracts-0.16.0/debian/ruby-contracts/usr/lib/ruby/vendor_ruby/contracts/support.rb +install -D -m644 /build/ruby-contracts-0.16.0/lib/contracts/errors.rb /build/ruby-contracts-0.16.0/debian/ruby-contracts/usr/lib/ruby/vendor_ruby/contracts/errors.rb +install -D -m644 /build/ruby-contracts-0.16.0/lib/contracts/formatters.rb /build/ruby-contracts-0.16.0/debian/ruby-contracts/usr/lib/ruby/vendor_ruby/contracts/formatters.rb install -D -m644 /build/ruby-contracts-0.16.0/lib/contracts.rb /build/ruby-contracts-0.16.0/debian/ruby-contracts/usr/lib/ruby/vendor_ruby/contracts.rb ┌──────────────────────────────────────────────────────────────────────────────┐ @@ -968,27 +1032,30 @@ All examples were filtered out; ignoring {:focus=>true} -Randomized with seed 41782 - -module methods - should fail for incorrect input - should pass for correct input +Randomized with seed 50680 Contracts: Attrs: - attr_writer_with_contract - setting invalid type - setting valid type - getting attr_reader_with_contract + getting valid type getting invalid type setting - getting valid type attr_accessor_with_contract - setting valid type + getting valid type setting invalid type + setting valid type getting invalid type - getting valid type + attr_writer_with_contract + setting invalid type + getting + setting valid type + +Contract + .override_validator + allows to override default validator + allows to override class validator + allows to override simple validators + allows to override valid contract Contracts: method called with blocks @@ -1015,123 +1082,232 @@ At: /build/ruby-contracts-0.16.0/spec/methods_spec.rb:51 >. Instead consider providing a specific error class or message. This message can be suppressed by setting: `RSpec::Expectations.configuration.on_potential_false_positives = :nothing`. Called from /build/ruby-contracts-0.16.0/spec/methods_spec.rb:51:in `block (3 levels) in '. should enforce return value inside lambda with other parameter -Contract - .override_validator - allows to override simple validators - allows to override default validator - allows to override valid contract - allows to override class validator +Contracts: + instance methods + should allow two classes to have the same method with different contracts + no contracts feature + disables normal contract checks + disables invariants + does not disable pattern matching + protected methods + should raise an error if you try to access a protected method + should raise an error if you try to access a protected method + Contracts to_s formatting in expected + should not contain Contracts:: module prefix + should contain to_s representation within a nested Array contract + should contain to_s representation within a nested Hash contract + should not stringify native types + should show empty quotes as "" + should contain to_s representation within a Hash contract + should not use custom to_s if empty string + should still show nils, not just blank space + should contain to_s representation within an Array contract + Procs + should fail for incorrect input + should pass for correct input + instance and class methods + should allow a class to have an instance method and a class method with the same name + inherited methods +WARNING: Using the `raise_error` matcher without providing a specific error or message risks false positives, since `raise_error` will match when Ruby raises a `NoMethodError`, `NameError` or `ArgumentError`, potentially allowing the expectation to pass without even executing the method you are intending to call. Actual error raised was # Num + At: /build/ruby-contracts-0.16.0/spec/fixtures/fixtures.rb:397 >. Instead consider providing a specific error class or message. This message can be suppressed by setting: `RSpec::Expectations.configuration.on_potential_false_positives = :nothing`. Called from /build/ruby-contracts-0.16.0/spec/contracts_spec.rb:699:in `block (3 levels) in '. + should apply the contract to an inherited method + varargs with block + should pass for correct input + should fail for incorrect input + when block has Func contract + should fail for incorrect input + usage in the singleton class of a subclass + should work with a valid contract on a singleton method + anonymous classes + does not fail when contract is satisfied + fails with error when contract is violated + failure callbacks + when failure_callback returns false + does not call a function for which the contract fails + when failure_callback returns true + calls a function for which the contract fails + default args to functions + should work for a function call that relies on default args + class methods + should pass for correct input + should fail for incorrect input + pattern matching + should fail when the pattern-matched method's contract fails + should not fall through to next pattern when there is a deep contract violation + should work as expected when there is no contract violation + if the return contract for a pattern match fails, it should fail instead of trying the next pattern match + should fail if multiple methods are defined with the same contract (for pattern-matching) + should work for differing arities + when failure_callback was overriden + uses overriden failure_callback when pattern matching fails + falls through to 2nd pattern when first pattern does not match + calls a method when first pattern matches + if the return contract for a pattern match fails, it should fail instead of trying the next pattern match, even with the failure callback + Arrays + should fail for insufficient items + should pass for correct input + should fail for some incorrect elements + classes + should not fail for an object that is the exact type as the contract + should not fail for an object that is a subclass of the type in the contract + contracts on functions + should pass for a function that passes the contract + should fail for a returned function that doesn't pass the contract + should not fail for a returned function that passes the contract + should pass for a function that passes the contract with weak other args + should fail for a function that doesn't pass the contract with weak other args + should fail for a function that doesn't pass the contract + should pass for a function that passes the contract as in tutorial + should fail for a returned function that receives the wrong argument type + blocks + should succeed for maybe proc with no proc + should pass for correct input + should handle properly lack of block when there are other arguments + should fail for incorrect input + should succeed for maybe proc with proc + should fail for maybe proc with invalid input + varargs are given with a maybe block + when a block is NOT passed in, varargs should still be correct + when a block is passed in, varargs should be correct + basic +WARNING: Using the `raise_error` matcher without providing a specific error or message risks false positives, since `raise_error` will match when Ruby raises a `NoMethodError`, `NameError` or `ArgumentError`, potentially allowing the expectation to pass without even executing the method you are intending to call. Actual error raised was #. Instead consider providing a specific error class or message. This message can be suppressed by setting: `RSpec::Expectations.configuration.on_potential_false_positives = :nothing`. Called from /build/ruby-contracts-0.16.0/spec/contracts_spec.rb:8:in `block (3 levels) in '. + should fail for insufficient arguments + should fail for insufficient contracts + singleton methods self in inherited methods + should be a proper self + contracts for functions with no arguments + should work for functions with no args +WARNING: Using the `raise_error` matcher without providing a specific error or message risks false positives, since `raise_error` will match when Ruby raises a `NoMethodError`, `NameError` or `ArgumentError`, potentially allowing the expectation to pass without even executing the method you are intending to call. Actual error raised was #. Instead consider providing a specific error class or message. This message can be suppressed by setting: `RSpec::Expectations.configuration.on_potential_false_positives = :nothing`. Called from /build/ruby-contracts-0.16.0/spec/contracts_spec.rb:28:in `block (3 levels) in '. + should not work for a function with a bad contract + should still work for old-style contracts for functions with no args + usage in singleton class + should fail with proper error when there is contract violation + should work normally when there is no contract violation + builtin contracts usage + allows to use builtin contracts without namespacing and redundant Contracts inclusion + module usage + with singleton methods + should check contract + with instance methods + should check contract + with singleton class methods + should check contract + Hashes + should pass even if some keys don't have contracts + should fail for incorrect input + should pass for exact correct input + should fail if a key with a contract on it isn't provided + varargs + should pass for correct input + should fail for incorrect input + should work with arg before splat + anonymous modules + does not fail when contract is satisfied + fails with error when contract is violated + when called on module itself + fails with error when contract is violated + does not fail when contract is satisfied + classes with a valid? class method + should pass for correct input + should fail for incorrect input + module contracts + passes for instance of class including both modules + does not pass for instance of class not including module + does not pass for instance of class including another module + passes for instance of class including module + passes for instance of class including inherited module + private methods + should raise an error if you try to access a private method + should raise an error if you try to access a private method + classes + should fail for incorrect input + should pass for correct input + classes with extended modules + works correctly with methods with passing contracts + works correctly with methods with passing contracts + should not fail with 'undefined method 'Contract'' + is possible to define it + functype + should correctly print out a class method's type + should correctly print out a instance method's type + +Contracts::Invariants + works when all invariants are holding + raises invariant violation error when any of invariants are not holding + +Contracts::Support + eigenclass? + is truthy for singleton classes + is falsey for non-singleton classes + eigenclass_of + returns the eigenclass of a given object Contracts: - RespondTo: - should fail for an object that doesn't respond to :good - should pass for an object that responds to :good - Bool: - should fail for nil - should pass for an argument that is a boolean + Optional: + can't be used outside of KeywordArgs Xor: - should fail for an object with neither method - should fail for an object with both methods :good and :bad should pass for an object with a method :good + should fail for an object with both methods :good and :bad should pass for an object with a method :bad - Not: - should pass for an argument that isn't nil - should fail for nil - Any: - should pass for strings - should pass for numbers - should pass for procs - should pass for nil - Num: - should pass for Fixnums - should fail for nil and other data types - should pass for Floats - Send: - should fail for an object that returns false for method :good - should pass for an object that returns true for method :good - None: + should fail for an object with neither method + Maybe: + should pass for nils + should pass for nums should fail for strings - should fail for numbers - should fail for procs - should fail for nil Eq: - should pass for a module should fail when not equal should pass for other values + should pass for a module should pass for a class should fail when given instance of class - Maybe: - should pass for nils - should pass for nums - should fail for strings - Nat: - should pass for positive whole numbers - should pass for 0 - should fail for positive non-whole numbers - should fail for nil and other data types - should fail for negative numbers - DescendantOf: - should pass for Array - should fail for a non-class - should fail for a number class - should pass for a hash - Enum: - should fail for an object that is not included - should pass for an object that is included - ArrayOf: - should fail for an array with one non-num - should fail for a non-array - should pass for an array of nums + Exactly: + should pass for an object that is exactly a Parent + should fail for an object that inherits from Parent + should fail for an object that is not related to Parent at all Pos: - should fail for 0 + should fail for nil and other data types should pass for positive numbers + should fail for 0 should fail for negative numbers - should fail for nil and other data types - Exactly: - should fail for an object that is not related to Parent at all - should fail for an object that inherits from Parent - should pass for an object that is exactly a Parent - RangeOf: - should pass for a range of dates - should fail for a range with incorrect data type - should fail for a badly-defined range - should fail for a non-range - should pass for a range of nums - Optional: - can't be used outside of KeywordArgs - KeywordArgs: - should fail if some keys don't have contracts - should fail if a key with a contract on it isn't provided - should pass for exact correct input - should fail for incorrect input - should pass if a method is overloaded with non-KeywordArgs - And: - should pass for an object of class A that has a method :good - should fail for an object that has a method :good but isn't of class A StrictHash: when given an input with extra keys raises an error - when given not a hash - raises an error when given an input with missing keys raises an error when given an input with correct keys but wrong types raises an error + when given not a hash + raises an error when given an exact correct input does not raise an error Neg: - should fail for nil and other data types - should pass for negative numbers should fail for 0 + should fail for nil and other data types should fail for positive numbers - SetOf: - should pass for a set of nums + should pass for negative numbers + And: + should fail for an object that has a method :good but isn't of class A + should pass for an object of class A that has a method :good + Nat: + should fail for positive non-whole numbers + should fail for nil and other data types + should fail for negative numbers + should pass for positive whole numbers + should pass for 0 + None: + should fail for nil + should fail for procs + should fail for numbers + should fail for strings + Enum: + should fail for an object that is not included + should pass for an object that is included + ArrayOf: should fail for a non-array + should pass for an array of nums should fail for an array with one non-num - Or: - should fail for nil - should pass for strings - should pass for nums HashOf: doesn't allow to specify multiple key-value pairs with pretty syntax #to_s @@ -1147,11 +1323,57 @@ is expected to raise ContractError is expected to raise ContractError is expected to raise ContractError + Bool: + should pass for an argument that is a boolean + should fail for nil + KeywordArgs: + should fail if a key with a contract on it isn't provided + should pass for exact correct input + should fail if some keys don't have contracts + should pass if a method is overloaded with non-KeywordArgs + should fail for incorrect input + RangeOf: + should fail for a badly-defined range + should pass for a range of nums + should fail for a range with incorrect data type + should fail for a non-range + should pass for a range of dates + Not: + should pass for an argument that isn't nil + should fail for nil + Num: + should pass for Floats + should fail for nil and other data types + should pass for Fixnums + DescendantOf: + should pass for a hash + should pass for Array + should fail for a non-class + should fail for a number class + Or: + should pass for nums + should fail for nil + should pass for strings + RespondTo: + should pass for an object that responds to :good + should fail for an object that doesn't respond to :good + Send: + should pass for an object that returns true for method :good + should fail for an object that returns false for method :good + SetOf: + should pass for a set of nums + should fail for an array with one non-num + should fail for a non-array + Any: + should pass for procs + should pass for strings + should pass for nil + should pass for numbers Contract validators Range - fails when value is incorrect fails when value is not in range + fails when value is incorrect passes when value is in range Regexp should pass for a matching string @@ -1161,214 +1383,56 @@ within a hash should pass for a matching string -Contracts: - pattern matching - should not fall through to next pattern when there is a deep contract violation - if the return contract for a pattern match fails, it should fail instead of trying the next pattern match - should work for differing arities - should fail when the pattern-matched method's contract fails - should work as expected when there is no contract violation - should fail if multiple methods are defined with the same contract (for pattern-matching) - when failure_callback was overriden - if the return contract for a pattern match fails, it should fail instead of trying the next pattern match, even with the failure callback - falls through to 2nd pattern when first pattern does not match - uses overriden failure_callback when pattern matching fails - calls a method when first pattern matches - inherited methods -WARNING: Using the `raise_error` matcher without providing a specific error or message risks false positives, since `raise_error` will match when Ruby raises a `NoMethodError`, `NameError` or `ArgumentError`, potentially allowing the expectation to pass without even executing the method you are intending to call. Actual error raised was # Num - At: /build/ruby-contracts-0.16.0/spec/fixtures/fixtures.rb:397 >. Instead consider providing a specific error class or message. This message can be suppressed by setting: `RSpec::Expectations.configuration.on_potential_false_positives = :nothing`. Called from /build/ruby-contracts-0.16.0/spec/contracts_spec.rb:699:in `block (3 levels) in '. - should apply the contract to an inherited method - private methods - should raise an error if you try to access a private method - should raise an error if you try to access a private method - Hashes - should pass even if some keys don't have contracts - should pass for exact correct input - should fail for incorrect input - should fail if a key with a contract on it isn't provided - instance and class methods - should allow a class to have an instance method and a class method with the same name - varargs - should pass for correct input - should fail for incorrect input - should work with arg before splat - contracts on functions - should fail for a returned function that receives the wrong argument type - should pass for a function that passes the contract as in tutorial - should pass for a function that passes the contract with weak other args - should fail for a function that doesn't pass the contract with weak other args - should not fail for a returned function that passes the contract - should fail for a returned function that doesn't pass the contract - should pass for a function that passes the contract - should fail for a function that doesn't pass the contract - protected methods - should raise an error if you try to access a protected method - should raise an error if you try to access a protected method - instance methods - should allow two classes to have the same method with different contracts - classes with extended modules - is possible to define it - works correctly with methods with passing contracts - should not fail with 'undefined method 'Contract'' - works correctly with methods with passing contracts - basic - should fail for insufficient contracts -WARNING: Using the `raise_error` matcher without providing a specific error or message risks false positives, since `raise_error` will match when Ruby raises a `NoMethodError`, `NameError` or `ArgumentError`, potentially allowing the expectation to pass without even executing the method you are intending to call. Actual error raised was #. Instead consider providing a specific error class or message. This message can be suppressed by setting: `RSpec::Expectations.configuration.on_potential_false_positives = :nothing`. Called from /build/ruby-contracts-0.16.0/spec/contracts_spec.rb:8:in `block (3 levels) in '. - should fail for insufficient arguments - varargs with block - should pass for correct input - should fail for incorrect input - when block has Func contract - should fail for incorrect input - usage in the singleton class of a subclass - should work with a valid contract on a singleton method - no contracts feature - disables invariants - does not disable pattern matching - disables normal contract checks - classes - should fail for incorrect input - should pass for correct input - classes with a valid? class method - should fail for incorrect input - should pass for correct input - anonymous modules - fails with error when contract is violated - does not fail when contract is satisfied - when called on module itself - does not fail when contract is satisfied - fails with error when contract is violated - Arrays - should pass for correct input - should fail for insufficient items - should fail for some incorrect elements - functype - should correctly print out a class method's type - should correctly print out a instance method's type - Contracts to_s formatting in expected - should contain to_s representation within a Hash contract - should contain to_s representation within an Array contract - should not use custom to_s if empty string - should contain to_s representation within a nested Array contract - should show empty quotes as "" - should not stringify native types - should not contain Contracts:: module prefix - should contain to_s representation within a nested Hash contract - should still show nils, not just blank space - singleton methods self in inherited methods - should be a proper self - usage in singleton class - should fail with proper error when there is contract violation - should work normally when there is no contract violation - builtin contracts usage - allows to use builtin contracts without namespacing and redundant Contracts inclusion - class methods - should pass for correct input - should fail for incorrect input - Procs - should fail for incorrect input - should pass for correct input - default args to functions - should work for a function call that relies on default args - classes - should not fail for an object that is the exact type as the contract - should not fail for an object that is a subclass of the type in the contract - module usage - with instance methods - should check contract - with singleton methods - should check contract - with singleton class methods - should check contract - failure callbacks - when failure_callback returns false - does not call a function for which the contract fails - when failure_callback returns true - calls a function for which the contract fails - module contracts - does not pass for instance of class not including module - passes for instance of class including inherited module - does not pass for instance of class including another module - passes for instance of class including module - passes for instance of class including both modules - blocks - should succeed for maybe proc with proc - should pass for correct input - should succeed for maybe proc with no proc - should fail for maybe proc with invalid input - should handle properly lack of block when there are other arguments - should fail for incorrect input - varargs are given with a maybe block - when a block is passed in, varargs should be correct - when a block is NOT passed in, varargs should still be correct - contracts for functions with no arguments -WARNING: Using the `raise_error` matcher without providing a specific error or message risks false positives, since `raise_error` will match when Ruby raises a `NoMethodError`, `NameError` or `ArgumentError`, potentially allowing the expectation to pass without even executing the method you are intending to call. Actual error raised was #. Instead consider providing a specific error class or message. This message can be suppressed by setting: `RSpec::Expectations.configuration.on_potential_false_positives = :nothing`. Called from /build/ruby-contracts-0.16.0/spec/contracts_spec.rb:28:in `block (3 levels) in '. - should not work for a function with a bad contract - should work for functions with no args - should still work for old-style contracts for functions with no args - anonymous classes - does not fail when contract is satisfied - fails with error when contract is violated - -Contracts::Invariants - raises invariant violation error when any of invariants are not holding - works when all invariants are holding - -Contracts::Support - eigenclass_of - returns the eigenclass of a given object - eigenclass? - is truthy for singleton classes - is falsey for non-singleton classes +module methods + should fail for incorrect input + should pass for correct input -Top 10 slowest examples (0.08854 seconds, 36.9% of total time): +Top 10 slowest examples (0.04496 seconds, 29.1% of total time): + Contracts: protected methods should raise an error if you try to access a protected method + 0.00927 seconds ./spec/contracts_spec.rb:690 Contract.override_validator allows to override default validator - 0.01927 seconds ./spec/override_validators_spec.rb:127 + 0.00774 seconds ./spec/override_validators_spec.rb:127 Contracts: private methods should raise an error if you try to access a private method - 0.01659 seconds ./spec/contracts_spec.rb:680 + 0.00766 seconds ./spec/contracts_spec.rb:680 Contracts: protected methods should raise an error if you try to access a protected method - 0.01574 seconds ./spec/contracts_spec.rb:690 - Contracts: protected methods should raise an error if you try to access a protected method - 0.0124 seconds ./spec/contracts_spec.rb:686 + 0.00705 seconds ./spec/contracts_spec.rb:686 Contracts: private methods should raise an error if you try to access a private method - 0.01074 seconds ./spec/contracts_spec.rb:676 - Contracts::Support eigenclass? is truthy for singleton classes - 0.00455 seconds ./spec/support_spec.rb:8 - module methods should fail for incorrect input - 0.00272 seconds ./spec/module_spec.rb:15 + 0.00517 seconds ./spec/contracts_spec.rb:676 + Contract.override_validator allows to override simple validators + 0.00234 seconds ./spec/override_validators_spec.rb:9 Contract.override_validator allows to override class validator - 0.0025 seconds ./spec/override_validators_spec.rb:96 + 0.00154 seconds ./spec/override_validators_spec.rb:96 Contracts: contracts for functions with no arguments should not work for a function with a bad contract - 0.00237 seconds ./spec/contracts_spec.rb:27 - Contracts: None: should fail for procs - 0.00166 seconds ./spec/builtin_contracts_spec.rb:143 + 0.00147 seconds ./spec/contracts_spec.rb:27 + Contracts::Support eigenclass? is truthy for singleton classes + 0.00143 seconds ./spec/support_spec.rb:8 + Contracts: Attrs: attr_reader_with_contract getting invalid type + 0.00129 seconds ./spec/attrs_spec.rb:25 Top 9 slowest example groups: Contract - 0.00651 seconds average (0.02603 seconds / 4 examples) ./spec/override_validators_spec.rb:1 + 0.0034 seconds average (0.01361 seconds / 4 examples) ./spec/override_validators_spec.rb:1 Contracts::Support - 0.00194 seconds average (0.00581 seconds / 3 examples) ./spec/support_spec.rb:2 - module methods - 0.00174 seconds average (0.00348 seconds / 2 examples) ./spec/module_spec.rb:10 + 0.00086 seconds average (0.00258 seconds / 3 examples) ./spec/support_spec.rb:2 Contracts: - 0.00121 seconds average (0.12185 seconds / 101 examples) ./spec/contracts_spec.rb:1 + 0.00079 seconds average (0.08017 seconds / 101 examples) ./spec/contracts_spec.rb:1 Contracts: - 0.00076 seconds average (0.00303 seconds / 4 examples) ./spec/methods_spec.rb:1 + 0.00059 seconds average (0.00235 seconds / 4 examples) ./spec/methods_spec.rb:1 Contracts: - 0.00074 seconds average (0.06615 seconds / 89 examples) ./spec/builtin_contracts_spec.rb:1 - Contract validators - 0.00074 seconds average (0.00515 seconds / 7 examples) ./spec/validators_spec.rb:3 + 0.00056 seconds average (0.00562 seconds / 10 examples) ./spec/attrs_spec.rb:1 Contracts: - 0.00059 seconds average (0.00589 seconds / 10 examples) ./spec/attrs_spec.rb:1 + 0.00049 seconds average (0.04396 seconds / 89 examples) ./spec/builtin_contracts_spec.rb:1 + Contract validators + 0.00046 seconds average (0.00324 seconds / 7 examples) ./spec/validators_spec.rb:3 Contracts::Invariants - 0.0005 seconds average (0.00099 seconds / 2 examples) ./spec/invariants_spec.rb:2 + 0.00041 seconds average (0.00081 seconds / 2 examples) ./spec/invariants_spec.rb:2 + module methods + 0.00038 seconds average (0.00077 seconds / 2 examples) ./spec/module_spec.rb:10 -Finished in 0.23993 seconds (files took 0.42437 seconds to load) +Finished in 0.15427 seconds (files took 0.20539 seconds to load) 222 examples, 0 failures -Randomized with seed 41782 +Randomized with seed 50680 ┌──────────────────────────────────────────────────────────────────────────────┐ @@ -1398,12 +1462,15 @@ dpkg-genchanges: info: binary-only upload (no source code included) dpkg-source --after-build . dpkg-buildpackage: info: binary-only upload (no source included) +I: copying local configuration +I: user script /srv/workspace/pbuilder/34691/tmp/hooks/B01_cleanup starting +I: user script /srv/workspace/pbuilder/34691/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/10153 and its subdirectories -I: Current time: Sat May 29 20:28:27 -12 2021 -I: pbuilder-time-stamp: 1622363307 +I: removing directory /srv/workspace/pbuilder/34691 and its subdirectories +I: Current time: Sun Jul 3 04:51:57 +14 2022 +I: pbuilder-time-stamp: 1656773517