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 roundtrip test functions skipping comparison with FlatTerm-decoded #4866

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Add roundtrip test functions skipping comparison with FlatTerm-decoded

cd09cde
Select commit
Loading
Failed to load commit list.
Draft

Add roundtrip test functions skipping comparison with FlatTerm-decoded #4866

Add roundtrip test functions skipping comparison with FlatTerm-decoded
cd09cde
Select commit
Loading
Failed to load commit list.
Garnix CI / package ghc984:cardano-ledger-mary:test:tests [x86_64-linux] failed Feb 1, 2025 in 10m 34s

Run results

Build failed

Details

Last 100 lines of logs:

Running phase: unpackPhase
@nix {"action":"setPhase","phase":"unpackPhase"}
unpacking source archive /nix/store/clkwimdj2pqfgjs05fxgdmq29zswrs1w-source-eras-mary-impl-test-tests-root
source root is source-eras-mary-impl-test-tests-root
Running phase: patchPhase
@nix {"action":"setPhase","phase":"patchPhase"}
Running phase: updateAutotoolsGnuConfigScriptsPhase
@nix {"action":"setPhase","phase":"updateAutotoolsGnuConfigScriptsPhase"}
Running phase: configurePhase
@nix {"action":"setPhase","phase":"configurePhase"}
Configure flags:
--prefix=/nix/store/cqirmizs3gl0wprpqywfp52wwg96kc11-cardano-ledger-mary-test-tests-1.8.0.0 test:tests --package-db=clear --package-db=/build/tmp.VKQTNfRXvQ/lib/ghc-9.8.4/lib/package.conf.d --flags=asserts --exact-configuration --dependency=base16-bytestring=base16-bytestring-1.0.2.0-IcaeslDEHsJILuAloGzH6U --dependency=cardano-data=cardano-data-1.2.4.0-FP8Ajjk40okIHjJBlRzedy --dependency=aeson=aeson-2.2.3.0-8VmUOa8kRXv4k4iD2ypLgT --dependency=OneTuple=OneTuple-0.4.2-ATtFINcmw7oK2Yohb9PBmz --dependency=QuickCheck=QuickCheck-2.15.0.1-HkC6NPXNQjGEjqzhK0npgh --dependency=random=random-1.2.1.3-JNcowubUgZj8sInaFMxm5k --dependency=splitmix=splitmix…
Configuring test suite 'tests' for cardano-ledger-mary-1.8.0.0..
Warning: 'hs-source-dirs: huddle-cddl' specifies a directory which does not
exist.
Warning: 'hs-source-dirs: src' specifies a directory which does not exist.
Running phase: buildPhase
@nix {"action":"setPhase","phase":"buildPhase"}
Preprocessing test suite 'tests' for cardano-ledger-mary-1.8.0.0..
Building test suite 'tests' for cardano-ledger-mary-1.8.0.0..
[1 of 4] Compiling Test.Cardano.Ledger.Mary.Binary.CddlSpec ( test/Test/Cardano/Ledger/Mary/Binary/CddlSpec.hs, dist/build/tests/tests-tmp/Test/Cardano/Ledger/Mary/Binary/CddlSpec.o )
[2 of 4] Compiling Test.Cardano.Ledger.Mary.BinarySpec ( test/Test/Cardano/Ledger/Mary/BinarySpec.hs, dist/build/tests/tests-tmp/Test/Cardano/Ledger/Mary/BinarySpec.o )
[3 of 4] Compiling Test.Cardano.Ledger.Mary.ValueSpec ( test/Test/Cardano/Ledger/Mary/ValueSpec.hs, dist/build/tests/tests-tmp/Test/Cardano/Ledger/Mary/ValueSpec.o )

test/Test/Cardano/Ledger/Mary/ValueSpec.hs:51:82: error: [GHC-83865]
    • Couldn't match expected type ‘cardano-ledger-binary-1.6.0.0:Cardano.Ledger.Binary.Version.Version’
                  with actual type ‘Coin’
    • In the third argument of ‘roundTripCborRangeExpectation’, namely
        ‘(Coin i)’
      In the expression:
        roundTripCborRangeExpectation minBound (natVersion @8) (Coin i)
      In the second argument of ‘($)’, namely
        ‘\ (Negative i)
           -> roundTripCborRangeExpectation minBound (natVersion @8) (Coin i)’
   |
51 |         \(Negative i) -> roundTripCborRangeExpectation minBound (natVersion @8) (Coin i)
   |                                                                                  ^^^^^^