Diff of the two buildlogs: -- --- b1/build.log 2023-04-22 23:58:03.035100280 +0000 +++ b2/build.log 2023-04-22 23:59:19.195726048 +0000 @@ -1,6 +1,6 @@ I: pbuilder: network access will be disabled during build -I: Current time: Fri May 24 18:19:18 -12 2024 -I: pbuilder-time-stamp: 1716617958 +I: Current time: Sun Apr 23 13:58:06 +14 2023 +I: pbuilder-time-stamp: 1682207886 I: Building the build Environment I: extracting base tarball [/var/cache/pbuilder/bookworm-reproducible-base.tgz] I: copying local configuration @@ -16,7 +16,7 @@ I: copying [./ruby-contracts_0.17.orig.tar.gz] I: copying [./ruby-contracts_0.17-1.debian.tar.xz] I: Extracting source -gpgv: Signature made Tue Dec 20 23:31:37 2022 -12 +gpgv: Signature made Thu Dec 22 01:31:37 2022 +14 gpgv: using RSA key B2DEE66036C40829FCD0F10CFC0DB1BBCD460BDE gpgv: Can't check signature: No public key dpkg-source: warning: cannot verify inline signature for ./ruby-contracts_0.17-1.dsc: no acceptable signature found @@ -25,52 +25,84 @@ dpkg-source: info: unpacking ruby-contracts_0.17-1.debian.tar.xz I: Not using root during the build. I: Installing the build-deps -I: user script /srv/workspace/pbuilder/23724/tmp/hooks/D02_print_environment starting +I: user script /srv/workspace/pbuilder/26288/tmp/hooks/D01_modify_environment starting +debug: Running on codethink10-arm64. +I: Changing host+domainname to test build reproducibility +I: Adding a custom variable just for the fun of it... +I: Changing /bin/sh to bash +'/bin/sh' -> '/bin/bash' +lrwxrwxrwx 1 root root 9 Apr 23 13:58 /bin/sh -> /bin/bash +I: Setting pbuilder2's login shell to /bin/bash +I: Setting pbuilder2's GECOS to second user,second room,second work-phone,second home-phone,second other +I: user script /srv/workspace/pbuilder/26288/tmp/hooks/D01_modify_environment finished +I: user script /srv/workspace/pbuilder/26288/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='arm64' - DEBIAN_FRONTEND='noninteractive' + BASH=/bin/sh + BASHOPTS=checkwinsize:cmdhist:complete_fullquote:extquote:force_fignore:globasciiranges:globskipdots:hostcomplete:interactive_comments:patsub_replacement:progcomp:promptvars:sourcepath + BASH_ALIASES=() + BASH_ARGC=() + BASH_ARGV=() + BASH_CMDS=() + BASH_LINENO=([0]="12" [1]="0") + BASH_LOADABLES_PATH=/usr/local/lib/bash:/usr/lib/bash:/opt/local/lib/bash:/usr/pkg/lib/bash:/opt/pkg/lib/bash:. + BASH_SOURCE=([0]="/tmp/hooks/D02_print_environment" [1]="/tmp/hooks/D02_print_environment") + BASH_VERSINFO=([0]="5" [1]="2" [2]="15" [3]="1" [4]="release" [5]="aarch64-unknown-linux-gnu") + BASH_VERSION='5.2.15(1)-release' + BUILDDIR=/build + BUILDUSERGECOS='second user,second room,second work-phone,second home-phone,second other' + BUILDUSERNAME=pbuilder2 + BUILD_ARCH=arm64 + DEBIAN_FRONTEND=noninteractive DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all parallel=8' - DISTRIBUTION='bookworm' - HOME='/var/lib/jenkins' - HOST_ARCH='arm64' + DIRSTACK=() + DISTRIBUTION=bookworm + EUID=0 + FUNCNAME=([0]="Echo" [1]="main") + GROUPS=() + HOME=/var/lib/jenkins + HOSTNAME=i-capture-the-hostname + HOSTTYPE=aarch64 + HOST_ARCH=arm64 IFS=' ' - 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='23724' - PS1='# ' - PS2='> ' + LANG=C + LANGUAGE=nl_BE:nl + LC_ALL=C + MACHTYPE=aarch64-unknown-linux-gnu + MAIL=/var/mail/root + OPTERR=1 + OPTIND=1 + OSTYPE=linux-gnu + PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path + PBCURRENTCOMMANDLINEOPERATION=build + PBUILDER_OPERATION=build + PBUILDER_PKGDATADIR=/usr/share/pbuilder + PBUILDER_PKGLIBDIR=/usr/lib/pbuilder + PBUILDER_SYSCONFDIR=/etc + PIPESTATUS=([0]="0") + POSIXLY_CORRECT=y + PPID=26288 PS4='+ ' - PWD='/' - SHELL='/bin/bash' - SHLVL='2' - SUDO_COMMAND='/usr/bin/timeout -k 18.1h 18h /usr/bin/ionice -c 3 /usr/bin/nice /usr/sbin/pbuilder --build --configfile /srv/reproducible-results/rbuild-debian/r-b-build.48EyQByF/pbuilderrc_z5uM --distribution bookworm --hookdir /etc/pbuilder/first-build-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/bookworm-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/r-b-build.48EyQByF/b1 --logfile b1/build.log ruby-contracts_0.17-1.dsc' - SUDO_GID='117' - SUDO_UID='110' - SUDO_USER='jenkins' - TERM='unknown' - TZ='/usr/share/zoneinfo/Etc/GMT+12' - USER='root' - USERNAME='root' - _='/usr/bin/systemd-run' - http_proxy='http://192.168.101.16:3128' + PWD=/ + SHELL=/bin/bash + SHELLOPTS=braceexpand:errexit:hashall:interactive-comments:posix + SHLVL=3 + SUDO_COMMAND='/usr/bin/timeout -k 24.1h 24h /usr/bin/ionice -c 3 /usr/bin/nice -n 11 /usr/bin/unshare --uts -- /usr/sbin/pbuilder --build --configfile /srv/reproducible-results/rbuild-debian/r-b-build.48EyQByF/pbuilderrc_AF2N --distribution bookworm --hookdir /etc/pbuilder/rebuild-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/bookworm-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/r-b-build.48EyQByF/b2 --logfile b2/build.log --extrapackages usrmerge ruby-contracts_0.17-1.dsc' + SUDO_GID=117 + SUDO_UID=110 + SUDO_USER=jenkins + TERM=unknown + TZ=/usr/share/zoneinfo/Etc/GMT-14 + UID=0 + USER=root + USERNAME=root + _='I: set' + http_proxy=http://192.168.101.16:3128 I: uname -a - Linux codethink15-arm64 4.15.0-209-generic #220-Ubuntu SMP Tue Mar 21 19:52:44 UTC 2023 aarch64 GNU/Linux + Linux i-capture-the-hostname 4.15.0-209-generic #220-Ubuntu SMP Tue Mar 21 19:52:44 UTC 2023 aarch64 GNU/Linux I: ls -l /bin - lrwxrwxrwx 1 root root 7 May 24 04:47 /bin -> usr/bin -I: user script /srv/workspace/pbuilder/23724/tmp/hooks/D02_print_environment finished + lrwxrwxrwx 1 root root 7 Apr 21 00:25 /bin -> usr/bin +I: user script /srv/workspace/pbuilder/26288/tmp/hooks/D02_print_environment finished -> Attempting to satisfy build-dependencies -> Creating pbuilder-satisfydepends-dummy package Package: pbuilder-satisfydepends-dummy @@ -243,7 +275,7 @@ Get: 129 http://deb.debian.org/debian bookworm/main arm64 ruby-rspec-expectations all 3.12.0c0e1m1s0-1 [89.5 kB] Get: 130 http://deb.debian.org/debian bookworm/main arm64 ruby-rspec-mocks all 3.12.0c0e1m1s0-1 [79.5 kB] Get: 131 http://deb.debian.org/debian bookworm/main arm64 ruby-rspec all 3.12.0c0e1m1s0-1 [5084 B] -Fetched 45.6 MB in 2s (28.5 MB/s) +Fetched 45.6 MB in 1s (31.9 MB/s) debconf: delaying package configuration, since apt-utils is not installed Selecting previously unselected package libpython3.11-minimal:arm64. (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 ... 19616 files and directories currently installed.) @@ -790,8 +822,17 @@ Writing extended state information... Building tag database... -> Finished parsing the build-deps +Reading package lists... +Building dependency tree... +Reading state information... +usrmerge is already the newest version (35). +0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. I: Building the package -I: Running cd /build/ruby-contracts-0.17/ && 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.17-1_source.changes +I: user script /srv/workspace/pbuilder/26288/tmp/hooks/A99_set_merged_usr starting +Re-configuring usrmerge... +I: user script /srv/workspace/pbuilder/26288/tmp/hooks/A99_set_merged_usr finished +hostname: Temporary failure in name resolution +I: Running cd /build/ruby-contracts-0.17/ && 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.17-1_source.changes dpkg-buildpackage: info: source package ruby-contracts dpkg-buildpackage: info: source version 0.17-1 dpkg-buildpackage: info: source distribution unstable @@ -819,13 +860,13 @@ dh_prep -O--buildsystem=ruby dh_auto_install --destdir=debian/ruby-contracts/ -O--buildsystem=ruby dh_ruby --install /build/ruby-contracts-0.17/debian/ruby-contracts -/usr/bin/ruby3.1 -S gem build --config-file /dev/null --verbose /tmp/d20240524-26547-zv7rns/gemspec +/usr/bin/ruby3.1 -S gem build --config-file /dev/null --verbose /tmp/d20230423-7892-du4z0o/gemspec Failed to load /dev/null because it doesn't contain valid YAML hash Successfully built RubyGem Name: contracts Version: 0.17 File: contracts-0.17.gem -/usr/bin/ruby3.1 -S gem install --config-file /dev/null --verbose --local --verbose --no-document --ignore-dependencies --install-dir debian/ruby-contracts/usr/share/rubygems-integration/all /tmp/d20240524-26547-zv7rns/contracts-0.17.gem +/usr/bin/ruby3.1 -S gem install --config-file /dev/null --verbose --local --verbose --no-document --ignore-dependencies --install-dir debian/ruby-contracts/usr/share/rubygems-integration/all /tmp/d20230423-7892-du4z0o/contracts-0.17.gem Failed to load /dev/null because it doesn't contain valid YAML hash /build/ruby-contracts-0.17/debian/ruby-contracts/usr/share/rubygems-integration/all/gems/contracts-0.17/benchmarks/bench.rb /build/ruby-contracts-0.17/debian/ruby-contracts/usr/share/rubygems-integration/all/gems/contracts-0.17/benchmarks/hash.rb @@ -891,392 +932,392 @@ All examples were filtered out; ignoring {:focus=>true} -Randomized with seed 44491 - -Contract validators - Range - fails when value is incorrect - passes when value is in range - fails when value is not in range - 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 +Randomized with seed 16223 Contracts: - method called with blocks - should enforce return value inside block with no other parameter - should enforce return value inside block with other parameter - should enforce return value inside lambda with no other parameter - should enforce return value inside lambda with other parameter + 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 + 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 + should fail for insufficient arguments + should fail for insufficient contracts + no contracts feature + disables invariants + does not disable pattern matching + disables normal contract checks + classes with extended modules + works correctly with methods with passing contracts + is possible to define it + works correctly with methods with passing contracts + should not fail with 'undefined method 'Contract'' + classes + should pass for correct input + should fail for incorrect input + 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 + blocks + should succeed for maybe proc with proc + should handle properly lack of block when there are other arguments + should pass for correct input + should fail for incorrect input + should succeed for maybe proc with no proc + should fail for maybe proc with invalid input + varargs are given with a maybe block + when a block is NOT passed in, varargs should still be correct + when a block is passed in, varargs should be correct + classes with a valid? class method + should pass for correct input + should fail for incorrect input + Arrays + should fail for some incorrect elements + should pass for correct input + should fail for insufficient items + default args to functions + should work for a function call that relies on default args + Contracts to_s formatting in expected + should not use custom to_s if empty string + should contain to_s representation within a nested Array contract + should contain to_s representation within an Array contract + should wrap and pretty print for long return contracts + should wrap and pretty print for long param contracts + should not contain Contracts:: module prefix + should show empty quotes as "" + should contain to_s representation within a nested Hash contract + should contain to_s representation within a Hash contract + should still show nils, not just blank space + should not stringify native types + 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 + pattern matching + if the return contract for a pattern match fails, it should fail instead of trying the next pattern match + should work for differing arities + should not fall through to next pattern when there is a deep contract violation + should fail when the pattern-matched method's contract fails + should work as expected when there is no contract violation + should fail if multiple methods are defined with the same contract (for pattern-matching) + when failure_callback was overriden + if the return contract for a pattern match fails, it should fail instead of trying the next pattern match, even with the failure callback + falls through to 2nd pattern when first pattern does not match + uses overriden failure_callback when pattern matching fails + calls a method when first pattern matches + 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 + 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 + instance and class methods + should allow a class to have an instance method and a class method with the same name + 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 + should not work for a function with a bad contract + 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 + module usage + with singleton methods + should check contract + with instance methods + should check contract + with singleton class methods + should check contract + varargs with block + should pass for correct input + should fail for incorrect input + when block has Func contract + should fail for incorrect input + functype + should correctly print out a class method's type + should correctly print out a instance method's type + contracts on functions + should fail for a returned function that doesn't pass the contract + should pass for a function that passes the contract as in tutorial + 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 fail for a function that doesn't pass the contract with weak other args + should pass for a function that passes the contract with weak other args + should not fail for a returned function that passes the contract + usage in the singleton class of a subclass + should work with a valid contract on a singleton method + 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 + class methods + should fail for incorrect input + should pass for correct input + Procs + should pass for correct input + should fail for incorrect input + singleton methods self in inherited methods + should be a proper self + module contracts + does not pass for instance of class including another module + passes for instance of class including both modules + passes for instance of class including inherited module + passes for instance of class including module + does not pass for instance of class not including module + inherited methods + should apply the contract to an inherited method + varargs + should work with arg before splat + should fail for incorrect input + should pass for correct input Contract .override_validator - allows to override class validator - allows to override default validator allows to override simple validators allows to override valid contract + allows to override class validator + allows to override default validator Contracts: - Eq: - should fail when given instance of class - should pass for a module - should pass for other values - should pass for a class - should fail when not equal - 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 pass for a range of dates - should fail for a non-range - ArrayOf: - should fail for a non-array - should pass for an array of nums - should fail for an array with one non-num + method called with blocks + should enforce return value inside lambda with other parameter + should enforce return value inside block with other parameter + should enforce return value inside block with no other parameter + should enforce return value inside lambda with no other parameter + +module methods + should fail for incorrect input + should pass for correct input + +Contracts: + Attrs: + attr_accessor_with_contract + getting invalid type for second val + setting invalid type for second val + getting valid type for second val + getting valid type + setting invalid type + getting invalid type + setting valid type for second val + setting valid type + attr_writer_with_contract + setting invalid type + getting + setting invalid type for second val + setting valid type + setting valid type for second val + attr_reader_with_contract + setting + getting invalid type for second val + getting valid type + getting valid type for second val + getting invalid type + +Contracts: + 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 + Nat: + should pass for 0 + should fail for positive non-whole numbers + should fail for negative numbers + should fail for nil and other data types + should pass for positive whole numbers + Any: + should pass for numbers + should pass for strings + should pass for nil + should pass for procs + RespondTo: + should pass for an object that responds to :good + should fail for an object that doesn't respond to :good HashOf: doesn't allow to specify multiple key-value pairs with pretty syntax - #to_s - given String => Num - is expected to eq "Hash" - given Symbol => String - is expected to eq "Hash" + given a fulfilled contract + is expected to eq 2 + is expected to eq 2 given an unfulfilled contract is expected to raise ContractError is expected to raise ContractError is expected to raise ContractError is expected to raise ContractError - given a fulfilled contract - 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" + KeywordArgs: + should fail for incorrect input + should fail if a key with a contract on it isn't provided + should fail if some keys don't have contracts + should pass for exact correct input Num: should pass for Fixnums should pass for Floats should fail for nil and other data types + SetOf: + should fail for a non-array + should fail for an array with one non-num + should pass for a set of nums + Xor: + 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 + should fail for an object with both methods :good and :bad Neg: - should fail for nil and other data types - should pass for negative numbers should fail for positive numbers + should pass for negative numbers should fail for 0 - Bool: - should pass for an argument that is a boolean + should fail for nil and other data types + RangeOf: + should pass for a range of nums + should fail for a range with incorrect data type + should fail for a non-range + should pass for a range of dates + should fail for a badly-defined range + Not: should fail for nil - Maybe: + should pass for an argument that isn't nil + Enum: + should fail for an object that is not included + should pass for an object that is included + Or: + should pass for strings should pass for nums - should pass for nils - should fail for strings - KeywordArgs: - should fail for incorrect input - should pass for exact correct input - should fail if some keys don't have contracts - should fail if a key with a contract on it isn't provided - DescendantOf: - should fail for a number class - should pass for Array - should fail for a non-class - should pass for a hash + should fail for nil + 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 + ArrayOf: + should fail for an array with one non-num + should pass for an array of nums + should fail for a non-array + Eq: + should fail when not equal + should pass for other values + should pass for a module + should fail when given instance of class + should pass for a class Send: should fail for an object that returns false for method :good should pass for an object that returns true for method :good + Optional: + can't be used outside of KeywordArgs Pos: should fail for 0 + should fail for nil and other data types should pass for positive numbers should fail for negative numbers - should fail for nil and other data types - RespondTo: - should pass for an object that responds to :good - should fail for an object that doesn't respond to :good + Bool: + should pass for an argument that is a boolean + should fail for nil + DescendantOf: + should fail for a number class + should fail for a non-class + should pass for Array + should pass for a hash StrictHash: when given an input with correct keys but wrong types raises an error - when given an exact correct input - does not raise an error - when given an input with missing keys - raises an error when given an input with extra keys raises an error when given not a hash raises an error - 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 - Optional: - can't be used outside of KeywordArgs - Any: - should pass for nil - should pass for strings - should pass for procs - should pass for numbers - Xor: - should pass for an object with a method :bad - should pass for an object with a method :good - should fail for an object with neither method - should fail for an object with both methods :good and :bad - SetOf: - should pass for a set of nums - should fail for a non-array - should fail for an array with one non-num - Or: - should fail for nil - should pass for nums - should pass for strings - Exactly: - should fail for an object that inherits from Parent - should pass for an object that is exactly a Parent - should fail for an object that is not related to Parent at all - Nat: - should fail for nil and other data types - should fail for positive non-whole numbers - should fail for negative numbers - should pass for positive whole numbers - should pass for 0 - Not: - should pass for an argument that isn't nil - should fail for nil + when given an input with missing keys + raises an error + when given an exact correct input + does not raise an error None: - should fail for strings - should fail for numbers should fail for nil + should fail for numbers + should fail for strings should fail for procs - Enum: - should fail for an object that is not included - should pass for an object that is included - -Contracts::Invariants - raises invariant violation error when any of invariants are not holding - works when all invariants are holding + Maybe: + should pass for nums + should pass for nils + should fail for strings -Contracts: - Attrs: - attr_writer_with_contract - setting invalid type for second val - getting - setting valid type - setting valid type for second val - setting invalid type - attr_reader_with_contract - getting valid type - getting invalid type - setting - getting valid type for second val - getting invalid type for second val - attr_accessor_with_contract - getting valid type - setting invalid type - getting invalid type - setting invalid type for second val - getting invalid type for second val - setting valid type for second val - setting valid type - getting valid type for second val +Contract validators + 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 + Range + passes when value is in range + fails when value is incorrect + fails when value is not in range Contracts::Support + eigenclass_of + returns the eigenclass of a given object eigenclass? is falsey for non-singleton classes is truthy for singleton classes - eigenclass_of - returns the eigenclass of a given object -Contracts: - default args to functions - should work for a function call that relies on default args - no contracts feature - disables normal contract checks - does not disable pattern matching - disables invariants - pattern matching - if the return contract for a pattern match fails, it should fail instead of trying the next pattern match - should work for differing arities - should fail when the pattern-matched method's contract fails - should not fall through to next pattern when there is a deep contract violation - should fail if multiple methods are defined with the same contract (for pattern-matching) - should work as expected when there is no contract violation - 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 - 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 - varargs - should fail for incorrect input - should pass for correct input - should work with arg before splat - blocks - should fail for maybe proc with invalid input - should pass for correct input - should fail for incorrect input - should succeed for maybe proc with no proc - should handle properly lack of block when there are other arguments - should succeed for maybe proc with proc - 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 - Hashes - should pass for exact correct input - 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 - classes with a valid? class method - should fail for incorrect input - should pass for correct input - anonymous classes - does not fail when contract is satisfied - fails with error when contract is violated - basic - should fail for insufficient contracts - should fail for insufficient arguments - Arrays - should pass for correct input - should fail for insufficient items - should fail for some incorrect elements - contracts for functions with no arguments - should work for functions with no args - should not work for a function with a bad contract - should still work for old-style contracts for functions with no args - class methods - should pass for correct input - should fail for incorrect input - instance methods - should allow two classes to have the same method with different contracts - instance and class methods - should allow a class to have an instance method and a class method with the same name - singleton methods self in inherited methods - should be a proper self - 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 - passes for instance of class including module - does not pass for instance of class not including module - 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 - classes - should fail for incorrect input - should pass for correct input - 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 - functype - should correctly print out a instance method's type - should correctly print out a class method's type - contracts on functions - should fail for a function that doesn't pass the contract - should pass for a function that passes the contract - should fail for a returned function that doesn't pass the contract - should not fail for a returned function that passes the contract - should 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 - 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 - 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 - protected methods - should raise an error if you try to access a protected method - should raise an error if you try to access a protected method - Contracts to_s formatting in expected - should not use custom to_s if empty string - should not contain Contracts:: module prefix - should wrap and pretty print for long return contracts - should not stringify native types - should wrap and pretty print for long param contracts - should contain to_s representation within a Hash contract - should contain to_s representation within an Array contract - should contain to_s representation within a nested Hash contract - should still show nils, not just blank space - should contain to_s representation within a nested Array contract - should show empty quotes as "" - 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 modules - fails with error when contract is violated - does not fail when contract is satisfied - when called on module itself - fails with error when contract is violated - does not fail when contract is satisfied - varargs with block - should fail for incorrect input - should pass for correct input - when block has Func contract - should fail for incorrect input - inherited methods - should apply the contract to an inherited method - Procs - should fail for incorrect input - should pass for correct input - module usage - with singleton class methods - should check contract - with singleton methods - should check contract - with instance methods - should check contract - 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 - -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 -Top 10 slowest examples (0.18766 seconds, 19.3% of total time): - Contracts: Contracts to_s formatting in expected should wrap and pretty print for long param contracts - 0.02391 seconds ./spec/contracts_spec.rb:643 - Contract.override_validator allows to override default validator - 0.02328 seconds ./spec/override_validators_spec.rb:127 +Top 10 slowest examples (0.06168 seconds, 15.1% of total time): + Contracts: pattern matching should not fall through to next pattern when there is a deep contract violation + 0.01676 seconds ./spec/contracts_spec.rb:55 + Contracts: HashOf: given an unfulfilled contract is expected to raise ContractError + 0.00637 seconds ./spec/builtin_contracts_spec.rb:412 + Contracts: Pos: should fail for nil and other data types + 0.00521 seconds ./spec/builtin_contracts_spec.rb:64 + Contracts: Num: should fail for nil and other data types + 0.00509 seconds ./spec/builtin_contracts_spec.rb:41 + Contracts: Neg: should fail for nil and other data types + 0.00497 seconds ./spec/builtin_contracts_spec.rb:87 Contracts: KeywordArgs: should fail for incorrect input - 0.02318 seconds ./spec/builtin_contracts_spec.rb:374 - Contracts: anonymous modules when called on module itself does not fail when contract is satisfied - 0.02165 seconds ./spec/contracts_spec.rb:265 - Contracts: Contracts to_s formatting in expected should wrap and pretty print for long return contracts - 0.02013 seconds ./spec/contracts_spec.rb:654 + 0.00478 seconds ./spec/builtin_contracts_spec.rb:374 + Contracts: Nat: should fail for nil and other data types + 0.00475 seconds ./spec/builtin_contracts_spec.rb:113 + Contracts: RangeOf: should fail for a non-range + 0.00466 seconds ./spec/builtin_contracts_spec.rb:295 + Contract.override_validator allows to override class validator + 0.00462 seconds ./spec/override_validators_spec.rb:96 Contract.override_validator allows to override valid contract - 0.0195 seconds ./spec/override_validators_spec.rb:45 - Contracts: Or: should fail for nil - 0.0152 seconds ./spec/builtin_contracts_spec.rb:160 - Contracts: classes with extended modules should not fail with 'undefined method 'Contract'' - 0.0143 seconds ./spec/contracts_spec.rb:758 - Contracts: Pos: should fail for nil and other data types - 0.01333 seconds ./spec/builtin_contracts_spec.rb:64 - Contracts: anonymous modules fails with error when contract is violated - 0.01317 seconds ./spec/contracts_spec.rb:258 + 0.00447 seconds ./spec/override_validators_spec.rb:45 Top 9 slowest example groups: Contract - 0.01485 seconds average (0.05939 seconds / 4 examples) ./spec/override_validators_spec.rb:1 + 0.00438 seconds average (0.01752 seconds / 4 examples) ./spec/override_validators_spec.rb:1 Contracts: - 0.00446 seconds average (0.45922 seconds / 103 examples) ./spec/contracts_spec.rb:1 + 0.0019 seconds average (0.00762 seconds / 4 examples) ./spec/methods_spec.rb:1 Contracts: - 0.00416 seconds average (0.36605 seconds / 88 examples) ./spec/builtin_contracts_spec.rb:1 - Contract validators - 0.00315 seconds average (0.02202 seconds / 7 examples) ./spec/validators_spec.rb:3 + 0.00183 seconds average (0.18802 seconds / 103 examples) ./spec/contracts_spec.rb:1 Contracts: - 0.00306 seconds average (0.01223 seconds / 4 examples) ./spec/methods_spec.rb:1 + 0.00176 seconds average (0.15498 seconds / 88 examples) ./spec/builtin_contracts_spec.rb:1 Contracts::Support - 0.00239 seconds average (0.00716 seconds / 3 examples) ./spec/support_spec.rb:2 - Contracts: - 0.00204 seconds average (0.03666 seconds / 18 examples) ./spec/attrs_spec.rb:1 + 0.00152 seconds average (0.00457 seconds / 3 examples) ./spec/support_spec.rb:2 module methods - 0.00185 seconds average (0.0037 seconds / 2 examples) ./spec/module_spec.rb:10 + 0.00132 seconds average (0.00265 seconds / 2 examples) ./spec/module_spec.rb:10 + Contract validators + 0.00131 seconds average (0.00914 seconds / 7 examples) ./spec/validators_spec.rb:3 Contracts::Invariants - 0.00148 seconds average (0.00295 seconds / 2 examples) ./spec/invariants_spec.rb:2 + 0.00116 seconds average (0.00232 seconds / 2 examples) ./spec/invariants_spec.rb:2 + Contracts: + 0.0011 seconds average (0.01976 seconds / 18 examples) ./spec/attrs_spec.rb:1 -Finished in 0.97385 seconds (files took 0.82197 seconds to load) +Finished in 0.40979 seconds (files took 0.56824 seconds to load) 231 examples, 0 failures -Randomized with seed 44491 +Randomized with seed 16223 ┌──────────────────────────────────────────────────────────────────────────────┐ @@ -1307,12 +1348,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/26288/tmp/hooks/B01_cleanup starting +I: user script /srv/workspace/pbuilder/26288/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/23724 and its subdirectories -I: Current time: Fri May 24 18:21:01 -12 2024 -I: pbuilder-time-stamp: 1716618061 +I: removing directory /srv/workspace/pbuilder/26288 and its subdirectories +I: Current time: Sun Apr 23 13:59:18 +14 2023 +I: pbuilder-time-stamp: 1682207958