Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add new builtin hashing function ripemd_160 #6147

Closed
wants to merge 2 commits into from

Add conformance tests

d7470ca
Select commit
Loading
Failed to load commit list.
Closed

Add new builtin hashing function ripemd_160 #6147

Add conformance tests
d7470ca
Select commit
Loading
Failed to load commit list.
IOG Hydra / ci/hydra-build:x86_64-linux.ghc98.checks.plutus-ledger-api:test:plutus-ledger-api-test failed Jun 4, 2024 in 1s

Build failed

1 failed steps

Details

Failed Steps

Step 1

Derivation

/nix/store/4sd9ggrg0za060dzwjimnibgp9jgzfnk-plutus-ledger-api-test-plutus-ledger-api-test-1.28.0.0-check.drv

Log

unpacking sources
unpacking source archive /nix/store/w90yab7d73dy6503fnk3vn1z0jw57s22-source-root-plutus-ledger-api-test-plutus-ledger-api-test-root
source root is source-root-plutus-ledger-api-test-plutus-ledger-api-test-root
patching sources
building
/nix/store/3n82cmy1rk6gm1rw56mb977bmgvxrah0-plutus-ledger-api-test-plutus-ledger-api-test-1.28.0.0/bin:
patching script interpreter paths in /build/tmp.gnuGlvFKZr/bin
plutus-ledger-api
  basic evaluation tests
    always true script returns true:                                  FAIL
      Exception: Maybe.fromJust: Nothing
      CallStack (from HasCallStack):
        error, called at libraries/base/Data/Maybe.hs:150:21 in base:Data.Maybe
        fromJust, called at testlib/PlutusLedgerApi/Test/V1/EvaluationContext.hs:24:42 in plutus-ledger-api-1.28.0.0-IiassoaE7sG2P4G5GZpegW-plutus-ledger-api-testlib:PlutusLedgerApi.Test.V1.EvaluationContext
      Use -p '/always true script returns true/' to rerun this test only.
    always false script returns false:                                FAIL
      Exception: Maybe.fromJust: Nothing
      CallStack (from HasCallStack):
        error, called at libraries/base/Data/Maybe.hs:150:21 in base:Data.Maybe
        fromJust, called at testlib/PlutusLedgerApi/Test/V1/EvaluationContext.hs:24:42 in plutus-ledger-api-1.28.0.0-IiassoaE7sG2P4G5GZpegW-plutus-ledger-api-testlib:PlutusLedgerApi.Test.V1.EvaluationContext
      Use -p '/always false script returns false/' to rerun this test only.
    salted function
      saturated:                                                      FAIL
        *** Failed! (after 1 test):
        Exception:
          Maybe.fromJust: Nothing
          CallStack (from HasCallStack):
            error, called at libraries/base/Data/Maybe.hs:150:21 in base:Data.Maybe
            fromJust, called at testlib/PlutusLedgerApi/Test/V1/EvaluationContext.hs:24:42 in plutus-ledger-api-1.28.0.0-IiassoaE7sG2P4G5GZpegW-plutus-ledger-api-testlib:PlutusLedgerApi.Test.V1.EvaluationContext
        0
        0
        False
        Use --quickcheck-replay=716549 to reproduce.
        Use -p '/salted function.saturated/' to rerun this test only.
      unsaturated:                                                    FAIL
        *** Failed! (after 1 test and 3 shrinks):
        Exception:
          Maybe.fromJust: Nothing
          CallStack (from HasCallStack):
            error, called at libraries/base/Data/Maybe.hs:150:21 in base:Data.Maybe
            fromJust, called at testlib/PlutusLedgerApi/Test/V1/EvaluationContext.hs:24:42 in plutus-ledger-api-1.28.0.0-IiassoaE7sG2P4G5GZpegW-plutus-ledger-api-testlib:PlutusLedgerApi.Test.V1.EvaluationContext
        0
        0
        0
        False
        Use --quickcheck-replay=402159 to reproduce.
        Use -p '/unsaturated/' to rerun this test only.
      oversaturated:                                                  FAIL
        *** Failed! (after 1 test and 2 shrinks):
        Exception:
          Maybe.fromJust: Nothing
          CallStack (from HasCallStack):
            error, called at libraries/base/Data/Maybe.hs:150:21 in base:Data.Maybe
            fromJust, called at testlib/PlutusLedgerApi/Test/V1/EvaluationContext.hs:24:42 in plutus-ledger-api-1.28.0.0-IiassoaE7sG2P4G5GZpegW-plutus-ledger-api-testlib:PlutusLedgerApi.Test.V1.EvaluationContext
        0
        0
        0
        False
        Use --quickcheck-replay=756631 to reproduce.
        Use -p '/oversaturated/' to rerun this test only.
      salt:                                                           OK (0.02s)
        +++ OK, passed 100 tests; 12 discarded.
    builtins are unavailable before Alonzo:                           OK
    builtins are available after Alonzo:                              OK
    integerToByteString should exceed budget:                         OK (0.02s)
  Interval
    never is empty:                                                   OK
    always is not empty:                                              OK
    open interval isEmpty:                                            OK
    open interval overlaps:                                           OK
    laws for integer intervals
      equivalence relation laws
        reflexive:                                                    OK
            ✓ <interactive> passed 100 tests.
        symmetric:                                                    OK
            ✓ <interactive> passed 100 tests.
              different 74% ██████████████▊····· ✓ 10%
              same      26% █████▏·············· ✓  5%
        transitive:                                                   OK
            ✓ <interactive> passed 100 tests.
              different 69% █████████████▊······ ✓ 10%
              same      49% █████████▊·········· ✓  5%
      partial ordering laws
        reflexive:                                                    OK
            ✓ <interactive> passed 100 tests.
        transitive:                                                   OK
            ✓ <interactive> passed 100 tests.
              different 57% ███████████▍········ ✓ 10%
              same      55% ███████████········· ✓  5%
        antisymmetric:                                                OK
            ✓ <interactive> passed 100 tests.
              different 79% ███████████████▊···· ✓ 10%
              same      21% ████▏··············· ✓  5%
      bounded lattice laws
        bounded join semilattice laws
          join semilattice laws
            idempotent:                                               OK
                ✓ <interactive> passed 100 tests.
            commutative:                                              OK
                ✓ <interactive> passed 100 tests.
                  different 77% ███████████████▍···· ✓ 10%
                  same      23% ████▌··············· ✓  5%
            associative:                                              OK
                ✓ <interactive> passed 100 tests.
                  different 73% ██████████████▌····· ✓ 10%
                  same      40% ████████············ ✓  5%
          unit:                                                       OK
              ✓ <interactive> passed 100 tests.
                different 56% ███████████▏········ ✓ 10%
        bounded meet semilattice laws
          meet semilattice laws
            idempotent:                                               OK
                ✓ <interactive> passed 100 tests.
            commutative:                                              OK
                ✓ <interactive> passed 100 tests.
                  different 89% █████████████████▊·· ✓ 10%
                  same      11% ██▏················· ✓  5%
            associative:                                              OK
                ✓ <interactive> passed 100 tests.
                  different 78% ███████████████▌···· ✓ 10%
                  same      40% ████████············ ✓  5%
          unit:                                                       OK
              ✓ <interactive> passed 100 tests.
                different 92% ██████████████████▍· ✓ 10%
        absorption:                                                   OK
            ✓ <interactive> passed 100 tests.
              different 79% ███████████████▊···· ✓ 10%
    laws for boolean intervals
      equivalence relation laws
        reflexive:                                                    OK
            ✓ <interactive> passed 100 tests.
        symmetric:                                                    OK
            ✓ <interactive> passed 100 tests.
              different 74% ██████████████▊····· ✓ 10%
              same      26% █████▏·············· ✓  5%
        transitive:                                                   OK
            ✓ <interactive> passed 100 tests.
              different 74% ██████████████▊····· ✓ 10%
              same      40% ████████············ ✓  5%
      partial ordering laws
        reflexive:                                                    OK
            ✓ <interactive> passed 100 tests.
        transitive:                                                   OK
            ✓ <interactive> passed 100 tests.
              different 69% █████████████▊······ ✓ 10%
              same      40% ████████············ ✓  5%
        antisymmetric:                                                OK
            ✓ <interactive> passed 100 tests.
              different 84% ████████████████▊··· ✓ 10%
              same      16% ███▏················ ✓  5%
      bounded lattice laws
        bounded join semilattice laws
          join semilattice laws
            idempotent:                                               OK
                ✓ <interactive> passed 100 tests.
            commutative:                                              OK
                ✓ <interactive> passed 100 tests.
                  different 87% █████████████████▍·· ✓ 10%
                  same      13% ██▌················· ✓  5%
            associative:                                              OK
                ✓ <interactive> passed 100 tests.
                  different 71% ██████████████▏····· ✓ 10%
                  same      41% ████████▏··········· ✓  5%
          unit:                                                       OK
              ✓ <interactive> passed 100 tests.
                different 70% ██████████████······ ✓ 10%
        bounded meet semilattice laws
          meet semilattice laws
            idempotent:                                               OK
                ✓ <interactive> passed 100 tests.
            commutative:                                              OK
                ✓ <interactive> passed 100 tests.
                  different 86% █████████████████▏·· ✓ 10%
                  same      14% ██▊················· ✓  5%
            associative:                                              OK
                ✓ <interactive> passed 100 tests.
                  different 69% █████████████▊······ ✓ 10%
                  same      41% ████████▏··········· ✓  5%
          unit:                                                       OK
              ✓ <interactive> passed 100 tests.
                different 92% ██████████████████▍· ✓ 10%
        absorption:                                                   OK
            ✓ <interactive> passed 100 tests.
              different 84% ████████████████▊··· ✓ 10%
    properties
      intersection:                                                   OK
          ✓ <interactive> passed 100 tests.
      isEmpty:                                                        OK
          ✓ <interactive> passed 100 tests.
      overlaps:                                                       OK
          ✓ <interactive> passed 100 tests.
    set model
      tripping:                                                       OK
          ✓ <interactive> passed 100 tests.
      equals:                                                         OK
          ✓ <interactive> passed 100 tests.
            True  20% ████················ ✓ 10%
            False 80% ████████████████···· ✓ 10%
      contains:                                                       OK
          ✓ <interactive> passed 100 tests.
            True  63% ████████████▌······· ✓ 10%
            False 37% ███████▍············ ✓ 10%
      intersection:                                                   OK
          ✓ <interactive> passed 100 tests.
            Non-trivial 12% ██▍················· ✓ 5%
  eval
    v1-api
      delay0:                                                         OK
      fun0var0:                                                       OK
      const0var0:                                                     OK
      iteLazy0:                                                       OK
      iteStrict0:                                                     OK
      illITELazy:                                                     FAIL
        Exception: Maybe.fromJust: Nothing
        CallStack (from HasCallStack):
          error, called at libraries/base/Data/Maybe.hs:150:21 in base:Data.Maybe
          fromJust, called at testlib/PlutusLedgerApi/Test/V1/EvaluationContext.hs:24:42 in plutus-ledger-api-1.28.0.0-IiassoaE7sG2P4G5GZpegW-plutus-ledger-api-testlib:PlutusLedgerApi.Test.V1.EvaluationContext
        Use -p '/illITELazy/' to rerun this test only.
      illITEStrict:                                                   FAIL
        Exception: Maybe.fromJust: Nothing
        CallStack (from HasCallStack):
          error, called at libraries/base/Data/Maybe.hs:150:21 in base:Data.Maybe
          fromJust, called at testlib/PlutusLedgerApi/Test/V1/EvaluationContext.hs:24:42 in plutus-ledger-api-1.28.0.0-IiassoaE7sG2P4G5GZpegW-plutus-ledger-api-testlib:PlutusLedgerApi.Test.V1.EvaluationContext
        Use -p '/illITEStrict/' to rerun this test only.
      illAdd:                                                         FAIL
        Exception: Maybe.fromJust: Nothing
        CallStack (from HasCallStack):
          error, called at libraries/base/Data/Maybe.hs:150:21 in base:Data.Maybe
          fromJust, called at testlib/PlutusLedgerApi/Test/V1/EvaluationContext.hs:24:42 in plutus-ledger-api-1.28.0.0-IiassoaE7sG2P4G5GZpegW-plutus-ledger-api-testlib:PlutusLedgerApi.Test.V1.EvaluationContext
        Use -p '/illAdd/' to rerun this test only.
      illOverAppBuiltin:                                              FAIL
        Exception: Maybe.fromJust: Nothing
        CallStack (from HasCallStack):
          error, called at libraries/base/Data/Maybe.hs:150:21 in base:Data.Maybe
          fromJust, called at testlib/PlutusLedgerApi/Test/V1/EvaluationContext.hs:24:42 in plutus-ledger-api-1.28.0.0-IiassoaE7sG2P4G5GZpegW-plutus-ledger-api-testlib:PlutusLedgerApi.Test.V1.EvaluationContext
        Use -p '/illOverAppBuiltin/' to rerun this test only.
      illOverAppFun:                                                  FAIL
        Exception: Maybe.fromJust: Nothing
        CallStack (from HasCallStack):
          error, called at libraries/base/Data/Maybe.hs:150:21 in base:Data.Maybe
          fromJust, called at testlib/PlutusLedgerApi/Test/V1/EvaluationContext.hs:24:42 in plutus-ledger-api-1.28.0.0-IiassoaE7sG2P4G5GZpegW-plutus-ledger-api-testlib:PlutusLedgerApi.Test.V1.EvaluationContext
        Use -p '/illOverAppFun/' to rerun this test only.
    check unlifting behaviour changes in Vasil:                       FAIL
      Exception: Maybe.fromJust: Nothing
      CallStack (from HasCallStack):
        error, called at libraries/base/Data/Maybe.hs:150:21 in base:Data.Maybe
        fromJust, called at testlib/PlutusLedgerApi/Test/V1/EvaluationContext.hs:24:42 in plutus-ledger-api-1.28.0.0-IiassoaE7sG2P4G5GZpegW-plutus-ledger-api-testlib:PlutusLedgerApi.Test.V1.EvaluationContext
      Use -p '/check unlifting behaviour changes in Vasil/' to rerun this test only.
    EvaluationContext has machine parameters for all protocol versions
      PlutusV1:                                                       OK (0.02s)
      PlutusV2:                                                       OK (0.02s)
      PlutusV3:                                                       OK (0.01s)
    NoThunks in EvaluationContext
      PlutusV1:                                                       OK (0.01s)
      PlutusV2:                                                       OK (0.01s)
      PlutusV3:                                                       OK (0.01s)
  versions
    ledger languages
      v1 not before but after:                                        OK
        +++ OK, passed 100 tests.
      v2 not before but after:                                        OK
        +++ OK, passed 100 tests.
      v3 not before but after:                                        OK
        +++ OK, passed 100 tests.
      protocol-versions can add but not remove ledger languages:      OK
        +++ OK, passed 100 tests; 128 discarded.
    builtins
      all builtins are available some time:                           OK
      builtins aren't available before Alonzo:                        OK
      serializeData is only available in l2,Vasil and after:          OK
      bls,keccak256,blake2b224 only available in l3,Future and after: OK
    Plutus Core language versions
      v1.1.0 is available in l3,future and not before:                OK
      constr is not available with v1.0.0 ever:                       OK
      case is not available with v1.0.0 ever:                         OK
    rmdr
      remdr:                                                          OK
      remdr1gen:                                                      OK
        +++ OK, passed 100 tests.
      remdr2gen:                                                      OK
        +++ OK, passed 100 tests.
      remdr1genc:                                                     OK
        +++ OK, passed 100 tests.
      remdr2genc:                                                     OK
        +++ OK, passed 100 tests.
  costModelParams
    length:                                                           FAIL
      Exception: Maybe.fromJust: Nothing
      CallStack (from HasCallStack):
        error, called at libraries/base/Data/Maybe.hs:150:21 in base:Data.Maybe
        fromJust, called at testlib/PlutusLedgerApi/Test/V1/EvaluationContext.hs:24:42 in plutus-ledger-api-1.28.0.0-IiassoaE7sG2P4G5GZpegW-plutus-ledger-api-testlib:PlutusLedgerApi.Test.V1.EvaluationContext
      Use -p '/costModelParams.length/' to rerun this test only.
    tripping paramname:                                               OK
    default values costmodelparamsfortesting:                         OK
    context length:                                                   OK (0.02s)
    cost model parameters:                                            OK
  cbor failure
    intepretation tests
      end-of-input:                                                   OK
      expected-bytes:                                                 OK
      other:                                                          OK
    pretty-printing
      end-of-input:                                                   OK
      expected-bytes:                                                 OK
      other:                                                          OK
  ScriptDecodeError pretty-printing
    CBORDeserialiseError:                                             OK
    RemainderError:                                                   OK
    LedgerLanguageNotAvailableError:                                  OK
    PlutusCoreLanguageNotAvailableError:                              OK
  context decoding
    v1context:                                                        OK
  Value
    laws:                                                             OK (0.61s)
      +++ OK, passed 500 tests; 8 discarded.
    updateSomeTokenValues:                                            OK (0.37s)
      +++ OK, passed 1500 tests; 159 discarded.
    updateSomeTokenNames:                                             OK (0.39s)
      +++ OK, passed 1500 tests; 172 discarded.
    shuffle:                                                          OK (0.60s)
      +++ OK, passed 1000 tests.
    split:                                                            OK (0.34s)
      +++ OK, passed 700 tests.

12 out of 104 tests failed (0.62s)