Diff of the two buildlogs: -- --- b1/build.log 2024-12-10 06:52:48.911399383 +0000 +++ b2/build.log 2024-12-10 06:53:36.969221604 +0000 @@ -1,6 +1,6 @@ I: pbuilder: network access will be disabled during build -I: Current time: Mon Dec 9 18:52:10 -12 2024 -I: pbuilder-time-stamp: 1733813530 +I: Current time: Tue Jan 13 03:15:51 +14 2026 +I: pbuilder-time-stamp: 1768223751 I: Building the build Environment I: extracting base tarball [/var/cache/pbuilder/unstable-reproducible-base.tgz] I: copying local configuration @@ -27,52 +27,84 @@ dpkg-source: info: applying replace-fixnum-with-integer.patch I: Not using root during the build. I: Installing the build-deps -I: user script /srv/workspace/pbuilder/3751864/tmp/hooks/D02_print_environment starting +I: user script /srv/workspace/pbuilder/1672546/tmp/hooks/D01_modify_environment starting +debug: Running on codethink01-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 Jan 12 13:15 /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/1672546/tmp/hooks/D01_modify_environment finished +I: user script /srv/workspace/pbuilder/1672546/tmp/hooks/D02_print_environment starting I: set - BUILDDIR='/build/reproducible-path' - BUILDUSERGECOS='first user,first room,first work-phone,first home-phone,first other' - BUILDUSERNAME='pbuilder1' - BUILD_ARCH='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]="37" [3]="1" [4]="release" [5]="aarch64-unknown-linux-gnu") + BASH_VERSION='5.2.37(1)-release' + BUILDDIR=/build/reproducible-path + 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=12 ' - DISTRIBUTION='unstable' - HOME='/root' - HOST_ARCH='arm64' + DIRSTACK=() + DISTRIBUTION=unstable + EUID=0 + FUNCNAME=([0]="Echo" [1]="main") + GROUPS=() + HOME=/root + HOSTNAME=i-capture-the-hostname + HOSTTYPE=aarch64 + HOST_ARCH=arm64 IFS=' ' - INVOCATION_ID='88ef4c9a640646338c09153a499f0300' - 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='3751864' - PS1='# ' - PS2='> ' + INVOCATION_ID=3824d7d4f95b477295e7b1648646ac6c + 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=1672546 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.nksztm7d/pbuilderrc_pYvD --distribution unstable --hookdir /etc/pbuilder/first-build-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/unstable-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/r-b-build.nksztm7d/b1 --logfile b1/build.log ruby-contracts_0.17-2.dsc' - SUDO_GID='109' - SUDO_UID='104' - SUDO_USER='jenkins' - TERM='unknown' - TZ='/usr/share/zoneinfo/Etc/GMT+12' - USER='root' - _='/usr/bin/systemd-run' - http_proxy='http://192.168.101.4: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.nksztm7d/pbuilderrc_P4nI --distribution unstable --hookdir /etc/pbuilder/rebuild-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/unstable-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/r-b-build.nksztm7d/b2 --logfile b2/build.log ruby-contracts_0.17-2.dsc' + SUDO_GID=109 + SUDO_UID=104 + SUDO_USER=jenkins + TERM=unknown + TZ=/usr/share/zoneinfo/Etc/GMT-14 + UID=0 + USER=root + _='I: set' + http_proxy=http://192.168.101.4:3128 I: uname -a - Linux codethink02-arm64 6.1.0-28-cloud-arm64 #1 SMP Debian 6.1.119-1 (2024-11-22) aarch64 GNU/Linux + Linux i-capture-the-hostname 6.1.0-28-cloud-arm64 #1 SMP Debian 6.1.119-1 (2024-11-22) aarch64 GNU/Linux I: ls -l /bin - lrwxrwxrwx 1 root root 7 Nov 22 14:40 /bin -> usr/bin -I: user script /srv/workspace/pbuilder/3751864/tmp/hooks/D02_print_environment finished + lrwxrwxrwx 1 root root 7 Nov 22 2024 /bin -> usr/bin +I: user script /srv/workspace/pbuilder/1672546/tmp/hooks/D02_print_environment finished -> Attempting to satisfy build-dependencies -> Creating pbuilder-satisfydepends-dummy package Package: pbuilder-satisfydepends-dummy @@ -249,7 +281,7 @@ Get: 133 http://deb.debian.org/debian unstable/main arm64 ruby-rspec-expectations all 3.13.0c0e0m0s1-2 [90.2 kB] Get: 134 http://deb.debian.org/debian unstable/main arm64 ruby-rspec-mocks all 3.13.0c0e0m0s1-2 [81.3 kB] Get: 135 http://deb.debian.org/debian unstable/main arm64 ruby-rspec all 3.13.0c0e0m0s1-2 [5184 B] -Fetched 42.9 MB in 0s (119 MB/s) +Fetched 42.9 MB in 0s (153 MB/s) debconf: delaying package configuration, since apt-utils is not installed Selecting previously unselected package libpython3.12-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 ... 20083 files and directories currently installed.) @@ -704,8 +736,8 @@ Setting up tzdata (2024b-4) ... Current default time zone: 'Etc/UTC' -Local time is now: Tue Dec 10 06:52:32 UTC 2024. -Universal Time is now: Tue Dec 10 06:52:32 UTC 2024. +Local time is now: Mon Jan 12 13:16:13 UTC 2026. +Universal Time is now: Mon Jan 12 13:16:13 UTC 2026. Run 'dpkg-reconfigure tzdata' if you wish to change it. Setting up autotools-dev (20220109.1) ... @@ -825,7 +857,11 @@ Building tag database... -> Finished parsing the build-deps I: Building the package -I: Running cd /build/reproducible-path/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-2_source.changes +I: user script /srv/workspace/pbuilder/1672546/tmp/hooks/A99_set_merged_usr starting +Not re-configuring usrmerge for unstable +I: user script /srv/workspace/pbuilder/1672546/tmp/hooks/A99_set_merged_usr finished +hostname: Name or service not known +I: Running cd /build/reproducible-path/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-2_source.changes dpkg-buildpackage: info: source package ruby-contracts dpkg-buildpackage: info: source version 0.17-2 dpkg-buildpackage: info: source distribution unstable @@ -858,13 +894,13 @@ │ ruby-contracts: Installing files and building extensions for ruby3.1 │ └──────────────────────────────────────────────────────────────────────────────┘ -/usr/bin/ruby3.1 -S gem build --config-file /dev/null --verbose /tmp/d20241209-3762043-pewo4i/gemspec +/usr/bin/ruby3.1 -S gem build --config-file /dev/null --verbose /tmp/d20260113-1683167-dn2d5n/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/d20241209-3762043-pewo4i/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/d20260113-1683167-dn2d5n/contracts-0.17.gem Failed to load /dev/null because it doesn't contain valid YAML hash /build/reproducible-path/ruby-contracts-0.17/debian/ruby-contracts/usr/share/rubygems-integration/all/gems/contracts-0.17/benchmarks/bench.rb /build/reproducible-path/ruby-contracts-0.17/debian/ruby-contracts/usr/share/rubygems-integration/all/gems/contracts-0.17/benchmarks/hash.rb @@ -930,176 +966,266 @@ All examples were filtered out; ignoring {:focus=>true} -Randomized with seed 61012 +Randomized with seed 45847 -module methods - should pass for correct input - should fail for incorrect input +Contract validators + Range + fails when value is incorrect + passes when value is in range + fails when value is not in range + Regexp + should pass for a matching string + should fail for a non-matching string + within an array + should pass for a matching string + within a hash + should pass for a matching string -Contracts::Invariants - raises invariant violation error when any of invariants are not holding - works when all invariants are holding +Contracts: + method called with blocks + should enforce return value inside lambda with no other parameter + 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 Contracts: - Attrs: - attr_accessor_with_contract - setting invalid type - setting valid type for second val - getting invalid type - getting valid type for second val - getting valid type - setting valid type - getting invalid type for second val - setting invalid type for second val - attr_writer_with_contract - setting valid type for second val - setting valid type - getting - setting invalid type for second val - setting invalid type - attr_reader_with_contract - getting valid type for second val - getting invalid type for second val - setting - getting invalid type - getting valid type + Send: + should fail for an object that returns false for method :good + should pass for an object that returns true for method :good + Nat: + should fail for positive non-whole numbers + should pass for positive whole numbers + should fail for negative numbers + should fail for nil and other data types + should pass for 0 + 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 + RespondTo: + should fail for an object that doesn't respond to :good + should pass for an object that responds to :good + RangeOf: + should fail for a range with incorrect data type + should pass for a range of dates + should pass for a range of nums + should fail for a badly-defined range + should fail for a non-range + Eq: + should fail when not equal + should fail when given instance of class + should pass for a module + should pass for other values + should pass for a class + StrictHash: + 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 missing keys + raises an error + when given an exact correct input + does not raise an error + when given an input with extra keys + raises an error + Or: + should fail for nil + should pass for strings + should pass for nums + Enum: + should pass for an object that is included + should fail for an object that is not included + Any: + should pass for strings + should pass for procs + should pass for numbers + should pass for nil + Not: + should pass for an argument that isn't nil + should fail for nil + Optional: + can't be used outside of KeywordArgs + ArrayOf: + should fail for a non-array + should fail for an array with one non-num + should pass for an array of nums + 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 + Neg: + should fail for 0 + should fail for positive numbers + should fail for nil and other data types + should pass for negative numbers + Exactly: + should fail for an object that is not related to Parent at all + should pass for an object that is exactly a Parent + should fail for an object that inherits from Parent + DescendantOf: + should pass for a hash + should fail for a number class + should fail for a non-class + should pass for Array + Maybe: + should pass for nums + should pass for nils + should fail for strings + SetOf: + should fail for an array with one non-num + should fail for a non-array + should pass for a set of nums + Bool: + should fail for nil + should pass for an argument that is a boolean + KeywordArgs: + should fail if some keys don't have contracts + should pass for exact correct input + should fail for incorrect input + should fail if a key with a contract on it isn't provided + Num: + should pass for Floats + should fail for nil and other data types + should pass for Integers + Pos: + should fail for negative numbers + should fail for nil and other data types + should pass for positive numbers + should fail for 0 + None: + should fail for numbers + should fail for strings + should fail for procs + should fail for nil + Xor: + should pass for an object with a method :good + should pass for an object with a method :bad + should fail for an object with neither method + should fail for an object with both methods :good and :bad Contract .override_validator - allows to override default validator - allows to override simple validators allows to override valid contract + allows to override simple validators + allows to override default validator allows to override class validator Contracts: - contracts on functions - should pass for a function that passes the contract with weak other args - 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 - should pass for a 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 - module contracts - does not pass for instance of class not including module - passes for instance of class including both modules - passes for instance of class including module - passes for instance of class including inherited module - does not pass for instance of class including another module - 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 - should fail for insufficient contracts - should fail for insufficient arguments - classes + usage in the singleton class of a subclass + should work with a valid contract on a singleton method + varargs should pass for correct input should fail for incorrect input - blocks - should fail for maybe proc with invalid input - should fail for incorrect input - should handle properly lack of block when there are other arguments - should pass for correct input - should succeed for maybe proc with no proc - 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 - varargs should work with arg before splat - should fail for incorrect input - should pass for correct input - usage in the singleton class of a subclass - should work with a valid contract on a singleton method + module contracts + passes for instance of class including inherited module + passes for instance of class including both modules + does not pass for instance of class not including module + does not pass for instance of class including another module + passes for instance of class including module + 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 + no contracts feature + disables invariants + does not disable pattern matching + disables normal contract checks varargs with block should pass for correct input should fail for incorrect input when block has Func contract should fail for incorrect input - Hashes - should pass for exact correct input - should pass even if some keys don't have contracts - should fail for incorrect input - should fail if a key with a contract on it isn't provided + default args to functions + should work for a function call that relies on default args classes with extended modules + is possible to define it works correctly with methods with passing contracts works correctly with methods with passing contracts should not fail with 'undefined method 'Contract'' - is possible to define it - 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 - class methods - should pass for correct input - should fail for incorrect input - anonymous modules - does not fail when contract is satisfied - fails with error when contract is violated - when called on module itself - does not fail when contract is satisfied - fails with error when contract is violated + 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 - Contracts to_s formatting in expected - should contain to_s representation within an Array contract - should wrap and pretty print for long return contracts - should not contain Contracts:: module prefix - should not use custom to_s if empty string - should wrap and pretty print for long param contracts - should not stringify native types - should show empty quotes as "" - should contain to_s representation within a nested Hash contract - should contain to_s representation within a nested Array contract - should still show nils, not just blank space - should contain to_s representation within a Hash contract - inherited methods - should apply the contract to an inherited method - Arrays - should pass for correct input - should fail for insufficient items - should fail for some incorrect elements - singleton methods self in inherited methods - should be a proper self - classes with a valid? class method + classes should fail for incorrect input 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 - contracts for functions with no arguments - 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 + blocks + should succeed for maybe proc with proc + 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 no proc + should pass for correct input + should fail for incorrect input + varargs are given with a maybe block + when a block is passed in, varargs should be correct + when a block is NOT passed in, varargs should still be correct pattern matching - should work for differing arities - should fail when the pattern-matched method's contract fails should work as expected when there is no contract violation + should work for differing arities 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) if the return contract for a pattern match fails, it should fail instead of trying the next pattern match + should fail when the pattern-matched method's contract fails 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 - calls a method when first pattern matches uses overriden failure_callback when pattern matching fails - no contracts feature - does not disable pattern matching - disables normal contract checks - disables invariants - failure callbacks - when failure_callback returns false - does not call a function for which the contract fails - when failure_callback returns true - calls a function for which the contract fails - classes - should not fail for an object that is the exact type as the contract - should not fail for an object that is a subclass of the type in the contract + calls a method when first pattern matches + anonymous classes + does not fail when contract is satisfied + fails with error when contract is violated + contracts for functions with no arguments + should not work for a function with a bad contract + should work for functions with no args + should still work for old-style contracts for functions with no args + Procs + 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 + contracts on functions + should fail for a returned function that doesn't pass the contract + should fail for a returned function that receives the wrong argument type + should fail for a function that doesn't pass the contract + should not fail for a returned function that passes the contract + should fail for a function that doesn't pass the contract with weak other args + should pass for a function that passes the contract as in tutorial + should pass for a function that passes the contract + should pass for a function that passes the contract with weak other args + Contracts to_s formatting in expected + should contain to_s representation within a nested Array contract + should contain to_s representation within a nested Hash contract + should not use custom to_s if empty string + should not contain Contracts:: module prefix + should not stringify native types + should show empty quotes as "" + should contain to_s representation within an Array contract + should wrap and pretty print for long return contracts + should contain to_s representation within a Hash contract + should still show nils, not just blank space + should wrap and pretty print for long param contracts + classes with a valid? class method + should pass for correct input + should fail for incorrect input + inherited methods + should apply the contract to an inherited method module usage with instance methods should check contract @@ -1107,16 +1233,43 @@ should check contract with singleton methods should check contract + 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 + Arrays + should fail for some incorrect elements + should pass for correct input + should fail for insufficient items + instance methods + should allow two classes to have the same method with different contracts + class methods + should pass for correct input + should fail for incorrect input + 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 + private methods + should raise an error if you try to access a private method + should raise an error if you try to access a private method + Hashes + should pass for exact correct input + should fail if a key with a contract on it isn't provided + should pass even if some keys don't have contracts + should fail for incorrect input + singleton methods self in inherited methods + should be a proper self + basic + should fail for insufficient contracts + should fail for insufficient arguments functype should correctly print out a class method's type should correctly print out a instance method's type - Procs - should pass for correct input - should fail for incorrect input - default args to functions - should work for a function call that relies on default args - instance and class methods - should allow a class to have an instance method and a class method with the same name + +module methods + should pass for correct input + should fail for incorrect input Contracts::Support eigenclass_of @@ -1125,197 +1278,80 @@ is truthy for singleton classes is falsey for non-singleton classes -Contracts: - method called with blocks - should enforce return value inside lambda with no 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 other parameter - -Contract validators - Range - passes when value is in range - fails when value is incorrect - fails when value is not in range - Regexp - should fail for a non-matching string - should pass for a matching string - within an array - should pass for a matching string - within a hash - should pass for a matching string +Contracts::Invariants + works when all invariants are holding + raises invariant violation error when any of invariants are not holding Contracts: - Neg: - should fail for 0 - should pass for negative numbers - should fail for positive numbers - should fail for nil and other data types - 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 an input with missing keys - raises an error - when given not a hash - raises an error - when given an input with extra keys - raises an error - 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 - Optional: - can't be used outside of KeywordArgs - None: - should fail for procs - should fail for strings - should fail for nil - should fail for numbers - Or: - should pass for strings - should pass for nums - should fail for nil - Bool: - should pass for an argument that is a boolean - should fail for nil - KeywordArgs: - should fail if a key with a contract on it isn't provided - should fail if some keys don't have contracts - should fail for incorrect input - should pass for exact correct input - RespondTo: - should pass for an object that responds to :good - should fail for an object that doesn't respond to :good - Exactly: - should fail for an object that inherits from Parent - should fail for an object that is not related to Parent at all - should pass for an object that is exactly a Parent - HashOf: - doesn't allow to specify multiple key-value pairs with pretty syntax - #to_s - given Symbol => String - is expected to eq "Hash" - given String => Num - is expected to eq "Hash" - 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 - Num: - should fail for nil and other data types - should pass for Integers - should pass for Floats - Send: - should pass for an object that returns true for method :good - should fail for an object that returns false for method :good - Eq: - should pass for a module - should fail when given instance of class - should fail when not equal - should pass for a class - should pass for other values - Maybe: - should fail for strings - should pass for nils - should pass for nums - DescendantOf: - should pass for a hash - should fail for a number class - should pass for Array - should fail for a non-class - ArrayOf: - should fail for an array with one non-num - should fail for a non-array - should pass for an array of nums - SetOf: - should fail for a non-array - should pass for a set of nums - should fail for an array with one non-num - Pos: - should fail for negative numbers - should fail for 0 - should fail for nil and other data types - should pass for positive numbers - 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 - Not: - should pass for an argument that isn't nil - should fail for nil - Enum: - should fail for an object that is not included - should pass for an object that is included - RangeOf: - should fail for a range with incorrect data type - should fail for a badly-defined range - should pass for a range of nums - should pass for a range of dates - should fail for a non-range - Any: - should pass for numbers - should pass for nil - should pass for procs - should pass for strings - Nat: - should pass for positive whole numbers - should fail for positive non-whole numbers - should fail for negative numbers - should fail for nil and other data types - should pass for 0 + Attrs: + attr_accessor_with_contract + getting valid type + setting invalid type for second val + getting valid type for second val + setting valid type + getting invalid type for second val + getting invalid type + setting valid type for second val + setting invalid type + attr_reader_with_contract + getting valid type + getting valid type for second val + setting + getting invalid type for second val + getting invalid type + attr_writer_with_contract + setting valid type for second val + setting invalid type + setting valid type + getting + setting invalid type for second val -Top 10 slowest examples (0.03825 seconds, 26.3% of total time): +Top 10 slowest examples (0.02923 seconds, 19.1% of total time): Contract.override_validator allows to override default validator - 0.00974 seconds ./spec/override_validators_spec.rb:127 - Contracts: Nat: should fail for nil and other data types - 0.00782 seconds ./spec/builtin_contracts_spec.rb:113 - Contracts: Nat: should pass for 0 - 0.00712 seconds ./spec/builtin_contracts_spec.rb:96 - Contracts: Contracts to_s formatting in expected should contain to_s representation within an Array contract - 0.0035 seconds ./spec/contracts_spec.rb:631 - Contracts: method called with blocks should enforce return value inside block with other parameter - 0.00292 seconds ./spec/methods_spec.rb:42 + 0.00658 seconds ./spec/override_validators_spec.rb:127 + Contracts: HashOf: given an unfulfilled contract is expected to raise ContractError + 0.00598 seconds ./spec/builtin_contracts_spec.rb:409 + Contracts: None: should fail for procs + 0.00279 seconds ./spec/builtin_contracts_spec.rb:143 + Contracts: failure callbacks when failure_callback returns true calls a function for which the contract fails + 0.00279 seconds ./spec/contracts_spec.rb:555 + Contract validators Range fails when value is incorrect + 0.00277 seconds ./spec/validators_spec.rb:19 Contract.override_validator allows to override class validator - 0.00158 seconds ./spec/override_validators_spec.rb:96 + 0.00206 seconds ./spec/override_validators_spec.rb:96 Contract.override_validator allows to override valid contract - 0.00149 seconds ./spec/override_validators_spec.rb:45 - module methods should fail for incorrect input - 0.00143 seconds ./spec/module_spec.rb:15 - Contracts: Num: should fail for nil and other data types - 0.00137 seconds ./spec/builtin_contracts_spec.rb:41 - Contract.override_validator allows to override simple validators - 0.0013 seconds ./spec/override_validators_spec.rb:9 + 0.00194 seconds ./spec/override_validators_spec.rb:45 + Contracts: Pos: should fail for nil and other data types + 0.00147 seconds ./spec/builtin_contracts_spec.rb:64 + Contracts: anonymous modules when called on module itself does not fail when contract is satisfied + 0.00143 seconds ./spec/contracts_spec.rb:265 + Contracts: Nat: should fail for nil and other data types + 0.00141 seconds ./spec/builtin_contracts_spec.rb:113 Top 9 slowest example groups: Contract - 0.00367 seconds average (0.0147 seconds / 4 examples) ./spec/override_validators_spec.rb:1 - module methods - 0.00152 seconds average (0.00303 seconds / 2 examples) ./spec/module_spec.rb:10 + 0.00317 seconds average (0.01267 seconds / 4 examples) ./spec/override_validators_spec.rb:1 + Contract validators + 0.00084 seconds average (0.00585 seconds / 7 examples) ./spec/validators_spec.rb:3 Contracts: - 0.00123 seconds average (0.00492 seconds / 4 examples) ./spec/methods_spec.rb:1 + 0.0007 seconds average (0.00282 seconds / 4 examples) ./spec/methods_spec.rb:1 Contracts: - 0.00069 seconds average (0.06082 seconds / 88 examples) ./spec/builtin_contracts_spec.rb:1 + 0.00065 seconds average (0.05736 seconds / 88 examples) ./spec/builtin_contracts_spec.rb:1 Contracts: - 0.00048 seconds average (0.04982 seconds / 103 examples) ./spec/contracts_spec.rb:1 + 0.00061 seconds average (0.06313 seconds / 103 examples) ./spec/contracts_spec.rb:1 Contracts::Support - 0.00046 seconds average (0.00139 seconds / 3 examples) ./spec/support_spec.rb:2 - Contract validators - 0.0004 seconds average (0.0028 seconds / 7 examples) ./spec/validators_spec.rb:3 + 0.00058 seconds average (0.00175 seconds / 3 examples) ./spec/support_spec.rb:2 + module methods + 0.0004 seconds average (0.00081 seconds / 2 examples) ./spec/module_spec.rb:10 Contracts: - 0.00035 seconds average (0.00631 seconds / 18 examples) ./spec/attrs_spec.rb:1 + 0.00037 seconds average (0.00668 seconds / 18 examples) ./spec/attrs_spec.rb:1 Contracts::Invariants - 0.0003 seconds average (0.00059 seconds / 2 examples) ./spec/invariants_spec.rb:2 + 0.00027 seconds average (0.00054 seconds / 2 examples) ./spec/invariants_spec.rb:2 -Finished in 0.14554 seconds (files took 0.17749 seconds to load) +Finished in 0.15286 seconds (files took 0.19793 seconds to load) 231 examples, 0 failures -Randomized with seed 61012 +Randomized with seed 45847 ┌──────────────────────────────────────────────────────────────────────────────┐ @@ -1346,12 +1382,14 @@ dpkg-buildpackage: info: binary-only upload (no source included) dpkg-genchanges: info: not including original source code in upload I: copying local configuration +I: user script /srv/workspace/pbuilder/1672546/tmp/hooks/B01_cleanup starting +I: user script /srv/workspace/pbuilder/1672546/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/3751864 and its subdirectories -I: Current time: Mon Dec 9 18:52:47 -12 2024 -I: pbuilder-time-stamp: 1733813567 +I: removing directory /srv/workspace/pbuilder/1672546 and its subdirectories +I: Current time: Tue Jan 13 03:16:35 +14 2026 +I: pbuilder-time-stamp: 1768223795