Diff of the two buildlogs: -- --- b1/build.log 2025-10-30 05:08:07.492171475 +0000 +++ b2/build.log 2025-10-30 05:18:14.276630588 +0000 @@ -1,6 +1,6 @@ I: pbuilder: network access will be disabled during build -I: Current time: Wed Oct 29 17:07:06 -12 2025 -I: pbuilder-time-stamp: 1761800826 +I: Current time: Thu Dec 3 01:31:37 +14 2026 +I: pbuilder-time-stamp: 1796211097 I: Building the build Environment I: extracting base tarball [/var/cache/pbuilder/forky-reproducible-base.tgz] I: copying local configuration @@ -22,53 +22,85 @@ dpkg-source: info: unpacking ruby-contracts_0.17.2-1.debian.tar.xz I: Not using root during the build. I: Installing the build-deps -I: user script /srv/workspace/pbuilder/497681/tmp/hooks/D02_print_environment starting +I: user script /srv/workspace/pbuilder/3913012/tmp/hooks/D01_modify_environment starting +debug: Running on ionos15-amd64. +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 Dec 2 11:33 /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/3913012/tmp/hooks/D01_modify_environment finished +I: user script /srv/workspace/pbuilder/3913012/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='amd64' - DEBIAN_FRONTEND='noninteractive' - DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all parallel=40 ' - DISTRIBUTION='forky' - HOME='/root' - HOST_ARCH='amd64' + 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]="3" [2]="3" [3]="1" [4]="release" [5]="x86_64-pc-linux-gnu") + BASH_VERSION='5.3.3(1)-release' + BUILDDIR=/build/reproducible-path + BUILDUSERGECOS='second user,second room,second work-phone,second home-phone,second other' + BUILDUSERNAME=pbuilder2 + BUILD_ARCH=amd64 + DEBIAN_FRONTEND=noninteractive + DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all parallel=42 ' + DIRSTACK=() + DISTRIBUTION=forky + EUID=0 + FUNCNAME=([0]="Echo" [1]="main") + GROUPS=() + HOME=/root + HOSTNAME=i-capture-the-hostname + HOSTTYPE=x86_64 + HOST_ARCH=amd64 IFS=' ' - INVOCATION_ID='a9777ce7981f42a3bf1da4083c3f4c08' - 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='497681' - PS1='# ' - PS2='> ' + INVOCATION_ID=64ceaa95147d4e089e263827592b8b30 + LANG=C + LANGUAGE=et_EE:et + LC_ALL=C + MACHTYPE=x86_64-pc-linux-gnu + MAIL=/var/mail/root + OPTERR=1 + OPTIND=1 + OSTYPE=linux-gnu + PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path + PBCURRENTCOMMANDLINEOPERATION=build + PBUILDER_OPERATION=build + PBUILDER_PKGDATADIR=/usr/share/pbuilder + PBUILDER_PKGLIBDIR=/usr/lib/pbuilder + PBUILDER_SYSCONFDIR=/etc + PIPESTATUS=([0]="0") + POSIXLY_CORRECT=y + PPID=3913012 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.MSSEXHDT/pbuilderrc_vf9e --distribution forky --hookdir /etc/pbuilder/first-build-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/forky-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/r-b-build.MSSEXHDT/b1 --logfile b1/build.log ruby-contracts_0.17.2-1.dsc' - SUDO_GID='111' - SUDO_HOME='/var/lib/jenkins' - SUDO_UID='106' - SUDO_USER='jenkins' - TERM='unknown' - TZ='/usr/share/zoneinfo/Etc/GMT+12' - USER='root' - _='/usr/bin/systemd-run' - http_proxy='http://46.16.76.132: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.MSSEXHDT/pbuilderrc_Um44 --distribution forky --hookdir /etc/pbuilder/rebuild-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/forky-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/r-b-build.MSSEXHDT/b2 --logfile b2/build.log ruby-contracts_0.17.2-1.dsc' + SUDO_GID=111 + SUDO_HOME=/var/lib/jenkins + SUDO_UID=106 + SUDO_USER=jenkins + TERM=unknown + TZ=/usr/share/zoneinfo/Etc/GMT-14 + UID=0 + USER=root + _='I: set' + http_proxy=http://213.165.73.152:3128 I: uname -a - Linux ionos11-amd64 6.12.48+deb13-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.12.48-1 (2025-09-20) x86_64 GNU/Linux + Linux i-capture-the-hostname 6.12.48+deb13-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.12.48-1 (2025-09-20) x86_64 GNU/Linux I: ls -l /bin - lrwxrwxrwx 1 root root 7 Aug 10 12:30 /bin -> usr/bin -I: user script /srv/workspace/pbuilder/497681/tmp/hooks/D02_print_environment finished + lrwxrwxrwx 1 root root 7 Aug 10 2025 /bin -> usr/bin +I: user script /srv/workspace/pbuilder/3913012/tmp/hooks/D02_print_environment finished -> Attempting to satisfy build-dependencies -> Creating pbuilder-satisfydepends-dummy package Package: pbuilder-satisfydepends-dummy @@ -235,7 +267,7 @@ Get: 123 http://deb.debian.org/debian forky/main amd64 ruby-rspec-expectations all 3.13.0c0e0m0s1-2 [90.2 kB] Get: 124 http://deb.debian.org/debian forky/main amd64 ruby-rspec-mocks all 3.13.0c0e0m0s1-2 [81.3 kB] Get: 125 http://deb.debian.org/debian forky/main amd64 ruby-rspec all 3.13.0c0e0m0s1-2 [5184 B] -Fetched 36.8 MB in 1s (46.4 MB/s) +Fetched 36.8 MB in 17s (2218 kB/s) Preconfiguring packages ... Selecting previously unselected package libexpat1:amd64. (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 ... 19869 files and directories currently installed.) @@ -654,8 +686,8 @@ Setting up tzdata (2025b-5) ... Current default time zone: 'Etc/UTC' -Local time is now: Thu Oct 30 05:07:50 UTC 2025. -Universal Time is now: Thu Oct 30 05:07:50 UTC 2025. +Local time is now: Wed Dec 2 11:39:11 UTC 2026. +Universal Time is now: Wed Dec 2 11:39:11 UTC 2026. Run 'dpkg-reconfigure tzdata' if you wish to change it. Setting up ruby-minitest (5.25.4-3) ... @@ -770,7 +802,11 @@ Building tag database... -> Finished parsing the build-deps I: Building the package -I: Running cd /build/reproducible-path/ruby-contracts-0.17.2/ && 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-1_source.changes +I: user script /srv/workspace/pbuilder/3913012/tmp/hooks/A99_set_merged_usr starting +Not re-configuring usrmerge for forky +I: user script /srv/workspace/pbuilder/3913012/tmp/hooks/A99_set_merged_usr finished +hostname: Name or service not known +I: Running cd /build/reproducible-path/ruby-contracts-0.17.2/ && 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-1_source.changes dpkg-buildpackage: info: source package ruby-contracts dpkg-buildpackage: info: source version 0.17.2-1 dpkg-buildpackage: info: source distribution unstable @@ -803,12 +839,12 @@ │ ruby-contracts: Installing files and building extensions for ruby3.3 │ └──────────────────────────────────────────────────────────────────────────────┘ -/usr/bin/ruby3.3 -S gem build --config-file /dev/null --verbose /tmp/d20251029-509311-9wdr3i/gemspec +/usr/bin/ruby3.3 -S gem build --config-file /dev/null --verbose /tmp/d20261203-3966318-m7hv8i/gemspec Successfully built RubyGem Name: contracts Version: 0.17.2 File: contracts-0.17.2.gem -/usr/bin/ruby3.3 -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/d20251029-509311-9wdr3i/contracts-0.17.2.gem +/usr/bin/ruby3.3 -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/d20261203-3966318-m7hv8i/contracts-0.17.2.gem /build/reproducible-path/ruby-contracts-0.17.2/debian/ruby-contracts/usr/share/rubygems-integration/all/gems/contracts-0.17.2/benchmarks/bench.rb /build/reproducible-path/ruby-contracts-0.17.2/debian/ruby-contracts/usr/share/rubygems-integration/all/gems/contracts-0.17.2/benchmarks/hash.rb /build/reproducible-path/ruby-contracts-0.17.2/debian/ruby-contracts/usr/share/rubygems-integration/all/gems/contracts-0.17.2/benchmarks/invariants.rb @@ -869,392 +905,392 @@ All examples were filtered out; ignoring {:focus=>true} -Randomized with seed 36088 - -Contracts: - method called with blocks - should enforce return value inside lambda with no other parameter - should enforce return value inside block with no other parameter - should enforce return value inside lambda with other parameter - should enforce return value inside block with other parameter - -module methods - should pass for correct input - should fail for incorrect input +Randomized with seed 3183 Contract .override_validator - allows to override simple validators - allows to override default validator allows to override class validator allows to override valid contract - -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 an array - should pass for a matching string - within a hash - should pass for a matching string + allows to override simple validators + allows to override default validator Contracts: Attrs: - attr_writer_with_contract - setting invalid type - setting valid type for second val - getting - setting invalid type for second val - setting valid type attr_accessor_with_contract + setting invalid type for second val + getting invalid type + getting valid type setting invalid type + setting valid type for second val + getting invalid type for second val setting valid type - setting invalid type for second val getting valid type for second val - getting invalid type for second val - setting valid type for second val - getting valid type - getting invalid type attr_reader_with_contract - getting invalid type - setting getting valid type - getting valid type for second val + setting getting invalid type for second val + getting invalid type + getting valid type for second val + attr_writer_with_contract + setting valid type for second val + setting invalid type + getting + setting valid type + setting invalid type for second val + +Contracts: + 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 + Any: + should pass for procs + should pass for strings + should pass for numbers + should pass for nil + Optional: + can't be used outside of KeywordArgs + RangeOf: + should fail for a non-range + 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 range with incorrect data type + Maybe: + should fail for strings + should pass for nums + should pass for nils + ArrayOf: + should pass for an array of nums + should fail for a non-array + should fail for an array with one non-num + Neg: + should fail for positive numbers + should fail for 0 + should pass for negative numbers + should fail for nil and other data types + Not: + should fail for nil + should pass for an argument that isn't nil + Eq: + should pass for other values + should pass for a class + should pass for a module + should fail when given instance of class + should fail when not equal + SetOf: + should fail for a non-array + should fail for an array with one non-num + should pass for a set 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 + HashOf: + doesn't allow to specify multiple key-value pairs with pretty syntax + 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 Symbol => String + is expected to eq "Hash" + given String => Num + is expected to eq "Hash" + Nat: + should pass for positive whole numbers + should fail for nil and other data types + should pass for 0 + should fail for positive non-whole numbers + should fail for negative numbers + Pos: + should fail for nil and other data types + should fail for 0 + should fail for negative numbers + should pass for positive numbers + Or: + should pass for nums + should pass for strings + should fail for nil + StrictHash: + when given not a hash + raises an error + when given an input with missing keys + raises an error + when given an input with extra keys + raises an error + when given an input with correct keys but wrong types + raises an error + when given an exact correct input + does not raise an error + RespondTo: + should pass for an object that responds to :good + should fail for an object that doesn't respond to :good + DescendantOf: + should fail for a number class + should fail for a non-class + should pass for a hash + should pass for Array + Enum: + should pass for an object that is included + should fail for an object that is not included + Bool: + should pass for an argument that is a boolean + should fail for nil + 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 + KeywordArgs: + should fail if some keys don't have contracts + should fail if a key with a contract on it isn't provided + should pass for exact correct input + should fail for incorrect input + Num: + should pass for Integers + should pass for Floats + should fail for nil and other data types + Send: + should fail for an object that returns false for method :good + should pass for an object that returns true for method :good + None: + should fail for numbers + should fail for strings + should fail for nil + should fail for procs + +Contracts::Support + eigenclass_of + returns the eigenclass of a given object + eigenclass? + is falsey for non-singleton classes + is truthy for singleton classes + +module methods + should pass for correct input + should fail for incorrect input Contracts::Invariants raises invariant violation error when any of invariants are not holding works when all invariants are holding Contracts: - class methods - should fail for incorrect input - should pass for correct input - classes + 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 + +Contracts: + varargs with block should fail for incorrect input should pass for correct input + when block has Func contract + should fail for incorrect input Contracts to_s formatting in expected + should contain to_s representation within a Hash contract + should not use custom to_s if empty string + should contain to_s representation within an Array contract should still show nils, not just blank space - should contain to_s representation within a nested Hash contract - 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 not stringify native types should contain to_s representation within a nested Array contract + should wrap and pretty print for long return contracts + should not contain Contracts:: module prefix should show empty quotes as "" - should contain to_s representation within an Array contract - should contain to_s representation within a Hash contract - should not use custom to_s if empty string - functype - should correctly print out a instance method's type - should correctly print out a class method's type - inherited methods - should apply the contract to an inherited method - basic - should fail for insufficient contracts - should fail for insufficient arguments - protected methods - should raise an error if you try to access a protected method - should raise an error if you try to access a protected method - instance methods - should allow two classes to have the same method with different contracts - classes with extended modules - works correctly with methods with passing contracts - works correctly with methods with passing contracts - is possible to define it - should not fail with 'undefined method 'Contract'' - varargs with block - should pass for correct input - should fail for incorrect input - when block has Func contract - should fail for incorrect input - varargs - should fail for incorrect input - should pass for correct input - should work with arg before splat - contracts for functions with no arguments - should still work for old-style contracts for functions with no args - should work for functions with no args - should not work for a function with a bad contract + should contain to_s representation within a nested Hash contract singleton methods self in inherited methods should be a proper self - pattern matching - should fail if multiple methods are defined with the same contract (for pattern-matching) - should work for differing arities - should work as expected when there is no contract violation - if the return contract for a pattern match fails, it should fail instead of trying the next pattern match - should not fall through to next pattern when there is a deep contract violation - should fail when the pattern-matched method's contract fails - when failure_callback was overriden - falls through to 2nd pattern when first pattern does not match - if the return contract for a pattern match fails, it should fail instead of trying the next pattern match, even with the failure callback - uses overriden failure_callback when pattern matching fails - calls a method when first pattern matches + 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 + 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 + default args to functions + should work for a function call that relies on default args module usage + with singleton methods + should check contract with instance methods should check contract with singleton class methods should check contract - with singleton methods - should check contract - contracts on functions - should fail for a returned function that doesn't pass the contract - should pass for a function that passes the contract with weak other args - should fail for a function that doesn't pass the contract - 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 not fail for a returned function that passes the contract - should fail for a returned function that receives the wrong argument type - should pass for a function that passes the contract as in tutorial Procs should fail for incorrect input should pass for correct 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 modules - fails with error when contract is violated - does not fail when contract is satisfied - when called on module itself - does not fail when contract is satisfied - fails with error when contract is violated - Arrays - should pass for correct input - should fail for some incorrect elements - should fail for insufficient items + 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 module contracts - 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 + passes for instance of class including inherited module does not pass for instance of class not including module passes for instance of class including both modules - instance and class methods - should allow a class to have an instance method and a class method with the same name - Hashes - 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 even if some keys don't have contracts - default args to functions - should work for a function call that relies on default args - anonymous classes - does not fail when contract is satisfied - fails with error when contract is violated + passes for instance of class including module no contracts feature disables invariants disables normal contract checks does not disable pattern matching - usage in the singleton class of a subclass - should work with a valid contract on a singleton method + anonymous classes + does not fail when contract is satisfied + fails with error when contract is violated failure callbacks - when failure_callback returns 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 - classes with a valid? class method + when failure_callback returns true + calls a function for which the contract fails + class methods + should pass for correct input + should fail for incorrect input + Arrays + should fail for insufficient items + should fail for some incorrect elements + should pass for correct input + contracts on functions + 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 with weak other args + should fail for a returned function that doesn't pass the contract + should pass for a function that passes the contract + should fail for a returned function that receives the wrong argument type + should pass for a function that passes the contract as in tutorial + 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 + 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 + instance and class methods + should allow a class to have an instance method and a class method with the same name + classes should pass for correct input should fail for incorrect input + inherited methods + should apply the contract to an inherited method + varargs + should pass for correct input + should work with arg before splat + should fail for incorrect input + protected methods + should raise an error if you try to access a protected method + should raise an error if you try to access a protected method 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 - blocks + should not fail for an object that is a subclass of the type in the contract + basic + should fail for insufficient contracts + should fail for insufficient arguments + classes with a valid? class method should pass for correct input + should fail for incorrect input + blocks should succeed for maybe proc with no proc - should handle properly lack of block when there are other arguments + should pass for correct input should succeed for maybe proc with proc - should fail for incorrect input should fail for maybe proc with invalid input + should handle properly lack of block when there are other arguments + should fail for incorrect input varargs are given with a maybe block when a block is passed in, varargs should be correct when a block is NOT passed in, varargs should still be correct - -Contracts::Support - eigenclass_of - returns the eigenclass of a given object - eigenclass? - is truthy for singleton classes - is falsey for non-singleton classes - -Contracts: - KeywordArgs: - should fail for incorrect input - should fail if some keys don't have contracts + Hashes + 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 - 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 - Send: - should pass for an object that returns true for method :good - should fail for an object that returns false for method :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 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 - Nat: - should fail for positive non-whole numbers - should pass for positive whole numbers - should pass for 0 - should fail for nil and other data types - should fail for negative numbers - Maybe: - should pass for nils - should pass for nums - should fail for strings - RespondTo: - should pass for an object that responds to :good - should fail for an object that doesn't respond to :good - None: - should fail for numbers - should fail for procs - should fail for strings - should fail for nil - ArrayOf: - should pass for an array of nums - should fail for an array with one non-num - should fail for a non-array - Not: - should fail for nil - should pass for an argument that isn't nil - Neg: - should fail for nil and other data types - should fail for positive numbers - should fail for 0 - should pass for negative numbers - Exactly: - should pass for an object that is exactly a Parent - should fail for an object that is not related to Parent at all - should fail for an object that inherits from Parent - Any: - should pass for nil - should pass for strings - should pass for numbers - should pass for procs - Bool: - should pass for an argument that is a boolean - should fail for nil - Pos: - should pass for positive numbers - should fail for negative numbers - should fail for nil and other data types - should fail for 0 - 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 - Num: - should pass for Integers - should fail for nil and other data types - should pass for Floats - Or: - should pass for strings - should pass for nums - should fail for nil - Eq: - should pass for a module - should fail when not equal - should pass for a class - should pass for other values - should fail when given instance of class - DescendantOf: - should pass for Array - should fail for a non-class - should fail for a number class - should pass for a hash - StrictHash: - when given an input with missing keys - raises an error - when given an exact correct input - does not raise an error - when given an input with correct keys but wrong types - raises an error - when given an input with extra keys - raises an error - when given not a hash - raises an error - SetOf: - should pass for a set of nums - should fail for a non-array - should fail for an array with one non-num - Xor: - should pass for an object with a method :bad - should fail for an object with both methods :good and :bad - should fail for an object with neither method - should pass for an object with a method :good - Optional: - can't be used outside of KeywordArgs - Enum: - should pass for an object that is included - should fail for an object that is not included + should fail for incorrect input + functype + should correctly print out a class method's type + should correctly print out a instance method's type + classes with extended modules + works correctly with methods with passing contracts + should not fail with 'undefined method 'Contract'' + is possible to define it + works correctly with methods with passing contracts + pattern matching + should not fall through to next pattern when there is a deep contract violation + should work as expected when there is no 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 work for differing arities + 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 + calls a method when first pattern matches + uses overriden failure_callback when pattern matching fails + falls through to 2nd pattern when first pattern does not match -Top 10 slowest examples (0.02519 seconds, 16.8% of total time): +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 + fails when value is incorrect + fails when value is not in range + passes when value is in range + +Top 10 slowest examples (0.06377 seconds, 22.0% of total time): Contract.override_validator allows to override default validator - 0.00799 seconds ./spec/override_validators_spec.rb:127 - Contracts: KeywordArgs: should fail for incorrect input - 0.0052 seconds ./spec/builtin_contracts_spec.rb:374 - Contracts: method called with blocks should enforce return value inside lambda with no other parameter - 0.00217 seconds ./spec/methods_spec.rb:46 + 0.01634 seconds ./spec/override_validators_spec.rb:127 + Contracts: classes with extended modules works correctly with methods with passing contracts + 0.01194 seconds ./spec/contracts_spec.rb:752 + Contracts: Contracts to_s formatting in expected should not stringify native types + 0.01012 seconds ./spec/contracts_spec.rb:603 Contract.override_validator allows to override class validator - 0.00178 seconds ./spec/override_validators_spec.rb:96 + 0.00954 seconds ./spec/override_validators_spec.rb:96 Contracts: RangeOf: should fail for a non-range - 0.00138 seconds ./spec/builtin_contracts_spec.rb:295 - Contracts: Num: should fail for nil and other data types - 0.00137 seconds ./spec/builtin_contracts_spec.rb:41 - Contracts: Pos: should fail for nil and other data types - 0.00136 seconds ./spec/builtin_contracts_spec.rb:64 - Contracts: Nat: should fail for nil and other data types - 0.00134 seconds ./spec/builtin_contracts_spec.rb:113 + 0.00281 seconds ./spec/builtin_contracts_spec.rb:295 Contracts: Neg: should fail for nil and other data types - 0.00133 seconds ./spec/builtin_contracts_spec.rb:87 + 0.00276 seconds ./spec/builtin_contracts_spec.rb:87 Contract.override_validator allows to override valid contract - 0.00127 seconds ./spec/override_validators_spec.rb:45 + 0.00262 seconds ./spec/override_validators_spec.rb:45 + Contracts: Nat: should fail for nil and other data types + 0.00261 seconds ./spec/builtin_contracts_spec.rb:113 + Contracts: Pos: should fail for nil and other data types + 0.00257 seconds ./spec/builtin_contracts_spec.rb:64 + Contracts: Num: should fail for nil and other data types + 0.00246 seconds ./spec/builtin_contracts_spec.rb:41 Top 9 slowest example groups: Contract - 0.00321 seconds average (0.01286 seconds / 4 examples) ./spec/override_validators_spec.rb:1 + 0.00812 seconds average (0.03246 seconds / 4 examples) ./spec/override_validators_spec.rb:1 + Contracts::Support + 0.00121 seconds average (0.00364 seconds / 3 examples) ./spec/support_spec.rb:2 Contracts: - 0.00109 seconds average (0.00435 seconds / 4 examples) ./spec/methods_spec.rb:1 + 0.00118 seconds average (0.12121 seconds / 103 examples) ./spec/contracts_spec.rb:1 Contracts: - 0.00065 seconds average (0.05732 seconds / 88 examples) ./spec/builtin_contracts_spec.rb:1 - Contracts::Support - 0.00064 seconds average (0.00191 seconds / 3 examples) ./spec/support_spec.rb:2 + 0.00116 seconds average (0.10228 seconds / 88 examples) ./spec/builtin_contracts_spec.rb:1 Contracts: - 0.00058 seconds average (0.05983 seconds / 103 examples) ./spec/contracts_spec.rb:1 + 0.00108 seconds average (0.0043 seconds / 4 examples) ./spec/methods_spec.rb:1 Contract validators - 0.0005 seconds average (0.00351 seconds / 7 examples) ./spec/validators_spec.rb:3 + 0.00098 seconds average (0.00685 seconds / 7 examples) ./spec/validators_spec.rb:3 module methods - 0.00045 seconds average (0.0009 seconds / 2 examples) ./spec/module_spec.rb:10 + 0.00078 seconds average (0.00155 seconds / 2 examples) ./spec/module_spec.rb:10 Contracts: - 0.00043 seconds average (0.00773 seconds / 18 examples) ./spec/attrs_spec.rb:1 + 0.00073 seconds average (0.01306 seconds / 18 examples) ./spec/attrs_spec.rb:1 Contracts::Invariants - 0.0004 seconds average (0.0008 seconds / 2 examples) ./spec/invariants_spec.rb:2 + 0.0006 seconds average (0.00119 seconds / 2 examples) ./spec/invariants_spec.rb:2 -Finished in 0.15028 seconds (files took 0.18687 seconds to load) +Finished in 0.28936 seconds (files took 0.61092 seconds to load) 231 examples, 0 failures -Randomized with seed 36088 +Randomized with seed 3183 ┌──────────────────────────────────────────────────────────────────────────────┐ @@ -1285,12 +1321,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/3913012/tmp/hooks/B01_cleanup starting +I: user script /srv/workspace/pbuilder/3913012/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/497681 and its subdirectories -I: Current time: Wed Oct 29 17:08:07 -12 2025 -I: pbuilder-time-stamp: 1761800887 +I: removing directory /srv/workspace/pbuilder/3913012 and its subdirectories +I: Current time: Thu Dec 3 01:41:12 +14 2026 +I: pbuilder-time-stamp: 1796211672