Diff of the two buildlogs: -- --- b1/build.log 2020-06-30 19:52:51.945721227 +0000 +++ b2/build.log 2020-06-30 19:58:23.576943896 +0000 @@ -1,6 +1,6 @@ I: pbuilder: network access will be disabled during build -I: Current time: Tue Jun 30 07:49:54 -12 2020 -I: pbuilder-time-stamp: 1593546594 +I: Current time: Wed Jul 1 09:53:02 +14 2020 +I: pbuilder-time-stamp: 1593546782 I: Building the build Environment I: extracting base tarball [/var/cache/pbuilder/buster-reproducible-base.tgz] I: copying local configuration @@ -17,7 +17,7 @@ I: Extracting source gpgv: unknown type of key resource 'trustedkeys.kbx' gpgv: keyblock resource '/root/.gnupg/trustedkeys.kbx': General error -gpgv: Signature made Wed Aug 23 04:58:41 2017 -12 +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,136 +26,170 @@ 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/20670/tmp/hooks/D02_print_environment starting +I: user script /srv/workspace/pbuilder/25004/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/25004/tmp/hooks/D01_modify_environment finished +I: user script /srv/workspace/pbuilder/25004/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 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]="0" [2]="3" [3]="1" [4]="release" [5]="arm-unknown-linux-gnueabihf") + BASH_VERSION='5.0.3(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 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='e57f1491f0f34fd8a198478eb549e2a5' - 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='20670' - PS1='# ' - PS2='> ' + INVOCATION_ID=a2cabb0494be43baae4fbdeda3387920 + 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=25004 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.YW1WDcffJn/pbuilderrc_EIDG --hookdir /etc/pbuilder/first-build-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/buster-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/tmp.YW1WDcffJn/b1 --logfile b1/build.log ruby-contracts_0.16.0-1.dsc' - SUDO_GID='114' - SUDO_UID='109' - 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.YW1WDcffJn/pbuilderrc_GDk1 --hookdir /etc/pbuilder/rebuild-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/buster-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/tmp.YW1WDcffJn/b2 --logfile b2/build.log 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 4.19.0-9-arm64 #1 SMP Debian 4.19.118-2+deb10u1 (2020-06-07) aarch64 GNU/Linux + Linux i-capture-the-hostname 4.19.0-9-armmp #1 SMP Debian 4.19.118-2+deb10u1 (2020-06-07) armv7l GNU/Linux I: ls -l /bin total 3328 - -rwxr-xr-x 1 root root 767656 Apr 17 2019 bash - -rwxr-xr-x 3 root root 26052 Jul 10 2019 bunzip2 - -rwxr-xr-x 3 root root 26052 Jul 10 2019 bzcat - lrwxrwxrwx 1 root root 6 Jul 10 2019 bzcmp -> bzdiff - -rwxr-xr-x 1 root root 2227 Jul 10 2019 bzdiff - lrwxrwxrwx 1 root root 6 Jul 10 2019 bzegrep -> bzgrep - -rwxr-xr-x 1 root root 4877 Jun 24 2019 bzexe - lrwxrwxrwx 1 root root 6 Jul 10 2019 bzfgrep -> bzgrep - -rwxr-xr-x 1 root root 3641 Jul 10 2019 bzgrep - -rwxr-xr-x 3 root root 26052 Jul 10 2019 bzip2 - -rwxr-xr-x 1 root root 9636 Jul 10 2019 bzip2recover - lrwxrwxrwx 1 root root 6 Jul 10 2019 bzless -> bzmore - -rwxr-xr-x 1 root root 1297 Jul 10 2019 bzmore - -rwxr-xr-x 1 root root 22432 Feb 28 2019 cat - -rwxr-xr-x 1 root root 38868 Feb 28 2019 chgrp - -rwxr-xr-x 1 root root 38836 Feb 28 2019 chmod - -rwxr-xr-x 1 root root 42972 Feb 28 2019 chown - -rwxr-xr-x 1 root root 88376 Feb 28 2019 cp - -rwxr-xr-x 1 root root 75516 Jan 17 2019 dash - -rwxr-xr-x 1 root root 71648 Feb 28 2019 date - -rwxr-xr-x 1 root root 51212 Feb 28 2019 dd - -rwxr-xr-x 1 root root 55672 Feb 28 2019 df - -rwxr-xr-x 1 root root 88444 Feb 28 2019 dir - -rwxr-xr-x 1 root root 54872 Jan 9 2019 dmesg - lrwxrwxrwx 1 root root 8 Sep 26 2018 dnsdomainname -> hostname - lrwxrwxrwx 1 root root 8 Sep 26 2018 domainname -> hostname - -rwxr-xr-x 1 root root 22364 Feb 28 2019 echo - -rwxr-xr-x 1 root root 28 Jan 7 2019 egrep - -rwxr-xr-x 1 root root 18260 Feb 28 2019 false - -rwxr-xr-x 1 root root 28 Jan 7 2019 fgrep - -rwxr-xr-x 1 root root 47356 Jan 9 2019 findmnt - -rwsr-xr-x 1 root root 21980 Apr 22 07:38 fusermount - -rwxr-xr-x 1 root root 124508 Jan 7 2019 grep - -rwxr-xr-x 2 root root 2345 Jan 5 2019 gunzip - -rwxr-xr-x 1 root root 6375 Jan 5 2019 gzexe - -rwxr-xr-x 1 root root 64232 Jan 5 2019 gzip - -rwxr-xr-x 1 root root 13784 Sep 26 2018 hostname - -rwxr-xr-x 1 root root 43044 Feb 28 2019 ln - -rwxr-xr-x 1 root root 34932 Jul 26 2018 login - -rwxr-xr-x 1 root root 88444 Feb 28 2019 ls - -rwxr-xr-x 1 root root 67036 Jan 9 2019 lsblk - -rwxr-xr-x 1 root root 47168 Feb 28 2019 mkdir - -rwxr-xr-x 1 root root 43040 Feb 28 2019 mknod - -rwxr-xr-x 1 root root 26552 Feb 28 2019 mktemp - -rwxr-xr-x 1 root root 26024 Jan 9 2019 more - -rwsr-xr-x 1 root root 34268 Jan 9 2019 mount - -rwxr-xr-x 1 root root 9688 Jan 9 2019 mountpoint - -rwxr-xr-x 1 root root 84284 Feb 28 2019 mv - lrwxrwxrwx 1 root root 8 Sep 26 2018 nisdomainname -> hostname - lrwxrwxrwx 1 root root 14 Feb 14 2019 pidof -> /sbin/killall5 - -rwxr-xr-x 1 root root 22416 Feb 28 2019 pwd - lrwxrwxrwx 1 root root 4 Apr 17 2019 rbash -> bash - -rwxr-xr-x 1 root root 26504 Feb 28 2019 readlink - -rwxr-xr-x 1 root root 42968 Feb 28 2019 rm - -rwxr-xr-x 1 root root 26496 Feb 28 2019 rmdir - -rwxr-xr-x 1 root root 14136 Jan 21 2019 run-parts - -rwxr-xr-x 1 root root 76012 Dec 22 2018 sed - lrwxrwxrwx 1 root root 4 Jun 29 20:28 sh -> dash - -rwxr-xr-x 1 root root 22384 Feb 28 2019 sleep - -rwxr-xr-x 1 root root 51124 Feb 28 2019 stty - -rwsr-xr-x 1 root root 42472 Jan 9 2019 su - -rwxr-xr-x 1 root root 22392 Feb 28 2019 sync - -rwxr-xr-x 1 root root 283324 Apr 23 2019 tar - -rwxr-xr-x 1 root root 9808 Jan 21 2019 tempfile - -rwxr-xr-x 1 root root 63464 Feb 28 2019 touch - -rwxr-xr-x 1 root root 18260 Feb 28 2019 true - -rwxr-xr-x 1 root root 9636 Apr 22 07:38 ulockmgr_server - -rwsr-xr-x 1 root root 21976 Jan 9 2019 umount - -rwxr-xr-x 1 root root 22380 Feb 28 2019 uname - -rwxr-xr-x 2 root root 2345 Jan 5 2019 uncompress - -rwxr-xr-x 1 root root 88444 Feb 28 2019 vdir - -rwxr-xr-x 1 root root 21980 Jan 9 2019 wdctl - -rwxr-xr-x 1 root root 946 Jan 21 2019 which - lrwxrwxrwx 1 root root 8 Sep 26 2018 ypdomainname -> hostname - -rwxr-xr-x 1 root root 1983 Jan 5 2019 zcat - -rwxr-xr-x 1 root root 1677 Jan 5 2019 zcmp - -rwxr-xr-x 1 root root 5879 Jan 5 2019 zdiff - -rwxr-xr-x 1 root root 29 Jan 5 2019 zegrep - -rwxr-xr-x 1 root root 29 Jan 5 2019 zfgrep - -rwxr-xr-x 1 root root 2080 Jan 5 2019 zforce - -rwxr-xr-x 1 root root 7584 Jan 5 2019 zgrep - -rwxr-xr-x 1 root root 2205 Jan 5 2019 zless - -rwxr-xr-x 1 root root 1841 Jan 5 2019 zmore - -rwxr-xr-x 1 root root 4552 Jan 5 2019 znew -I: user script /srv/workspace/pbuilder/20670/tmp/hooks/D02_print_environment finished + -rwxr-xr-x 1 root root 767656 Apr 18 2019 bash + -rwxr-xr-x 3 root root 26052 Jul 11 2019 bunzip2 + -rwxr-xr-x 3 root root 26052 Jul 11 2019 bzcat + lrwxrwxrwx 1 root root 6 Jul 11 2019 bzcmp -> bzdiff + -rwxr-xr-x 1 root root 2227 Jul 11 2019 bzdiff + lrwxrwxrwx 1 root root 6 Jul 11 2019 bzegrep -> bzgrep + -rwxr-xr-x 1 root root 4877 Jun 25 2019 bzexe + lrwxrwxrwx 1 root root 6 Jul 11 2019 bzfgrep -> bzgrep + -rwxr-xr-x 1 root root 3641 Jul 11 2019 bzgrep + -rwxr-xr-x 3 root root 26052 Jul 11 2019 bzip2 + -rwxr-xr-x 1 root root 9636 Jul 11 2019 bzip2recover + lrwxrwxrwx 1 root root 6 Jul 11 2019 bzless -> bzmore + -rwxr-xr-x 1 root root 1297 Jul 11 2019 bzmore + -rwxr-xr-x 1 root root 22432 Mar 1 2019 cat + -rwxr-xr-x 1 root root 38868 Mar 1 2019 chgrp + -rwxr-xr-x 1 root root 38836 Mar 1 2019 chmod + -rwxr-xr-x 1 root root 42972 Mar 1 2019 chown + -rwxr-xr-x 1 root root 88376 Mar 1 2019 cp + -rwxr-xr-x 1 root root 75516 Jan 18 2019 dash + -rwxr-xr-x 1 root root 71648 Mar 1 2019 date + -rwxr-xr-x 1 root root 51212 Mar 1 2019 dd + -rwxr-xr-x 1 root root 55672 Mar 1 2019 df + -rwxr-xr-x 1 root root 88444 Mar 1 2019 dir + -rwxr-xr-x 1 root root 54872 Jan 10 2019 dmesg + lrwxrwxrwx 1 root root 8 Sep 27 2018 dnsdomainname -> hostname + lrwxrwxrwx 1 root root 8 Sep 27 2018 domainname -> hostname + -rwxr-xr-x 1 root root 22364 Mar 1 2019 echo + -rwxr-xr-x 1 root root 28 Jan 8 2019 egrep + -rwxr-xr-x 1 root root 18260 Mar 1 2019 false + -rwxr-xr-x 1 root root 28 Jan 8 2019 fgrep + -rwxr-xr-x 1 root root 47356 Jan 10 2019 findmnt + -rwsr-xr-x 1 root root 21980 Apr 23 09:38 fusermount + -rwxr-xr-x 1 root root 124508 Jan 8 2019 grep + -rwxr-xr-x 2 root root 2345 Jan 6 2019 gunzip + -rwxr-xr-x 1 root root 6375 Jan 6 2019 gzexe + -rwxr-xr-x 1 root root 64232 Jan 6 2019 gzip + -rwxr-xr-x 1 root root 13784 Sep 27 2018 hostname + -rwxr-xr-x 1 root root 43044 Mar 1 2019 ln + -rwxr-xr-x 1 root root 34932 Jul 27 2018 login + -rwxr-xr-x 1 root root 88444 Mar 1 2019 ls + -rwxr-xr-x 1 root root 67036 Jan 10 2019 lsblk + -rwxr-xr-x 1 root root 47168 Mar 1 2019 mkdir + -rwxr-xr-x 1 root root 43040 Mar 1 2019 mknod + -rwxr-xr-x 1 root root 26552 Mar 1 2019 mktemp + -rwxr-xr-x 1 root root 26024 Jan 10 2019 more + -rwsr-xr-x 1 root root 34268 Jan 10 2019 mount + -rwxr-xr-x 1 root root 9688 Jan 10 2019 mountpoint + -rwxr-xr-x 1 root root 84284 Mar 1 2019 mv + lrwxrwxrwx 1 root root 8 Sep 27 2018 nisdomainname -> hostname + lrwxrwxrwx 1 root root 14 Feb 15 2019 pidof -> /sbin/killall5 + -rwxr-xr-x 1 root root 22416 Mar 1 2019 pwd + lrwxrwxrwx 1 root root 4 Apr 18 2019 rbash -> bash + -rwxr-xr-x 1 root root 26504 Mar 1 2019 readlink + -rwxr-xr-x 1 root root 42968 Mar 1 2019 rm + -rwxr-xr-x 1 root root 26496 Mar 1 2019 rmdir + -rwxr-xr-x 1 root root 14136 Jan 22 2019 run-parts + -rwxr-xr-x 1 root root 76012 Dec 23 2018 sed + lrwxrwxrwx 1 root root 4 Jul 1 09:53 sh -> bash + lrwxrwxrwx 1 root root 4 Jun 28 22:27 sh.distrib -> dash + -rwxr-xr-x 1 root root 22384 Mar 1 2019 sleep + -rwxr-xr-x 1 root root 51124 Mar 1 2019 stty + -rwsr-xr-x 1 root root 42472 Jan 10 2019 su + -rwxr-xr-x 1 root root 22392 Mar 1 2019 sync + -rwxr-xr-x 1 root root 283324 Apr 24 2019 tar + -rwxr-xr-x 1 root root 9808 Jan 22 2019 tempfile + -rwxr-xr-x 1 root root 63464 Mar 1 2019 touch + -rwxr-xr-x 1 root root 18260 Mar 1 2019 true + -rwxr-xr-x 1 root root 9636 Apr 23 09:38 ulockmgr_server + -rwsr-xr-x 1 root root 21976 Jan 10 2019 umount + -rwxr-xr-x 1 root root 22380 Mar 1 2019 uname + -rwxr-xr-x 2 root root 2345 Jan 6 2019 uncompress + -rwxr-xr-x 1 root root 88444 Mar 1 2019 vdir + -rwxr-xr-x 1 root root 21980 Jan 10 2019 wdctl + -rwxr-xr-x 1 root root 946 Jan 22 2019 which + lrwxrwxrwx 1 root root 8 Sep 27 2018 ypdomainname -> hostname + -rwxr-xr-x 1 root root 1983 Jan 6 2019 zcat + -rwxr-xr-x 1 root root 1677 Jan 6 2019 zcmp + -rwxr-xr-x 1 root root 5879 Jan 6 2019 zdiff + -rwxr-xr-x 1 root root 29 Jan 6 2019 zegrep + -rwxr-xr-x 1 root root 29 Jan 6 2019 zfgrep + -rwxr-xr-x 1 root root 2080 Jan 6 2019 zforce + -rwxr-xr-x 1 root root 7584 Jan 6 2019 zgrep + -rwxr-xr-x 1 root root 2205 Jan 6 2019 zless + -rwxr-xr-x 1 root root 1841 Jan 6 2019 zmore + -rwxr-xr-x 1 root root 4552 Jan 6 2019 znew +I: user script /srv/workspace/pbuilder/25004/tmp/hooks/D02_print_environment finished -> Attempting to satisfy build-dependencies -> Creating pbuilder-satisfydepends-dummy package Package: pbuilder-satisfydepends-dummy @@ -332,7 +366,7 @@ Get: 133 http://deb.debian.org/debian buster/main armhf ruby-thread-order all 1.1.0-1 [5096 B] Get: 134 http://deb.debian.org/debian buster/main armhf ruby-rspec-core all 3.8.0c0e1m0s0-1 [190 kB] Get: 135 http://deb.debian.org/debian buster/main armhf ruby-rspec all 3.8.0c0e1m0s0-1 [7620 B] -Fetched 40.9 MB in 13s (3066 kB/s) +Fetched 40.9 MB in 7s (5954 kB/s) debconf: delaying package configuration, since apt-utils is not installed Selecting previously unselected package libbsd0:armhf. (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 ... 18932 files and directories currently installed.) @@ -904,7 +938,7 @@ fakeroot is already the newest version (1.23-1). 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 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 @@ -945,24 +979,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/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/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/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/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.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/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/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/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/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/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/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/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/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.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/builtin_contracts.rb /build/ruby-contracts-0.16.0/debian/ruby-contracts/usr/lib/ruby/vendor_ruby/contracts/builtin_contracts.rb dh_installchangelogs -pruby-contracts /build/ruby-contracts-0.16.0/CHANGELOG.markdown upstream ┌──────────────────────────────────────────────────────────────────────────────┐ @@ -999,135 +1033,23 @@ All examples were filtered out; ignoring {:focus=>true} -Randomized with seed 34541 +Randomized with seed 6831 Contracts::Invariants - works when all invariants are holding raises invariant violation error when any of invariants are not holding - -Contract validators - Regexp - should fail for a non-matching string - should pass for a matching string - within a hash - should pass for a matching string - within an array - should pass for a matching string - Range - fails when value is not in range - passes when value is in range - fails when value is incorrect - -Contracts::Support - eigenclass? - is falsey for non-singleton classes - is truthy for singleton classes - eigenclass_of - returns the eigenclass of a given object - -Contracts: - Attrs: - attr_accessor_with_contract - setting valid type - getting invalid type - setting invalid type - getting valid type - attr_reader_with_contract - getting invalid type - getting valid type - setting - attr_writer_with_contract - setting valid type - setting invalid 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: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 -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 - -module methods - should fail for incorrect input - should pass for correct input - -Contract - .override_validator - allows to override simple validators - allows to override valid contract - allows to override class validator - allows to override default validator + works when all invariants are holding Contracts: - Eq: - should pass for other values - should fail when given instance of class - should fail when not equal - should pass for a class - should pass for a module - Not: - should pass for an argument that isn't nil - should fail for nil - Xor: - 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 pass for an object with a method :good - Bool: + Or: + should pass for nums + should pass for strings should fail for nil - should pass for an argument that is a boolean 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 fail for a badly-defined range - should pass for a range of dates - should fail for a range with incorrect data type - should pass for a range of nums - should fail for a non-range - StrictHash: - when given not a hash - raises an error - when given an exact correct input - does not raise an error - when given an input with extra keys - 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 - None: - should fail for nil - should fail for strings - should fail for procs - should fail for numbers + should fail for an object that is not related to Parent at all HashOf: doesn't allow to specify multiple key-value pairs with pretty syntax - #to_s - given Symbol => String - should eq "Hash" - given String => Num - should eq "Hash" given an unfulfilled contract should raise ContractError should raise ContractError @@ -1136,182 +1058,320 @@ given a fulfilled contract should eq 2 should eq 2 - Enum: - should pass for an object that is included - should fail for an object that is not included + #to_s + given String => Num + should eq "Hash" + given Symbol => String + should eq "Hash" + SetOf: + should fail for an array with one non-num + should fail for a non-array + should pass for a set of nums + None: + should fail for nil + should fail for strings + should fail for numbers + should fail for procs Optional: can't be used outside of KeywordArgs + RangeOf: + should pass for a range of nums + should fail for a badly-defined range + should fail for a range with incorrect data type + should fail for a non-range + should pass for a range of dates + Nat: + should fail for negative numbers + should pass for 0 + should fail for positive non-whole numbers + should fail for nil and other data types + should pass for positive whole 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 + KeywordArgs: + should fail 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 + should pass if a method is overloaded with non-KeywordArgs + Not: + should pass for an argument that isn't nil + should fail for nil + Num: + should pass for Fixnums + should fail for nil and other data types + should pass for Floats + Bool: + should pass for an argument that is a boolean + should fail for nil ArrayOf: + should pass for an array of nums should fail for a non-array should fail for an array with one non-num - should pass for an array of nums - Pos: - should fail for nil and other data types - should fail for negative numbers - should pass for positive numbers - should fail for 0 RespondTo: - should fail for an object that doesn't respond to :good should pass for an object that responds to :good - Num: - should fail for nil and other data types - should pass for Fixnums - should pass for Floats + should fail for an object that doesn't respond to :good Send: - should fail for an object that returns false for method :good should pass for an object that returns true for method :good - Or: - should fail for nil - should pass for strings - should pass for nums + should fail for an object that returns false for method :good + Pos: + should fail for negative numbers + should fail for nil and other data types + should pass for positive numbers + should fail for 0 Maybe: should fail for strings - should pass for nums should pass for nils - Any: - should pass for strings - should pass for nil - should pass for procs - should pass for 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 pass for positive whole numbers - should fail for nil and other data types - should fail for negative numbers - should pass for 0 + should pass for nums + 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 DescendantOf: - should fail for a number class - should fail for a non-class should pass for a hash + should fail for a number class should pass for Array - 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 pass if a method is overloaded with non-KeywordArgs - should fail for incorrect input + should fail for a non-class + Enum: + should fail for an object that is not included + should pass for an object that is included + Eq: + should fail when not equal + should pass for other values + should fail when given instance of class + should pass for a class + should pass for a module + StrictHash: + when given an exact correct input + does not raise 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 input with extra keys + raises an error + when given an input with missing keys + raises an error Neg: - should pass for negative numbers - should fail for nil and other data types - should fail for 0 should fail for positive numbers - SetOf: - should pass for a set of nums - should fail for a non-array - should fail for an array with one non-num + should fail for 0 + should fail for nil and other data types + should pass for negative numbers + Any: + should pass for nil + should pass for procs + should pass for strings + should pass for numbers Contracts: - 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 - 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 usage - with singleton methods - should check contract - with instance methods - should check contract - with singleton class methods - should check contract + 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: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: >. 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: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: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 + +Contracts: + Attrs: + attr_reader_with_contract + setting + getting invalid type + getting valid type + attr_accessor_with_contract + getting invalid type + setting valid type + setting invalid type + getting valid type + attr_writer_with_contract + setting valid type + setting invalid type + getting + +Contract validators + 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 + Range + fails when value is incorrect + fails when value is not in range + passes when value is in range + +Contracts::Support + eigenclass? + is falsey for non-singleton classes + is truthy for singleton classes + eigenclass_of + returns the eigenclass of a given object + +Contract + .override_validator + allows to override valid contract + allows to override default validator + allows to override simple validators + allows to override class validator + +Contracts: + functype + should correctly print out a class method's type + should correctly print out a instance method's type + classes with a valid? class method + should pass for correct input + should fail for incorrect input + 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 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 - no contracts feature - does not disable pattern matching - disables invariants - disables normal contract checks - classes - 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 - Arrays - should fail for some incorrect elements - should fail for insufficient items + module usage + with instance methods + should check contract + with singleton methods + should check contract + with singleton class methods + should check contract + classes with extended modules + works correctly with methods with passing contracts + is possible to define it + should not fail with 'undefined method 'Contract'' + works correctly with methods with passing contracts + Contracts to_s formatting in expected + should contain to_s representation within a Hash contract + should not contain Contracts:: module prefix + should contain to_s representation within a nested Hash contract + should not stringify native types + should still show nils, not just blank space + should show empty quotes as "" + 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 + Procs should pass for correct input - blocks - should fail for maybe proc with invalid input - should handle properly lack of block when there are other arguments - should succeed for maybe proc with proc should fail for incorrect input - should succeed for maybe proc with no proc + usage in the singleton class of a subclass + should work with a valid contract on a singleton method + classes + should fail for incorrect input should pass for correct 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 + 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 + 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 pattern matching - 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 should work for differing arities - 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 + should work as expected when there is no contract violation when failure_callback was overriden + calls a method when first pattern matches uses overriden failure_callback when pattern matching fails - 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 - calls a method when first pattern matches - Procs - should pass for correct input - should fail for incorrect 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 module contracts 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 inherited module passes for instance of class including module passes for instance of class including both modules - passes for instance of class including inherited module - varargs - should pass for correct input - should work with arg before splat - should fail for incorrect input - contracts on functions - 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 - should pass for a function that passes the contract - 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 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 + does not pass for instance of class including another module 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 - should work for functions with no args - classes with extended modules - is possible to define it - should not fail with 'undefined method 'Contract'' - works correctly with methods with passing contracts - works correctly with methods with passing contracts - usage in the singleton class of a subclass - should work with a valid contract on a singleton method + blocks + should fail for maybe proc with invalid input + should succeed for maybe proc with no proc + should pass for correct input + should succeed for maybe proc with proc + should fail for incorrect input + should handle properly lack of block when there are other arguments + 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 + Arrays + should fail for some incorrect elements + should pass for correct input + should fail for insufficient items + 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 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 + no contracts feature + does not disable pattern matching + disables normal contract checks + disables invariants 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 + should not fail for an object that is the exact type as the contract + singleton methods self in inherited methods + should be a proper self + contracts on functions + should pass for a function that passes the contract + should not fail for a returned function that passes 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 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 + should pass for a function that passes the contract with weak other args instance and class methods should allow a class to have an instance method and a class method with the same name 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 - functype - should correctly print out a class method's type - should correctly print out a instance method's type - classes with a valid? class method - should pass for correct input + instance methods + should allow two classes to have the same method with different contracts + anonymous classes + fails with error when contract is violated + does not fail when contract is satisfied + Hashes + should fail if a key with a contract on it isn't provided + should pass even if some keys don't have contracts + should pass for exact correct input should fail for incorrect input + varargs + should work with arg before splat + should fail for incorrect input + should pass for correct input anonymous modules does not fail when contract is satisfied fails with error when contract is violated @@ -1323,83 +1383,57 @@ should pass for correct input when block has Func contract should fail for incorrect input - instance methods - should allow two classes to have the same method with different contracts - Hashes - should fail for incorrect input - should pass even 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 - Contracts to_s formatting in expected - should not stringify native types - should contain to_s representation within a Hash contract - should contain to_s representation within a nested Hash contract - should show empty quotes as "" - should not use custom to_s if empty string - should not contain Contracts:: module prefix - should still show nils, not just blank space - should contain to_s representation within an Array contract - should contain to_s representation within a nested Array contract - singleton methods self in inherited methods - should be a proper self - class methods - should pass for correct input - should fail for incorrect input - 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 - anonymous classes - fails with error when contract is violated - does not fail when contract is satisfied -Top 10 slowest examples (0.18265 seconds, 32.8% of total time): +module methods + should pass for correct input + should fail for incorrect input + +Top 10 slowest examples (0.70479 seconds, 29.5% of total time): + Contract.override_validator allows to override default validator + 0.13043 seconds ./spec/override_validators_spec.rb:127 + Contract.override_validator allows to override valid contract + 0.12209 seconds ./spec/override_validators_spec.rb:45 Contracts: private methods should raise an error if you try to access a private method - 0.03476 seconds ./spec/contracts_spec.rb:680 + 0.08908 seconds ./spec/contracts_spec.rb:680 Contracts: protected methods should raise an error if you try to access a protected method - 0.03322 seconds ./spec/contracts_spec.rb:690 - Contract.override_validator allows to override default validator - 0.02946 seconds ./spec/override_validators_spec.rb:127 + 0.08023 seconds ./spec/contracts_spec.rb:690 Contracts: protected methods should raise an error if you try to access a protected method - 0.0259 seconds ./spec/contracts_spec.rb:686 + 0.06591 seconds ./spec/contracts_spec.rb:686 Contracts: private methods should raise an error if you try to access a private method - 0.02261 seconds ./spec/contracts_spec.rb:676 - Contract.override_validator allows to override valid contract - 0.01244 seconds ./spec/override_validators_spec.rb:45 - Contracts::Support eigenclass? is falsey for non-singleton classes - 0.00653 seconds ./spec/support_spec.rb:4 - Contracts: contracts for functions with no arguments should not work for a function with a bad contract - 0.00636 seconds ./spec/contracts_spec.rb:27 + 0.0654 seconds ./spec/contracts_spec.rb:676 Contract.override_validator allows to override class validator - 0.00606 seconds ./spec/override_validators_spec.rb:96 - Contracts: classes with extended modules works correctly with methods with passing contracts - 0.00532 seconds ./spec/contracts_spec.rb:727 + 0.05962 seconds ./spec/override_validators_spec.rb:96 + Contracts: HashOf: #to_s given Symbol => String should eq "Hash" + 0.03381 seconds ./spec/builtin_contracts_spec.rb:421 + Contracts::Support eigenclass? is falsey for non-singleton classes + 0.02938 seconds ./spec/support_spec.rb:4 + Contracts: anonymous modules when called on module itself fails with error when contract is violated + 0.02884 seconds ./spec/contracts_spec.rb:269 Top 9 slowest example groups: Contract - 0.01588 seconds average (0.06351 seconds / 4 examples) ./spec/override_validators_spec.rb:1 - Contracts::Invariants - 0.00395 seconds average (0.00791 seconds / 2 examples) ./spec/invariants_spec.rb:2 + 0.08683 seconds average (0.34731 seconds / 4 examples) ./spec/override_validators_spec.rb:1 Contracts::Support - 0.00391 seconds average (0.01173 seconds / 3 examples) ./spec/support_spec.rb:2 - Contracts: - 0.00322 seconds average (0.01286 seconds / 4 examples) ./spec/methods_spec.rb:1 + 0.01488 seconds average (0.04463 seconds / 3 examples) ./spec/support_spec.rb:2 Contracts: - 0.00293 seconds average (0.2961 seconds / 101 examples) ./spec/contracts_spec.rb:1 + 0.01153 seconds average (1.16 seconds / 101 examples) ./spec/contracts_spec.rb:1 + Contracts::Invariants + 0.01116 seconds average (0.02233 seconds / 2 examples) ./spec/invariants_spec.rb:2 module methods - 0.00223 seconds average (0.00445 seconds / 2 examples) ./spec/module_spec.rb:10 + 0.00995 seconds average (0.0199 seconds / 2 examples) ./spec/module_spec.rb:10 Contract validators - 0.00223 seconds average (0.01558 seconds / 7 examples) ./spec/validators_spec.rb:3 + 0.00809 seconds average (0.05661 seconds / 7 examples) ./spec/validators_spec.rb:3 + Contracts: + 0.00739 seconds average (0.65738 seconds / 89 examples) ./spec/builtin_contracts_spec.rb:1 Contracts: - 0.00185 seconds average (0.01848 seconds / 10 examples) ./spec/attrs_spec.rb:1 + 0.00555 seconds average (0.02219 seconds / 4 examples) ./spec/methods_spec.rb:1 Contracts: - 0.00138 seconds average (0.12272 seconds / 89 examples) ./spec/builtin_contracts_spec.rb:1 + 0.00428 seconds average (0.04283 seconds / 10 examples) ./spec/attrs_spec.rb:1 -Finished in 0.55686 seconds (files took 0.76546 seconds to load) +Finished in 2.39 seconds (files took 3.89 seconds to load) 222 examples, 0 failures -Randomized with seed 34541 +Randomized with seed 6831 ┌──────────────────────────────────────────────────────────────────────────────┐ @@ -1430,12 +1464,14 @@ dpkg-source --after-build . dpkg-buildpackage: info: binary-only upload (no source included) I: copying local configuration +I: user script /srv/workspace/pbuilder/25004/tmp/hooks/B01_cleanup starting +I: user script /srv/workspace/pbuilder/25004/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/20670 and its subdirectories -I: Current time: Tue Jun 30 07:52:48 -12 2020 -I: pbuilder-time-stamp: 1593546768 +I: removing directory /srv/workspace/pbuilder/25004 and its subdirectories +I: Current time: Wed Jul 1 09:58:19 +14 2020 +I: pbuilder-time-stamp: 1593547099