Diff of the two buildlogs: -- --- b1/build.log 2020-04-29 01:36:35.105199797 +0000 +++ b2/build.log 2020-04-29 02:52:13.655973726 +0000 @@ -1,6 +1,6 @@ I: pbuilder: network access will be disabled during build -I: Current time: Mon May 31 19:59:11 -12 2021 -I: pbuilder-time-stamp: 1622534351 +I: Current time: Wed Apr 29 15:36:37 +14 2020 +I: pbuilder-time-stamp: 1588124197 I: Building the build Environment I: extracting base tarball [/var/cache/pbuilder/buster-reproducible-base.tgz] I: copying local configuration @@ -18,7 +18,7 @@ I: Extracting source gpgv: unknown type of key resource 'trustedkeys.kbx' gpgv: keyblock resource '/root/.gnupg/trustedkeys.kbx': General error -gpgv: Signature made Wed Aug 23 04:58:41 2017 -12 +gpgv: Signature made Thu Aug 24 06:58:41 2017 +14 gpgv: using RSA key 7E43E9ACBF727AB3CF0885338716CE4614A452D8 gpgv: Can't check signature: No public key dpkg-source: warning: failed to verify signature on ./ruby-contracts_0.16.0-1.dsc @@ -27,6 +27,18 @@ dpkg-source: info: unpacking ruby-contracts_0.16.0-1.debian.tar.xz I: using fakeroot in build. I: Installing the build-deps +I: user script /srv/workspace/pbuilder/9990/tmp/hooks/D01_modify_environment starting +debug: Running on profitbricks-build2-i386. +I: Changing host+domainname to test build reproducibility +I: Adding a custom variable just for the fun of it... +I: Changing /bin/sh to bash +Removing 'diversion of /bin/sh to /bin/sh.distrib by dash' +Adding 'diversion of /bin/sh to /bin/sh.distrib by bash' +Removing 'diversion of /usr/share/man/man1/sh.1.gz to /usr/share/man/man1/sh.distrib.1.gz by dash' +Adding 'diversion of /usr/share/man/man1/sh.1.gz to /usr/share/man/man1/sh.distrib.1.gz by bash' +I: Setting pbuilder2's login shell to /bin/bash +I: Setting pbuilder2's GECOS to second user,second room,second work-phone,second home-phone,second other +I: user script /srv/workspace/pbuilder/9990/tmp/hooks/D01_modify_environment finished -> Attempting to satisfy build-dependencies -> Creating pbuilder-satisfydepends-dummy package Package: pbuilder-satisfydepends-dummy @@ -203,7 +215,7 @@ Get: 133 http://deb.debian.org/debian buster/main i386 ruby-thread-order all 1.1.0-1 [5096 B] Get: 134 http://deb.debian.org/debian buster/main i386 ruby-rspec-core all 3.8.0c0e1m0s0-1 [190 kB] Get: 135 http://deb.debian.org/debian buster/main i386 ruby-rspec all 3.8.0c0e1m0s0-1 [7620 B] -Fetched 43.8 MB in 1s (68.4 MB/s) +Fetched 43.8 MB in 11s (3852 kB/s) debconf: delaying package configuration, since apt-utils is not installed Selecting previously unselected package libbsd0:i386. (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 ... 19231 files and directories currently installed.) @@ -775,7 +787,7 @@ fakeroot is already the newest version (1.23-1). 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. I: Building the package -I: Running cd /build/ruby-contracts-0.16.0/ && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games" HOME="/nonexistent/first-build" dpkg-buildpackage -us -uc -b +I: Running cd /build/ruby-contracts-0.16.0/ && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path" HOME="/nonexistent/second-build" dpkg-buildpackage -us -uc -b dpkg-buildpackage: info: source package ruby-contracts dpkg-buildpackage: info: source version 0.16.0-1 dpkg-buildpackage: info: source distribution unstable @@ -817,23 +829,23 @@ install -d /build/ruby-contracts-0.16.0/debian/ruby-contracts/usr/lib/ruby/vendor_ruby install -D -m644 /build/ruby-contracts-0.16.0/lib/contracts.rb /build/ruby-contracts-0.16.0/debian/ruby-contracts/usr/lib/ruby/vendor_ruby/contracts.rb -install -D -m644 /build/ruby-contracts-0.16.0/lib/contracts/errors.rb /build/ruby-contracts-0.16.0/debian/ruby-contracts/usr/lib/ruby/vendor_ruby/contracts/errors.rb -install -D -m644 /build/ruby-contracts-0.16.0/lib/contracts/engine.rb /build/ruby-contracts-0.16.0/debian/ruby-contracts/usr/lib/ruby/vendor_ruby/contracts/engine.rb -install -D -m644 /build/ruby-contracts-0.16.0/lib/contracts/method_handler.rb /build/ruby-contracts-0.16.0/debian/ruby-contracts/usr/lib/ruby/vendor_ruby/contracts/method_handler.rb install -D -m644 /build/ruby-contracts-0.16.0/lib/contracts/version.rb /build/ruby-contracts-0.16.0/debian/ruby-contracts/usr/lib/ruby/vendor_ruby/contracts/version.rb -install -D -m644 /build/ruby-contracts-0.16.0/lib/contracts/engine/target.rb /build/ruby-contracts-0.16.0/debian/ruby-contracts/usr/lib/ruby/vendor_ruby/contracts/engine/target.rb -install -D -m644 /build/ruby-contracts-0.16.0/lib/contracts/engine/eigenclass.rb /build/ruby-contracts-0.16.0/debian/ruby-contracts/usr/lib/ruby/vendor_ruby/contracts/engine/eigenclass.rb -install -D -m644 /build/ruby-contracts-0.16.0/lib/contracts/engine/base.rb /build/ruby-contracts-0.16.0/debian/ruby-contracts/usr/lib/ruby/vendor_ruby/contracts/engine/base.rb -install -D -m644 /build/ruby-contracts-0.16.0/lib/contracts/invariants.rb /build/ruby-contracts-0.16.0/debian/ruby-contracts/usr/lib/ruby/vendor_ruby/contracts/invariants.rb -install -D -m644 /build/ruby-contracts-0.16.0/lib/contracts/attrs.rb /build/ruby-contracts-0.16.0/debian/ruby-contracts/usr/lib/ruby/vendor_ruby/contracts/attrs.rb -install -D -m644 /build/ruby-contracts-0.16.0/lib/contracts/builtin_contracts.rb /build/ruby-contracts-0.16.0/debian/ruby-contracts/usr/lib/ruby/vendor_ruby/contracts/builtin_contracts.rb -install -D -m644 /build/ruby-contracts-0.16.0/lib/contracts/call_with.rb /build/ruby-contracts-0.16.0/debian/ruby-contracts/usr/lib/ruby/vendor_ruby/contracts/call_with.rb -install -D -m644 /build/ruby-contracts-0.16.0/lib/contracts/validators.rb /build/ruby-contracts-0.16.0/debian/ruby-contracts/usr/lib/ruby/vendor_ruby/contracts/validators.rb install -D -m644 /build/ruby-contracts-0.16.0/lib/contracts/core.rb /build/ruby-contracts-0.16.0/debian/ruby-contracts/usr/lib/ruby/vendor_ruby/contracts/core.rb install -D -m644 /build/ruby-contracts-0.16.0/lib/contracts/formatters.rb /build/ruby-contracts-0.16.0/debian/ruby-contracts/usr/lib/ruby/vendor_ruby/contracts/formatters.rb +install -D -m644 /build/ruby-contracts-0.16.0/lib/contracts/invariants.rb /build/ruby-contracts-0.16.0/debian/ruby-contracts/usr/lib/ruby/vendor_ruby/contracts/invariants.rb +install -D -m644 /build/ruby-contracts-0.16.0/lib/contracts/call_with.rb /build/ruby-contracts-0.16.0/debian/ruby-contracts/usr/lib/ruby/vendor_ruby/contracts/call_with.rb +install -D -m644 /build/ruby-contracts-0.16.0/lib/contracts/method_handler.rb /build/ruby-contracts-0.16.0/debian/ruby-contracts/usr/lib/ruby/vendor_ruby/contracts/method_handler.rb install -D -m644 /build/ruby-contracts-0.16.0/lib/contracts/decorators.rb /build/ruby-contracts-0.16.0/debian/ruby-contracts/usr/lib/ruby/vendor_ruby/contracts/decorators.rb -install -D -m644 /build/ruby-contracts-0.16.0/lib/contracts/support.rb /build/ruby-contracts-0.16.0/debian/ruby-contracts/usr/lib/ruby/vendor_ruby/contracts/support.rb +install -D -m644 /build/ruby-contracts-0.16.0/lib/contracts/errors.rb /build/ruby-contracts-0.16.0/debian/ruby-contracts/usr/lib/ruby/vendor_ruby/contracts/errors.rb +install -D -m644 /build/ruby-contracts-0.16.0/lib/contracts/attrs.rb /build/ruby-contracts-0.16.0/debian/ruby-contracts/usr/lib/ruby/vendor_ruby/contracts/attrs.rb install -D -m644 /build/ruby-contracts-0.16.0/lib/contracts/method_reference.rb /build/ruby-contracts-0.16.0/debian/ruby-contracts/usr/lib/ruby/vendor_ruby/contracts/method_reference.rb +install -D -m644 /build/ruby-contracts-0.16.0/lib/contracts/support.rb /build/ruby-contracts-0.16.0/debian/ruby-contracts/usr/lib/ruby/vendor_ruby/contracts/support.rb +install -D -m644 /build/ruby-contracts-0.16.0/lib/contracts/builtin_contracts.rb /build/ruby-contracts-0.16.0/debian/ruby-contracts/usr/lib/ruby/vendor_ruby/contracts/builtin_contracts.rb +install -D -m644 /build/ruby-contracts-0.16.0/lib/contracts/engine/target.rb /build/ruby-contracts-0.16.0/debian/ruby-contracts/usr/lib/ruby/vendor_ruby/contracts/engine/target.rb +install -D -m644 /build/ruby-contracts-0.16.0/lib/contracts/engine/base.rb /build/ruby-contracts-0.16.0/debian/ruby-contracts/usr/lib/ruby/vendor_ruby/contracts/engine/base.rb +install -D -m644 /build/ruby-contracts-0.16.0/lib/contracts/engine/eigenclass.rb /build/ruby-contracts-0.16.0/debian/ruby-contracts/usr/lib/ruby/vendor_ruby/contracts/engine/eigenclass.rb +install -D -m644 /build/ruby-contracts-0.16.0/lib/contracts/validators.rb /build/ruby-contracts-0.16.0/debian/ruby-contracts/usr/lib/ruby/vendor_ruby/contracts/validators.rb +install -D -m644 /build/ruby-contracts-0.16.0/lib/contracts/engine.rb /build/ruby-contracts-0.16.0/debian/ruby-contracts/usr/lib/ruby/vendor_ruby/contracts/engine.rb dh_installchangelogs -pruby-contracts /build/ruby-contracts-0.16.0/CHANGELOG.markdown upstream ┌──────────────────────────────────────────────────────────────────────────────┐ @@ -870,24 +882,61 @@ All examples were filtered out; ignoring {:focus=>true} -Randomized with seed 20219 +Randomized with seed 18783 -Contracts::Invariants - raises invariant violation error when any of invariants are not holding - works when all invariants are holding +Contract validators + Regexp + should pass for a matching string + should fail for a non-matching string + within a hash + should pass for a matching string + within an array + should pass for a matching string + Range + passes when value is in range + fails when value is not in range + fails when value is incorrect + +Contract + .override_validator + allows to override simple validators + allows to override valid contract + allows to override class validator + allows to override default validator + +Contracts: + Attrs: + attr_accessor_with_contract + setting valid type + getting invalid type + getting valid type + setting invalid type + attr_reader_with_contract + getting valid type + getting invalid type + setting + attr_writer_with_contract + getting + setting invalid type + setting valid type Contracts: method called with blocks WARNING: Using the `raise_error` matcher without providing a specific error or message risks false positives, since `raise_error` will match when Ruby raises a `NoMethodError`, `NameError` or `ArgumentError`, potentially allowing the expectation to pass without even executing the method you are intending to call. Actual error raised was # Num - At: /build/ruby-contracts-0.16.0/spec/methods_spec.rb:51 >. Instead consider providing a specific error class or message. This message can be suppressed by setting: `RSpec::Expectations.configuration.on_potential_false_positives = :nothing`. Called from /build/ruby-contracts-0.16.0/spec/methods_spec.rb:51:in `block (3 levels) in '. - should enforce return value inside lambda with other parameter + At: /build/ruby-contracts-0.16.0/spec/methods_spec.rb:43 >. Instead consider providing a specific error class or message. This message can be suppressed by setting: `RSpec::Expectations.configuration.on_potential_false_positives = :nothing`. Called from /build/ruby-contracts-0.16.0/spec/methods_spec.rb:43:in `block (3 levels) in '. + should enforce return value inside block with other parameter WARNING: Using the `raise_error` matcher without providing a specific error or message risks false positives, since `raise_error` will match when Ruby raises a `NoMethodError`, `NameError` or `ArgumentError`, potentially allowing the expectation to pass without even executing the method you are intending to call. Actual error raised was # Num - At: /build/ruby-contracts-0.16.0/spec/methods_spec.rb:43 >. Instead consider providing a specific error class or message. This message can be suppressed by setting: `RSpec::Expectations.configuration.on_potential_false_positives = :nothing`. Called from /build/ruby-contracts-0.16.0/spec/methods_spec.rb:43:in `block (3 levels) in '. - should enforce return value inside block with other parameter + At: /build/ruby-contracts-0.16.0/spec/methods_spec.rb:47 >. Instead consider providing a specific error class or message. This message can be suppressed by setting: `RSpec::Expectations.configuration.on_potential_false_positives = :nothing`. Called from /build/ruby-contracts-0.16.0/spec/methods_spec.rb:47:in `block (3 levels) in '. + should enforce return value inside lambda with no other parameter +WARNING: Using the `raise_error` matcher without providing a specific error or message risks false positives, since `raise_error` will match when Ruby raises a `NoMethodError`, `NameError` or `ArgumentError`, potentially allowing the expectation to pass without even executing the method you are intending to call. Actual error raised was # Num + At: /build/ruby-contracts-0.16.0/spec/methods_spec.rb:51 >. Instead consider providing a specific error class or message. This message can be suppressed by setting: `RSpec::Expectations.configuration.on_potential_false_positives = :nothing`. Called from /build/ruby-contracts-0.16.0/spec/methods_spec.rb:51:in `block (3 levels) in '. + should enforce return value inside lambda with other parameter WARNING: Using the `raise_error` matcher without providing a specific error or message risks false positives, since `raise_error` will match when Ruby raises a `NoMethodError`, `NameError` or `ArgumentError`, potentially allowing the expectation to pass without even executing the method you are intending to call. Actual error raised was # Num At: >. Instead consider providing a specific error class or message. This message can be suppressed by setting: `RSpec::Expectations.configuration.on_potential_false_positives = :nothing`. Called from /build/ruby-contracts-0.16.0/spec/methods_spec.rb:39:in `block (3 levels) in '. should enforce return value inside block with no other parameter -WARNING: Using the `raise_error` matcher without providing a specific error or message risks false positives, since `raise_error` will match when Ruby raises a `NoMethodError`, `NameError` or `ArgumentError`, potentially allowing the expectation to pass without even executing the method you are intending to call. Actual error raised was #. Instead consider providing a specific error class or message. This message can be suppressed by setting: `RSpec::Expectations.configuration.on_potential_false_positives = :nothing`. Called from /build/ruby-contracts-0.16.0/spec/contracts_spec.rb:8:in `block (3 levels) in '. + should fail for insufficient arguments + Procs + should pass for correct input + should fail for incorrect input + singleton methods self in inherited methods + should be a proper self + instance and class methods + should allow a class to have an instance method and a class method with the same name + anonymous classes + does not fail when contract is satisfied + fails with error when contract is violated + inherited methods +WARNING: Using the `raise_error` matcher without providing a specific error or message risks false positives, since `raise_error` will match when Ruby raises a `NoMethodError`, `NameError` or `ArgumentError`, potentially allowing the expectation to pass without even executing the method you are intending to call. Actual error raised was # Num - At: /build/ruby-contracts-0.16.0/spec/methods_spec.rb:47 >. Instead consider providing a specific error class or message. This message can be suppressed by setting: `RSpec::Expectations.configuration.on_potential_false_positives = :nothing`. Called from /build/ruby-contracts-0.16.0/spec/methods_spec.rb:47:in `block (3 levels) in '. - should enforce return value inside lambda with no other parameter + Actual: ... With Contract: Num => Num + At: /build/ruby-contracts-0.16.0/spec/fixtures/fixtures.rb:397 >. Instead consider providing a specific error class or message. This message can be suppressed by setting: `RSpec::Expectations.configuration.on_potential_false_positives = :nothing`. Called from /build/ruby-contracts-0.16.0/spec/contracts_spec.rb:699:in `block (3 levels) in '. + should apply the contract to an inherited method + classes with extended modules + should not fail with 'undefined method 'Contract'' + works correctly with methods with passing contracts + works correctly with methods with passing contracts + is possible to define it + Arrays + should pass for correct input + should fail for some incorrect elements + should fail for insufficient items + varargs + should fail for incorrect input + should work with arg before splat + should pass for correct input + pattern matching + 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 work as expected when there is no contract violation + should fail when the pattern-matched method's contract fails + should not fall through to next pattern when there is a deep contract violation + when failure_callback was overriden + 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 + if the return contract for a pattern match fails, it should fail instead of trying the next pattern match, even with the failure callback + no contracts feature + disables normal contract checks + disables invariants + does not disable pattern matching + 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 +WARNING: Using the `raise_error` matcher without providing a specific error or message risks false positives, since `raise_error` will match when Ruby raises a `NoMethodError`, `NameError` or `ArgumentError`, potentially allowing the expectation to pass without even executing the method you are intending to call. Actual error raised was #. Instead consider providing a specific error class or message. This message can be suppressed by setting: `RSpec::Expectations.configuration.on_potential_false_positives = :nothing`. Called from /build/ruby-contracts-0.16.0/spec/contracts_spec.rb:28:in `block (3 levels) in '. + should not work for a function with a bad contract + 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 the exact type as the contract + should not fail for an object that is a subclass of the type in the contract + usage in the singleton class of a subclass + should work with a valid contract on a singleton method + blocks + should fail for maybe proc with invalid input + should fail for incorrect input + should succeed for maybe proc with proc + should handle properly lack of block when there are other arguments + should pass for correct input + should succeed for maybe proc with no proc + varargs are given with a maybe block + when a block is NOT passed in, varargs should still be correct + when a block is passed in, varargs should be correct module methods should fail for incorrect input should pass for correct input Contracts: - SetOf: - should fail for an array with one non-num - should pass for a set of nums - should fail for a non-array + Bool: + should fail for nil + should pass for an argument that is a boolean Optional: can't be used outside of KeywordArgs - Maybe: - should pass for nils - should pass for nums - should fail for strings - Exactly: - should fail for an object that is not related to Parent at all - should fail for an object that inherits from Parent - should pass for an object that is exactly a Parent - Pos: - should fail for 0 + Neg: + should fail for positive numbers should fail for nil and other data types - should fail for negative numbers - should pass for positive numbers - Any: - should pass for numbers - should pass for strings - should pass for nil - should pass for procs + should fail for 0 + should pass for negative numbers RespondTo: should pass for an object that responds to :good should fail for an object that doesn't respond to :good - DescendantOf: - should pass for Array - should pass for a hash - should fail for a number class - should fail for a non-class - Enum: - should fail for an object that is not included - should pass for an object that is included RangeOf: should pass for a range of nums should pass for a range of dates should fail for a non-range - should fail for a range with incorrect data type should fail for a badly-defined range - None: - should fail for numbers - should fail for procs - should fail for nil - should fail for strings - Or: - should pass for nums - should pass for strings - should fail for nil - ArrayOf: - should fail for an array with one non-num - should fail for a non-array - should pass for an array of nums - Eq: - should fail when not equal - should pass for other values - should pass for a class - should fail when given instance of class - should pass for a module - Xor: - 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 - should fail for an object with neither method + should fail for a range with incorrect data type 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 + ArrayOf: + should pass for an array of nums + should fail for an array with one non-num + should fail for a non-array + Maybe: + should fail for strings + should pass for nums + should pass for nils + Not: + should pass for an argument that isn't nil + should fail for nil HashOf: doesn't allow to specify multiple key-value pairs with pretty syntax - given a fulfilled contract - should eq 2 - should eq 2 - #to_s - given Symbol => String - should eq "Hash" - given String => Num - should eq "Hash" given an unfulfilled contract should raise ContractError should raise ContractError should raise ContractError should raise ContractError - Bool: - should pass for an argument that is a boolean - should fail for nil - 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 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 - Neg: - should fail for positive numbers - should pass for negative numbers - should fail for nil and other data types + #to_s + given String => Num + should eq "Hash" + given Symbol => String + should eq "Hash" + given a fulfilled contract + should eq 2 + should eq 2 + SetOf: + should fail for an array with one non-num + should pass for a set of nums + should fail for a non-array + Pos: + should fail for negative numbers + should pass for positive numbers should fail for 0 - Not: - should fail for nil - should pass for an argument that isn't nil + should fail for nil and other data types + Send: + should pass for an object that returns true for method :good + should fail for an object that returns false for method :good + 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 Num: should pass for Floats should fail for nil and other data types should pass for Fixnums - KeywordArgs: - should pass for exact correct input - should pass if a method is overloaded with non-KeywordArgs - should fail if some keys don't have contracts - should fail if a key with a contract on it isn't provided - should fail for incorrect input + None: + should fail for procs + should fail for numbers + should fail for nil + should fail for strings Nat: - should pass for positive whole numbers - should fail for negative numbers should pass for 0 + 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 - Send: - should pass for an object that returns true for method :good - should fail for an object that returns false for method :good - -Contracts: - Attrs: - attr_reader_with_contract - getting invalid type - getting valid type - setting - attr_writer_with_contract - setting invalid type - getting - setting valid type - attr_accessor_with_contract - getting invalid type - getting valid type - setting valid type - setting invalid type + 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 + should pass if a method is overloaded with non-KeywordArgs + Any: + should pass for numbers + should pass for nil + should pass for procs + should pass for strings + StrictHash: + when given an input with extra keys + 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 not a hash + raises an error + when given an input with correct keys but wrong types + raises an error + Enum: + should fail for an object that is not included + should pass for an object that is included + Or: + should pass for strings + should fail for nil + should pass for nums + DescendantOf: + should pass for a hash + should pass for Array + should fail for a non-class + should fail for a number class + 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 + Eq: + should pass for other values + should fail when given instance of class + should pass for a class + should fail when not equal + should pass for a module Contracts::Support eigenclass_of @@ -1054,223 +1237,52 @@ is falsey for non-singleton classes is truthy for singleton classes -Contract - .override_validator - allows to override default validator - allows to override class validator - allows to override simple validators - allows to override valid contract - -Contracts: - inherited methods -WARNING: Using the `raise_error` matcher without providing a specific error or message risks false positives, since `raise_error` will match when Ruby raises a `NoMethodError`, `NameError` or `ArgumentError`, potentially allowing the expectation to pass without even executing the method you are intending to call. Actual error raised was # Num - At: /build/ruby-contracts-0.16.0/spec/fixtures/fixtures.rb:397 >. Instead consider providing a specific error class or message. This message can be suppressed by setting: `RSpec::Expectations.configuration.on_potential_false_positives = :nothing`. Called from /build/ruby-contracts-0.16.0/spec/contracts_spec.rb:699:in `block (3 levels) in '. - should apply the contract to an inherited method - Hashes - should pass even 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 - 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 - no contracts feature - does not disable pattern matching - disables invariants - disables normal contract checks - Contracts to_s formatting in expected - should not stringify native types - should contain to_s representation within a nested Hash contract - should not contain Contracts:: module prefix - should not use custom to_s if empty string - should contain to_s representation within a Hash contract - should contain to_s representation within an Array contract - should still show nils, not just blank space - should show empty quotes as "" - should contain to_s representation within a nested Array contract - usage in the singleton class of a subclass - should work with a valid contract on a singleton method - singleton methods self in inherited methods - should be a proper self - pattern matching - if the return contract for a pattern match fails, it should fail instead of trying the next pattern match - should work as expected when there is no contract violation - should fail if multiple methods are defined with the same contract (for pattern-matching) - 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 for differing arities - when failure_callback was overriden - falls through to 2nd pattern when first pattern does not match - uses overriden failure_callback when pattern matching fails - if the return contract for a pattern match fails, it should fail instead of trying the next pattern match, even with the failure callback - calls a method when first pattern matches - 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 methods - should allow two classes to have the same method with different contracts - private methods - should raise an error if you try to access a private method - should raise an error if you try to access a private method - module usage - with instance methods - should check contract - with singleton methods - should check contract - with singleton class methods - should check contract - class methods - should pass for correct input - should fail for incorrect input - instance and class methods - should allow a class to have an instance method and a class method with the same name - classes - should fail for incorrect input - should pass for correct input - classes with a valid? class method - should pass for correct input - should fail for incorrect input - Arrays - should fail for some incorrect elements - should fail for insufficient items - should pass for correct input - protected methods - should raise an error if you try to access a protected method - should raise an error if you try to access a protected method - 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 - blocks - should pass for correct input - should fail for incorrect input - should succeed for maybe proc with no proc - 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 - 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 - contracts for functions with no arguments -WARNING: Using the `raise_error` matcher without providing a specific error or message risks false positives, since `raise_error` will match when Ruby raises a `NoMethodError`, `NameError` or `ArgumentError`, potentially allowing the expectation to pass without even executing the method you are intending to call. Actual error raised was #. Instead consider providing a specific error class or message. This message can be suppressed by setting: `RSpec::Expectations.configuration.on_potential_false_positives = :nothing`. Called from /build/ruby-contracts-0.16.0/spec/contracts_spec.rb:28:in `block (3 levels) in '. - should not work for a function with a bad contract - should still work for old-style contracts for functions with no args - should work for functions with no args - anonymous classes - does not fail when contract is satisfied - fails with error when contract is violated - 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'' - basic -WARNING: Using the `raise_error` matcher without providing a specific error or message risks false positives, since `raise_error` will match when Ruby raises a `NoMethodError`, `NameError` or `ArgumentError`, potentially allowing the expectation to pass without even executing the method you are intending to call. Actual error raised was #. Instead consider providing a specific error class or message. This message can be suppressed by setting: `RSpec::Expectations.configuration.on_potential_false_positives = :nothing`. Called from /build/ruby-contracts-0.16.0/spec/contracts_spec.rb:8:in `block (3 levels) in '. - should fail for insufficient arguments - should fail for insufficient contracts - varargs - should pass for correct input - should work with arg before splat - should fail for incorrect input - functype - should correctly print out a class method's type - should correctly print out a instance method's type - module contracts - does not pass for instance of class including another module - passes for instance of class including both modules - does not pass for instance of class not including module - passes for instance of class including inherited module - passes for instance of class including module - 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 - 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 function that doesn't pass the contract with weak other args - should fail for a function that doesn't pass the contract - should pass for a function that passes the contract as in tutorial - should pass for a function that passes the contract - should fail for a returned function that receives the wrong argument type - should not fail for a returned function that passes the contract - 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 - varargs with block - should pass for correct input - should fail for incorrect input - when block has Func contract - should fail for incorrect input - -Contract validators - 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 - Range - fails when value is not in range - passes when value is in range - fails when value is incorrect - -Top 10 slowest examples (0.04612 seconds, 37.6% of total time): +Top 10 slowest examples (17.15 seconds, 99.1% of total time): Contract.override_validator allows to override default validator - 0.00862 seconds ./spec/override_validators_spec.rb:127 + 5.61 seconds ./spec/override_validators_spec.rb:127 + Contract validators Regexp should pass for a matching string + 2.58 seconds ./spec/validators_spec.rb:27 + Contract.override_validator allows to override valid contract + 2.41 seconds ./spec/override_validators_spec.rb:45 + Contracts: pattern matching should work as expected when there is no contract violation + 2.39 seconds ./spec/contracts_spec.rb:45 + Contract.override_validator allows to override class validator + 2.2 seconds ./spec/override_validators_spec.rb:96 + Contracts::Support eigenclass? is falsey for non-singleton classes + 1.92 seconds ./spec/support_spec.rb:4 Contracts: protected methods should raise an error if you try to access a protected method - 0.00802 seconds ./spec/contracts_spec.rb:690 + 0.01336 seconds ./spec/contracts_spec.rb:690 Contracts: private methods should raise an error if you try to access a private method - 0.00753 seconds ./spec/contracts_spec.rb:680 + 0.01195 seconds ./spec/contracts_spec.rb:680 Contracts: protected methods should raise an error if you try to access a protected method - 0.00634 seconds ./spec/contracts_spec.rb:686 + 0.0101 seconds ./spec/contracts_spec.rb:686 Contracts: private methods should raise an error if you try to access a private method - 0.00565 seconds ./spec/contracts_spec.rb:676 - Contract.override_validator allows to override valid contract - 0.00421 seconds ./spec/override_validators_spec.rb:45 - Contract.override_validator allows to override class validator - 0.00164 seconds ./spec/override_validators_spec.rb:96 - Contracts::Support eigenclass? is falsey for non-singleton classes - 0.00149 seconds ./spec/support_spec.rb:4 - Contracts::Invariants raises invariant violation error when any of invariants are not holding - 0.00134 seconds ./spec/invariants_spec.rb:12 - Contracts: contracts for functions with no arguments should not work for a function with a bad contract - 0.00128 seconds ./spec/contracts_spec.rb:27 + 0.00862 seconds ./spec/contracts_spec.rb:676 Top 9 slowest example groups: Contract - 0.00405 seconds average (0.01618 seconds / 4 examples) ./spec/override_validators_spec.rb:1 - Contracts::Invariants - 0.0009 seconds average (0.0018 seconds / 2 examples) ./spec/invariants_spec.rb:2 + 2.56 seconds average (10.23 seconds / 4 examples) ./spec/override_validators_spec.rb:1 Contracts::Support - 0.00082 seconds average (0.00245 seconds / 3 examples) ./spec/support_spec.rb:2 + 0.63912 seconds average (1.92 seconds / 3 examples) ./spec/support_spec.rb:2 + Contract validators + 0.36998 seconds average (2.59 seconds / 7 examples) ./spec/validators_spec.rb:3 Contracts: - 0.00063 seconds average (0.06406 seconds / 101 examples) ./spec/contracts_spec.rb:1 + 0.02481 seconds average (2.51 seconds / 101 examples) ./spec/contracts_spec.rb:1 Contracts: - 0.00036 seconds average (0.00142 seconds / 4 examples) ./spec/methods_spec.rb:1 + 0.00085 seconds average (0.00341 seconds / 4 examples) ./spec/methods_spec.rb:1 + Contracts::Invariants + 0.00079 seconds average (0.00157 seconds / 2 examples) ./spec/invariants_spec.rb:2 Contracts: - 0.00035 seconds average (0.031 seconds / 89 examples) ./spec/builtin_contracts_spec.rb:1 - Contract validators - 0.00029 seconds average (0.00201 seconds / 7 examples) ./spec/validators_spec.rb:3 - module methods - 0.00028 seconds average (0.00056 seconds / 2 examples) ./spec/module_spec.rb:10 + 0.00063 seconds average (0.00635 seconds / 10 examples) ./spec/attrs_spec.rb:1 Contracts: - 0.00024 seconds average (0.00238 seconds / 10 examples) ./spec/attrs_spec.rb:1 + 0.00051 seconds average (0.04526 seconds / 89 examples) ./spec/builtin_contracts_spec.rb:1 + module methods + 0.00034 seconds average (0.00068 seconds / 2 examples) ./spec/module_spec.rb:10 -Finished in 0.1226 seconds (files took 0.18413 seconds to load) +Finished in 17.3 seconds (files took 1 minute 26.09 seconds to load) 222 examples, 0 failures -Randomized with seed 20219 +Randomized with seed 18783 ┌──────────────────────────────────────────────────────────────────────────────┐ @@ -1301,12 +1313,14 @@ dpkg-source --after-build . dpkg-buildpackage: info: binary-only upload (no source included) I: copying local configuration +I: user script /srv/workspace/pbuilder/9990/tmp/hooks/B01_cleanup starting +I: user script /srv/workspace/pbuilder/9990/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/17167 and its subdirectories -I: Current time: Mon May 31 19:59:34 -12 2021 -I: pbuilder-time-stamp: 1622534374 +I: removing directory /srv/workspace/pbuilder/9990 and its subdirectories +I: Current time: Wed Apr 29 16:52:13 +14 2020 +I: pbuilder-time-stamp: 1588128733