Diff of the two buildlogs: -- --- b1/build.log 2021-08-15 04:52:31.060145961 +0000 +++ b2/build.log 2021-08-15 05:06:36.916365992 +0000 @@ -1,6 +1,6 @@ I: pbuilder: network access will be disabled during build -I: Current time: Sat Aug 14 16:50:17 -12 2021 -I: pbuilder-time-stamp: 1629003017 +I: Current time: Sun Aug 15 18:52:46 +14 2021 +I: pbuilder-time-stamp: 1629003166 I: Building the build Environment I: extracting base tarball [/var/cache/pbuilder/bullseye-reproducible-base.tgz] I: copying local configuration @@ -16,8 +16,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.gj9qI40P/trustedkeys.kbx': General error -gpgv: Signature made Wed Aug 23 04:58:41 2017 -12 +gpgv: keyblock resource '/tmp/dpkg-verify-sig.4bSzFXF3/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 @@ -26,135 +26,169 @@ 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/3866/tmp/hooks/D02_print_environment starting +I: user script /srv/workspace/pbuilder/32145/tmp/hooks/D01_modify_environment starting +debug: Running on cbxi4b. +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/32145/tmp/hooks/D01_modify_environment finished +I: user script /srv/workspace/pbuilder/32145/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='armhf' - DEBIAN_FRONTEND='noninteractive' - DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all,-fixfilepath parallel=3' - DISTRIBUTION='' - HOME='/root' - HOST_ARCH='armhf' + 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]="arm-unknown-linux-gnueabihf") + 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=armhf + DEBIAN_FRONTEND=noninteractive + DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all,-fixfilepath parallel=4' + DIRSTACK=() + DISTRIBUTION= + EUID=0 + FUNCNAME=([0]="Echo" [1]="main") + GROUPS=() + HOME=/root + HOSTNAME=i-capture-the-hostname + HOSTTYPE=arm + HOST_ARCH=armhf IFS=' ' - INVOCATION_ID='8c67605f4a9645df8923b748ba6e139c' - LANG='C' - LANGUAGE='en_US:en' - LC_ALL='C' - 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='3866' - PS1='# ' - PS2='> ' + INVOCATION_ID=fd9741e961e643e08d717b1ebd8eea33 + LANG=C + LANGUAGE=it_CH:it + LC_ALL=C + MACHTYPE=arm-unknown-linux-gnueabihf + MAIL=/var/mail/root + OPTERR=1 + OPTIND=1 + OSTYPE=linux-gnueabihf + 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=32145 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.eTZj9PEiC1/pbuilderrc_VwhT --hookdir /etc/pbuilder/first-build-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/bullseye-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/tmp.eTZj9PEiC1/b1 --logfile b1/build.log ruby-contracts_0.16.0-1.dsc' - SUDO_GID='114' - SUDO_UID='108' - SUDO_USER='jenkins' - TERM='unknown' - TZ='/usr/share/zoneinfo/Etc/GMT+12' - USER='root' - _='/usr/bin/systemd-run' - http_proxy='http://10.0.0.15:8000/' + 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.eTZj9PEiC1/pbuilderrc_JjvT --hookdir /etc/pbuilder/rebuild-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/bullseye-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/tmp.eTZj9PEiC1/b2 --logfile b2/build.log --extrapackages usrmerge ruby-contracts_0.16.0-1.dsc' + SUDO_GID=116 + SUDO_UID=112 + SUDO_USER=jenkins + TERM=unknown + TZ=/usr/share/zoneinfo/Etc/GMT-14 + UID=0 + USER=root + _='I: set' + http_proxy=http://10.0.0.15:8000/ I: uname -a - Linux jtx1a 5.10.0-8-arm64 #1 SMP Debian 5.10.46-4 (2021-08-03) aarch64 GNU/Linux + Linux i-capture-the-hostname 5.10.0-8-armmp #1 SMP Debian 5.10.46-4 (2021-08-03) armv7l GNU/Linux I: ls -l /bin total 3580 - -rwxr-xr-x 1 root root 816764 Aug 4 08:25 bash - -rwxr-xr-x 3 root root 26052 Jul 20 2020 bunzip2 - -rwxr-xr-x 3 root root 26052 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 26052 Jul 20 2020 bzip2 - -rwxr-xr-x 1 root root 9636 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 26668 Sep 22 2020 cat - -rwxr-xr-x 1 root root 43104 Sep 22 2020 chgrp - -rwxr-xr-x 1 root root 38984 Sep 22 2020 chmod - -rwxr-xr-x 1 root root 43112 Sep 22 2020 chown - -rwxr-xr-x 1 root root 92616 Sep 22 2020 cp - -rwxr-xr-x 1 root root 75524 Dec 10 2020 dash - -rwxr-xr-x 1 root root 75880 Sep 22 2020 date - -rwxr-xr-x 1 root root 55436 Sep 22 2020 dd - -rwxr-xr-x 1 root root 59912 Sep 22 2020 df - -rwxr-xr-x 1 root root 96764 Sep 22 2020 dir - -rwxr-xr-x 1 root root 55012 Jul 28 07:09 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 22508 Sep 22 2020 echo - -rwxr-xr-x 1 root root 28 Nov 9 2020 egrep - -rwxr-xr-x 1 root root 22496 Sep 22 2020 false - -rwxr-xr-x 1 root root 28 Nov 9 2020 fgrep - -rwxr-xr-x 1 root root 47492 Jul 28 07:09 findmnt - -rwsr-xr-x 1 root root 26076 Feb 26 04:12 fusermount - -rwxr-xr-x 1 root root 124508 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 64212 Mar 2 11:30 gzip - -rwxr-xr-x 1 root root 13784 Nov 6 2019 hostname - -rwxr-xr-x 1 root root 43180 Sep 22 2020 ln - -rwxr-xr-x 1 root root 35068 Feb 7 2020 login - -rwxr-xr-x 1 root root 96764 Sep 22 2020 ls - -rwxr-xr-x 1 root root 99940 Jul 28 07:09 lsblk - -rwxr-xr-x 1 root root 51408 Sep 22 2020 mkdir - -rwxr-xr-x 1 root root 43184 Sep 22 2020 mknod - -rwxr-xr-x 1 root root 30780 Sep 22 2020 mktemp - -rwxr-xr-x 1 root root 34408 Jul 28 07:09 more - -rwsr-xr-x 1 root root 34400 Jul 28 07:09 mount - -rwxr-xr-x 1 root root 9824 Jul 28 07:09 mountpoint - -rwxr-xr-x 1 root root 88524 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 26652 Sep 22 2020 pwd - lrwxrwxrwx 1 root root 4 Aug 4 08:25 rbash -> bash - -rwxr-xr-x 1 root root 30740 Sep 22 2020 readlink - -rwxr-xr-x 1 root root 43104 Sep 22 2020 rm - -rwxr-xr-x 1 root root 30732 Sep 22 2020 rmdir - -rwxr-xr-x 1 root root 14144 Sep 27 2020 run-parts - -rwxr-xr-x 1 root root 76012 Dec 22 2018 sed - lrwxrwxrwx 1 root root 4 Aug 12 21:26 sh -> dash - -rwxr-xr-x 1 root root 22532 Sep 22 2020 sleep - -rwxr-xr-x 1 root root 55360 Sep 22 2020 stty - -rwsr-xr-x 1 root root 46704 Jul 28 07:09 su - -rwxr-xr-x 1 root root 22532 Sep 22 2020 sync - -rwxr-xr-x 1 root root 340872 Feb 16 21:55 tar - -rwxr-xr-x 1 root root 9808 Sep 27 2020 tempfile - -rwxr-xr-x 1 root root 67696 Sep 22 2020 touch - -rwxr-xr-x 1 root root 22496 Sep 22 2020 true - -rwxr-xr-x 1 root root 9636 Feb 26 04:12 ulockmgr_server - -rwsr-xr-x 1 root root 22108 Jul 28 07:09 umount - -rwxr-xr-x 1 root root 22520 Sep 22 2020 uname - -rwxr-xr-x 2 root root 2346 Mar 2 11:30 uncompress - -rwxr-xr-x 1 root root 96764 Sep 22 2020 vdir - -rwxr-xr-x 1 root root 38512 Jul 28 07:09 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/3866/tmp/hooks/D02_print_environment finished + -rwxr-xr-x 1 root root 816764 Aug 5 10:25 bash + -rwxr-xr-x 3 root root 26052 Jul 21 2020 bunzip2 + -rwxr-xr-x 3 root root 26052 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 26052 Jul 21 2020 bzip2 + -rwxr-xr-x 1 root root 9636 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 26668 Sep 23 2020 cat + -rwxr-xr-x 1 root root 43104 Sep 23 2020 chgrp + -rwxr-xr-x 1 root root 38984 Sep 23 2020 chmod + -rwxr-xr-x 1 root root 43112 Sep 23 2020 chown + -rwxr-xr-x 1 root root 92616 Sep 23 2020 cp + -rwxr-xr-x 1 root root 75524 Dec 11 2020 dash + -rwxr-xr-x 1 root root 75880 Sep 23 2020 date + -rwxr-xr-x 1 root root 55436 Sep 23 2020 dd + -rwxr-xr-x 1 root root 59912 Sep 23 2020 df + -rwxr-xr-x 1 root root 96764 Sep 23 2020 dir + -rwxr-xr-x 1 root root 55012 Jul 29 09:09 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 22508 Sep 23 2020 echo + -rwxr-xr-x 1 root root 28 Nov 10 2020 egrep + -rwxr-xr-x 1 root root 22496 Sep 23 2020 false + -rwxr-xr-x 1 root root 28 Nov 10 2020 fgrep + -rwxr-xr-x 1 root root 47492 Jul 29 09:09 findmnt + -rwsr-xr-x 1 root root 26076 Feb 27 06:12 fusermount + -rwxr-xr-x 1 root root 124508 Nov 10 2020 grep + -rwxr-xr-x 2 root root 2346 Mar 3 13:30 gunzip + -rwxr-xr-x 1 root root 6376 Mar 3 13:30 gzexe + -rwxr-xr-x 1 root root 64212 Mar 3 13:30 gzip + -rwxr-xr-x 1 root root 13784 Nov 8 2019 hostname + -rwxr-xr-x 1 root root 43180 Sep 23 2020 ln + -rwxr-xr-x 1 root root 35068 Feb 8 2020 login + -rwxr-xr-x 1 root root 96764 Sep 23 2020 ls + -rwxr-xr-x 1 root root 99940 Jul 29 09:09 lsblk + -rwxr-xr-x 1 root root 51408 Sep 23 2020 mkdir + -rwxr-xr-x 1 root root 43184 Sep 23 2020 mknod + -rwxr-xr-x 1 root root 30780 Sep 23 2020 mktemp + -rwxr-xr-x 1 root root 34408 Jul 29 09:09 more + -rwsr-xr-x 1 root root 34400 Jul 29 09:09 mount + -rwxr-xr-x 1 root root 9824 Jul 29 09:09 mountpoint + -rwxr-xr-x 1 root root 88524 Sep 23 2020 mv + lrwxrwxrwx 1 root root 8 Nov 8 2019 nisdomainname -> hostname + lrwxrwxrwx 1 root root 14 Apr 19 05:38 pidof -> /sbin/killall5 + -rwxr-xr-x 1 root root 26652 Sep 23 2020 pwd + lrwxrwxrwx 1 root root 4 Aug 5 10:25 rbash -> bash + -rwxr-xr-x 1 root root 30740 Sep 23 2020 readlink + -rwxr-xr-x 1 root root 43104 Sep 23 2020 rm + -rwxr-xr-x 1 root root 30732 Sep 23 2020 rmdir + -rwxr-xr-x 1 root root 14144 Sep 28 2020 run-parts + -rwxr-xr-x 1 root root 76012 Dec 23 2018 sed + lrwxrwxrwx 1 root root 4 Aug 15 18:55 sh -> bash + lrwxrwxrwx 1 root root 4 Aug 11 23:30 sh.distrib -> dash + -rwxr-xr-x 1 root root 22532 Sep 23 2020 sleep + -rwxr-xr-x 1 root root 55360 Sep 23 2020 stty + -rwsr-xr-x 1 root root 46704 Jul 29 09:09 su + -rwxr-xr-x 1 root root 22532 Sep 23 2020 sync + -rwxr-xr-x 1 root root 340872 Feb 17 23:55 tar + -rwxr-xr-x 1 root root 9808 Sep 28 2020 tempfile + -rwxr-xr-x 1 root root 67696 Sep 23 2020 touch + -rwxr-xr-x 1 root root 22496 Sep 23 2020 true + -rwxr-xr-x 1 root root 9636 Feb 27 06:12 ulockmgr_server + -rwsr-xr-x 1 root root 22108 Jul 29 09:09 umount + -rwxr-xr-x 1 root root 22520 Sep 23 2020 uname + -rwxr-xr-x 2 root root 2346 Mar 3 13:30 uncompress + -rwxr-xr-x 1 root root 96764 Sep 23 2020 vdir + -rwxr-xr-x 1 root root 38512 Jul 29 09:09 wdctl + lrwxrwxrwx 1 root root 8 Nov 8 2019 ypdomainname -> hostname + -rwxr-xr-x 1 root root 1984 Mar 3 13:30 zcat + -rwxr-xr-x 1 root root 1678 Mar 3 13:30 zcmp + -rwxr-xr-x 1 root root 5880 Mar 3 13:30 zdiff + -rwxr-xr-x 1 root root 29 Mar 3 13:30 zegrep + -rwxr-xr-x 1 root root 29 Mar 3 13:30 zfgrep + -rwxr-xr-x 1 root root 2081 Mar 3 13:30 zforce + -rwxr-xr-x 1 root root 7585 Mar 3 13:30 zgrep + -rwxr-xr-x 1 root root 2206 Mar 3 13:30 zless + -rwxr-xr-x 1 root root 1842 Mar 3 13:30 zmore + -rwxr-xr-x 1 root root 4553 Mar 3 13:30 znew +I: user script /srv/workspace/pbuilder/32145/tmp/hooks/D02_print_environment finished -> Attempting to satisfy build-dependencies -> Creating pbuilder-satisfydepends-dummy package Package: pbuilder-satisfydepends-dummy @@ -327,7 +361,7 @@ Get: 129 http://deb.debian.org/debian bullseye/main armhf ruby-rspec-expectations all 3.9.0c2e2m1s3-2 [89.9 kB] Get: 130 http://deb.debian.org/debian bullseye/main armhf ruby-rspec-mocks all 3.9.0c2e2m1s3-2 [81.4 kB] Get: 131 http://deb.debian.org/debian bullseye/main armhf ruby-rspec all 3.9.0c2e2m1s3-2 [8348 B] -Fetched 42.4 MB in 8s (5236 kB/s) +Fetched 42.4 MB in 12s (3503 kB/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 ... 19398 files and directories currently installed.) @@ -879,9 +913,42 @@ 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 armhf libnumber-compare-perl all 0.03-1.1 [6956 B] +Get:2 http://deb.debian.org/debian bullseye/main armhf libtext-glob-perl all 0.11-1 [8888 B] +Get:3 http://deb.debian.org/debian bullseye/main armhf libfile-find-rule-perl all 0.34-1 [30.6 kB] +Get:4 http://deb.debian.org/debian bullseye/main armhf usrmerge all 25 [13.0 kB] +debconf: delaying package configuration, since apt-utils is not installed +Fetched 59.5 kB in 1s (71.9 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 ... 26566 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 && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games" HOME="/nonexistent/first-build" dpkg-genchanges -S > ../ruby-contracts_0.16.0-1_source.changes +hostname: Name or service not known +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 && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path" HOME="/nonexistent/second-build" dpkg-genchanges -S > ../ruby-contracts_0.16.0-1_source.changes dpkg-buildpackage: info: source package ruby-contracts dpkg-buildpackage: info: source version 0.16.0-1 dpkg-buildpackage: info: source distribution unstable @@ -920,24 +987,24 @@ └──────────────────────────────────────────────────────────────────────────────┘ 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/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.rb /build/ruby-contracts-0.16.0/debian/ruby-contracts/usr/lib/ruby/vendor_ruby/contracts.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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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.rb /build/ruby-contracts-0.16.0/debian/ruby-contracts/usr/lib/ruby/vendor_ruby/contracts.rb ┌──────────────────────────────────────────────────────────────────────────────┐ │ Install Rubygems integration metadata │ @@ -963,277 +1030,247 @@ All examples were filtered out; ignoring {:focus=>true} -Randomized with seed 38442 - -Contracts::Support - eigenclass? - is truthy for singleton classes - is falsey for non-singleton classes - eigenclass_of - returns the eigenclass of a given object - -module methods - should pass for correct input - should fail for incorrect input - -Contracts::Invariants - works when all invariants are holding - raises invariant violation error when any of invariants are not holding - -Contract - .override_validator - allows to override class validator - allows to override default validator - allows to override simple validators - allows to override valid contract +Randomized with seed 53117 Contracts: - Arrays - should fail for insufficient items - should pass for correct input - should fail for some incorrect elements - varargs - should work with arg before splat + Hashes + should fail if a key with a contract on it isn't provided + should fail for incorrect input + should pass even if some keys don't have contracts + should pass for exact correct input + varargs with block should pass for correct input should fail for incorrect input - usage in the singleton class of a subclass - should work with a valid contract on a singleton method - classes with extended modules - works correctly with methods with passing contracts - should not fail with 'undefined method 'Contract'' - works correctly with methods with passing contracts - is possible to define it + when block has Func contract + should fail for incorrect input + instance methods + should allow two classes to have the same method with different contracts pattern matching - should work as expected when there is no contract violation should work for differing arities + should work as expected when there is no contract violation should fail if multiple methods are defined with the same contract (for pattern-matching) should fail when the pattern-matched method's contract fails - if the return contract for a pattern match fails, it should fail instead of trying the next pattern match 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 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 + uses overriden failure_callback when pattern matching fails calls a method when first pattern matches falls through to 2nd pattern when first pattern does not match - uses overriden failure_callback when pattern matching fails - classes - should fail for incorrect input - should pass for correct input - varargs with block - should pass for correct input + if the return contract for a pattern match fails, it should fail instead of trying the next pattern match, even with the failure callback + Procs should fail for incorrect input - when block has Func contract - should fail for incorrect input - classes with a valid? class method should pass for correct input - should fail for incorrect input + functype + should correctly print out a instance method's type + should correctly print out a class method's type + 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 + anonymous classes + fails with error when contract is violated + does not fail when contract is satisfied + 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 + default args to functions + should work for a function call that relies on default args + singleton methods self in inherited methods + should be a proper self class methods 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 - Hashes + classes with a valid? class method should fail for incorrect input - should fail if a key with a contract on it isn't provided - should pass for exact correct input - should pass even if some keys don't have contracts + should pass for correct input 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 for functions with no arguments should work for functions with no args - should still work for old-style contracts 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 - module contracts - passes for instance of class including both modules - passes for instance of class including inherited module - does not pass for instance of class including another module - does not pass for instance of class not including module - passes for instance of class including 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 - usage in singleton class - should work normally when there is no contract violation - should fail with proper error when there is contract violation - builtin contracts usage - allows to use builtin contracts without namespacing and redundant Contracts inclusion - 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 - Contracts to_s formatting in expected - should still show nils, not just blank space - should contain to_s representation within a Hash contract - should not stringify native types - should show empty quotes as "" - should not use custom to_s if empty string - should not contain Contracts:: module prefix - should contain to_s representation within an Array contract - should contain to_s representation within a nested Hash contract - should contain to_s representation within a nested Array contract - instance methods - should allow two classes to have the same method with different contracts - singleton methods self in inherited methods - should be a proper self - contracts on functions - should pass for a function that passes the contract - should fail for a returned function that receives the wrong argument type - should fail for a 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 pass for a function that passes the contract as in tutorial - should fail for a function that doesn't pass the contract with weak other args - should fail for a returned function that doesn't pass the contract + should still work for old-style contracts for functions with no args + 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 + module usage + with instance methods + should check contract + with singleton methods + should check contract + with singleton class methods + should check contract + classes + should fail for incorrect input + should pass for correct input + failure callbacks + when failure_callback returns true + calls a function for which the contract fails + when failure_callback returns false + does not call a function for which the contract fails no contracts feature disables normal contract checks disables invariants does not disable pattern matching - 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 - 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 - anonymous classes - does not fail when contract is satisfied - fails with error when contract is violated - functype - should correctly print out a instance method's type - should correctly print out a class method's type - instance and class methods - should allow a class to have an instance method and a class method with the same name + contracts on functions + 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 not fail for a returned function that passes the contract + should pass for a function that passes the contract + should fail for a function that doesn't pass the contract + should fail for a returned function that doesn't pass the contract + should fail for a function that doesn't pass the contract with weak other args + should fail for a returned function that receives the wrong argument type 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 - blocks + fails with error when contract is violated + module contracts + passes for instance of class including module + 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 both modules + 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 + instance and class methods + should allow a class to have an instance method and a class method with the same name + Arrays + should fail for some incorrect elements + should pass for correct input + should fail for insufficient items + classes + should not fail for an object that is a subclass of the type in the contract + should not fail for an object that is the exact type as the contract + varargs + should work with arg before splat should fail for incorrect input should pass for correct input + blocks should succeed for maybe proc with proc - should fail for maybe proc with invalid input - should succeed for maybe proc with no proc should handle properly lack of block when there are other arguments - 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 - module usage - with singleton methods - should check contract - with singleton class methods - should check contract - with instance methods - should check contract - 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 - Procs should pass for correct input + should succeed for maybe proc with no proc + should fail for maybe proc with invalid input 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 + usage in the singleton class of a subclass + should work with a valid contract on a singleton 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 + Contracts to_s formatting in expected + should contain to_s representation within a nested Array contract + should contain to_s representation within an Array contract + should show empty quotes as "" + should contain to_s representation within a Hash contract + should not use custom to_s if empty string + should contain to_s representation within a nested Hash contract + should not contain Contracts:: module prefix + should still show nils, not just blank space + should not stringify native types -Contract validators - Range - fails when value is not in range - passes when value is in range - fails when value is incorrect - Regexp - should pass for a matching string - should fail for a non-matching string - within a hash - should pass for a matching string - within an array - should pass for a matching string +Contracts::Invariants + works when all invariants are holding + raises invariant violation error when any of invariants are not holding Contracts: Attrs: - attr_reader_with_contract - getting valid type - getting invalid type - setting attr_accessor_with_contract + setting invalid type getting invalid type setting valid type getting valid type - setting invalid type + attr_reader_with_contract + setting + getting invalid type + getting valid type attr_writer_with_contract + getting setting invalid type setting valid type - getting -Contracts: - method called with blocks -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/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 -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/methods_spec.rb:47 >. 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:47:in `block (3 levels) in '. - should enforce return value inside lambda with no other parameter -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/methods_spec.rb:43 >. 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:43:in `block (3 levels) in '. - should enforce return value inside block with other parameter -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: >. 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:39:in `block (3 levels) in '. - should enforce return value inside block with no other parameter +Contracts::Support + eigenclass? + is truthy for singleton classes + is falsey for non-singleton classes + eigenclass_of + returns the eigenclass of a given object Contracts: - Pos: - should fail for 0 + Neg: should fail for nil and other data types - should pass for positive numbers - should fail for negative numbers - Or: - should pass for strings - should pass for nums - should fail for nil - Optional: - can't be used outside of KeywordArgs + should fail for positive numbers + should fail for 0 + should pass for negative numbers + 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 + should fail for nil + SetOf: + should fail for a non-array + should fail for an array with one non-num + should pass for a set of nums Enum: should pass for an object that is included should fail for an object that is not included + Xor: + should fail for an object with both methods :good and :bad + should fail for an object with neither method + should pass for an object with a method :bad + should pass for an object with a method :good + Any: + should pass for numbers + should pass for nil + should pass for strings + should pass for procs + 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 + Num: + should pass for Floats + should fail for nil and other data types + should pass for Fixnums KeywordArgs: should fail if a key with a contract on it isn't provided - should pass if a method is overloaded with non-KeywordArgs - should fail if some keys don't have contracts should pass for exact correct input should fail for incorrect input - RangeOf: - should pass for a range of nums - should fail for a non-range - should fail for a range with incorrect data type - should fail for a badly-defined range - should pass for a range of dates + should fail if some keys don't have contracts + should pass if a method is overloaded with non-KeywordArgs + Eq: + should pass for other values + should pass for a module + should fail when not equal + should fail when given instance of class + should pass for a class + Not: + should pass for an argument that isn't nil + should fail for nil + Exactly: + should fail for an object that is not related to Parent at all + should pass for an object that is exactly a Parent + should fail for an object that inherits from Parent ArrayOf: - should pass for an array of nums should fail for an array with one non-num + should pass for an array of nums should fail for a non-array - None: - should fail for nil - should fail for numbers - should fail for strings - should fail for procs - Not: - should fail for nil - should pass for an argument that isn't nil + Optional: + can't be used outside of KeywordArgs HashOf: doesn't allow to specify multiple key-value pairs with pretty syntax given an unfulfilled contract @@ -1245,48 +1282,34 @@ is expected to eq 2 is expected to eq 2 #to_s - given String => Num - is expected to eq "Hash" given Symbol => String is expected to eq "Hash" - 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 - Send: - should pass for an object that returns true for method :good - should fail for an object that returns false for method :good - RespondTo: - should pass for an object that responds to :good - should fail for an object that doesn't respond to :good + given String => Num + is expected to eq "Hash" Maybe: - should pass for nums - should fail for strings should pass for nils - Nat: - should pass for positive whole numbers - should fail for negative numbers - should pass for 0 - should fail for nil and other data types - should fail for positive non-whole numbers + should fail for strings + should pass for nums DescendantOf: + should fail for a number class should fail for a non-class should pass for a hash should pass for Array - should fail for a number class - Any: + Or: should pass for strings - should pass for nil - should pass for numbers - should pass for procs - Xor: - should pass for an object with a method :good - should fail for an object with neither method - should pass for an object with a method :bad - should fail for an object with both methods :good and :bad + should fail for nil + should pass for nums + Pos: + should fail for nil and other data types + should pass for positive numbers + should fail for negative numbers + should fail for 0 + None: + should fail for procs + should fail for nil + should fail for strings + should fail for numbers StrictHash: - when given an input with missing keys - raises an error when given an exact correct input does not raise an error when given an input with extra keys @@ -1295,75 +1318,119 @@ raises an error when given an input with correct keys but wrong types raises an error - Num: - should pass for Fixnums - should pass for Floats - should fail for nil and other data types - Eq: - should fail when given instance of class - should pass for a module - should fail when not equal - should pass for other values - should pass for a class - Neg: - should fail for 0 + when given an input with missing keys + raises an error + Send: + should pass for an object that returns true for method :good + should fail for an object that returns false for method :good + RangeOf: + should pass for a range of nums + should fail for a range with incorrect data type + should pass for a range of dates + should fail for a badly-defined range + should fail for a non-range + Nat: + should pass for 0 + should pass for positive whole numbers should fail for nil and other data types - should pass for negative numbers - should fail for positive numbers - 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 - SetOf: - should fail for a non-array - should fail for an array with one non-num - should pass for a set of nums + should fail for positive non-whole numbers + should fail for negative numbers + +Contract + .override_validator + allows to override class validator + allows to override default validator + allows to override simple validators + allows to override valid contract + +Contracts: + method called with blocks +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/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 +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: >. 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:39:in `block (3 levels) in '. + should enforce return value inside block with no other parameter +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/methods_spec.rb:43 >. 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:43:in `block (3 levels) in '. + should enforce return value inside block with other parameter +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/methods_spec.rb:47 >. 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:47:in `block (3 levels) in '. + should enforce return value inside lambda with no other parameter + +module methods + should fail for incorrect input + should pass for correct input + +Contract validators + Range + 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 + should fail for a non-matching string + within an array + should pass for a matching string + within a hash + should pass for a matching string -Top 10 slowest examples (0.11044 seconds, 33.2% of total time): +Top 10 slowest examples (1.32 seconds, 27.1% of total time): Contracts: protected methods should raise an error if you try to access a protected method - 0.02464 seconds ./spec/contracts_spec.rb:690 + 0.27798 seconds ./spec/contracts_spec.rb:686 + Contracts: protected methods should raise an error if you try to access a protected method + 0.26794 seconds ./spec/contracts_spec.rb:690 + Contracts: pattern matching should not fall through to next pattern when there is a deep contract violation + 0.26266 seconds ./spec/contracts_spec.rb:55 Contracts: private methods should raise an error if you try to access a private method - 0.01895 seconds ./spec/contracts_spec.rb:680 + 0.13337 seconds ./spec/contracts_spec.rb:680 Contract.override_validator allows to override default validator - 0.01698 seconds ./spec/override_validators_spec.rb:127 - Contracts: protected methods should raise an error if you try to access a protected method - 0.01669 seconds ./spec/contracts_spec.rb:686 + 0.08461 seconds ./spec/override_validators_spec.rb:127 Contracts: private methods should raise an error if you try to access a private method - 0.01389 seconds ./spec/contracts_spec.rb:676 - Contracts: contracts for functions with no arguments should not work for a function with a bad contract - 0.00634 seconds ./spec/contracts_spec.rb:27 - Contract.override_validator allows to override class validator - 0.00417 seconds ./spec/override_validators_spec.rb:96 - Contracts::Support eigenclass? is truthy for singleton classes - 0.0035 seconds ./spec/support_spec.rb:8 + 0.08092 seconds ./spec/contracts_spec.rb:676 Contract.override_validator allows to override valid contract - 0.00282 seconds ./spec/override_validators_spec.rb:45 - module methods should pass for correct input - 0.00246 seconds ./spec/module_spec.rb:11 + 0.06954 seconds ./spec/override_validators_spec.rb:45 + Contract.override_validator allows to override class validator + 0.05295 seconds ./spec/override_validators_spec.rb:96 + Contracts: Hashes should fail if a key with a contract on it isn't provided + 0.04825 seconds ./spec/contracts_spec.rb:359 + Contract.override_validator allows to override simple validators + 0.04425 seconds ./spec/override_validators_spec.rb:9 Top 9 slowest example groups: Contract - 0.00702 seconds average (0.02809 seconds / 4 examples) ./spec/override_validators_spec.rb:1 - Contracts::Support - 0.00225 seconds average (0.00675 seconds / 3 examples) ./spec/support_spec.rb:2 - module methods - 0.002 seconds average (0.00401 seconds / 2 examples) ./spec/module_spec.rb:10 + 0.07037 seconds average (0.28147 seconds / 4 examples) ./spec/override_validators_spec.rb:1 Contracts: - 0.00173 seconds average (0.1752 seconds / 101 examples) ./spec/contracts_spec.rb:1 - Contracts: - 0.00108 seconds average (0.0964 seconds / 89 examples) ./spec/builtin_contracts_spec.rb:1 + 0.0293 seconds average (0.11721 seconds / 4 examples) ./spec/methods_spec.rb:1 + Contracts::Support + 0.02752 seconds average (0.08257 seconds / 3 examples) ./spec/support_spec.rb:2 Contracts: - 0.00104 seconds average (0.00418 seconds / 4 examples) ./spec/methods_spec.rb:1 + 0.02527 seconds average (2.55 seconds / 101 examples) ./spec/contracts_spec.rb:1 + module methods + 0.02434 seconds average (0.04868 seconds / 2 examples) ./spec/module_spec.rb:10 Contracts: - 0.00074 seconds average (0.00735 seconds / 10 examples) ./spec/attrs_spec.rb:1 + 0.01756 seconds average (1.56 seconds / 89 examples) ./spec/builtin_contracts_spec.rb:1 Contract validators - 0.00072 seconds average (0.00504 seconds / 7 examples) ./spec/validators_spec.rb:3 + 0.01712 seconds average (0.11985 seconds / 7 examples) ./spec/validators_spec.rb:3 Contracts::Invariants - 0.00068 seconds average (0.00136 seconds / 2 examples) ./spec/invariants_spec.rb:2 + 0.01187 seconds average (0.02375 seconds / 2 examples) ./spec/invariants_spec.rb:2 + Contracts: + 0.00755 seconds average (0.07553 seconds / 10 examples) ./spec/attrs_spec.rb:1 -Finished in 0.33255 seconds (files took 0.61101 seconds to load) +Finished in 4.88 seconds (files took 8.43 seconds to load) 222 examples, 0 failures -Randomized with seed 38442 +Randomized with seed 53117 ┌──────────────────────────────────────────────────────────────────────────────┐ @@ -1395,12 +1462,14 @@ dpkg-buildpackage: info: binary-only upload (no source included) dpkg-genchanges: info: including full source code in upload I: copying local configuration +I: user script /srv/workspace/pbuilder/32145/tmp/hooks/B01_cleanup starting +I: user script /srv/workspace/pbuilder/32145/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/3866 and its subdirectories -I: Current time: Sat Aug 14 16:52:26 -12 2021 -I: pbuilder-time-stamp: 1629003146 +I: removing directory /srv/workspace/pbuilder/32145 and its subdirectories +I: Current time: Sun Aug 15 19:06:32 +14 2021 +I: pbuilder-time-stamp: 1629003992