Skip to content

Add TreeDiff utilities to cardano-binary testlib - #638

Open
MavenRain wants to merge 4 commits into
IntersectMBO:masterfrom
MavenRain:oobi/move-treediff-utils-to-cardano-binary-testlib
Open

Add TreeDiff utilities to cardano-binary testlib#638
MavenRain wants to merge 4 commits into
IntersectMBO:masterfrom
MavenRain:oobi/move-treediff-utils-to-cardano-binary-testlib

Merge branch 'master' into oobi/move-treediff-utils-to-cardano-binary…

4018be0
Select commit
Loading
Failed to load commit list.
IOG Hydra / ci/hydra-build:x86_64-linux.required failed Apr 25, 2026 in 0s

Build dependency failed

1 failed steps

Details

Failed Steps

Step 1

Derivation

/nix/store/hlcja04kqjz9kxvphrv579rjdxwdqaz6-cardano-binary-lib-testlib-1.9.0.0.drv

Log

Running phase: unpackPhase
unpacking source archive /nix/store/gqgqydfpdmzyi08piybv39r3zsl4kxyz-source-cardano-binary-lib-testlib-root
source root is source-cardano-binary-lib-testlib-root
Running phase: patchPhase
Running phase: updateAutotoolsGnuConfigScriptsPhase
Running phase: configurePhase
Configure flags:
--prefix=/nix/store/khjkwaqz0fvzr0lqn8dza4qrafwcwisc-cardano-binary-lib-testlib-1.9.0.0 lib:testlib --package-db=clear --package-db=/build/tmp.6kcymSh9SH/lib/ghc-9.6.7/lib/package.conf.d --exact-configuration --dependency=array=array-0.5.8.0 --dependency=base=base-4.18.3.0 --dependency=binary=binary-0.8.9.1 --dependency=bytestring=bytestring-0.11.5.4 --dependency=containers=containers-0.6.7 --dependency=deepseq=deepseq-1.4.8.1 --dependency=directory=directory-1.3.8.5 --dependency=exceptions=exceptions-0.10.7 --dependency=filepath=filepath-1.4.301.0 --dependency=ghc-bignum=ghc-bignum-1.3 --dependency=ghc-boot-th=ghc-boot-th-9.6.7 --dependency=ghc-heap=ghc-heap-9.6.7 --dependency=ghc-prim=ghc-prim-0.10.0 --dependency=integer-gmp=integer-gmp-1.1 --dependency=mtl=mtl-2.3.1 --dependency=parsec=parsec-3.1.16.1 --dependency=pretty=pretty-1.1.3.6 --dependency=process=process-1.6.19.0 --dependency=rts=rts-1.0.2 --dependency=stm=stm-2.5.1.0 --dependency=system-cxx-std-lib=system-cxx-std-lib-1.0 --dependency=template-haskell=template-haskell-2.20.0.0 --dependency=text=text-2.0.2 --dependency=time=time-1.12.2 --dependency=transformers=transformers-0.6.1.0 --dependency=unix=unix-2.8.6.0 --dependency=ImpSpec=ImpSpec-0.2.0.0-F2HTg74oTpC6PpIMyhH4YU --dependency=HUnit=HUnit-1.6.2.0-29n81s9lgneFPyHXzdKipT --dependency=call-stack=call-stack-0.4.0-D3kOb1gXhq8E84SgXdsTIH --dependency=QuickCheck=QuickCheck-2.16.0.0-5eVL3EuX0UE8y17L2Me7DV --dependency=random=random-1.3.1-JTAoDS03FOs7ApbcZAzDFu --dependency=splitmix=splitmix-0.1.3.2-HU0s4PpA6NH8FEFBhLbejd --dependency=hspec-core=hspec-core-2.11.17-Jq0NPZDMnyU3lCnhpsyUDY --dependency=ansi-terminal=ansi-terminal-1.1.5-FDa1uTP24yuBLM7Pl3PLnK --dependency=ansi-terminal-types=ansi-terminal-types-1.1.3-9jxq1qBnRwxIhJfFPt03XR --dependency=colour=colour-2.3.6-GrWnERDqxEWGG97Kq3BkOE --dependency=haskell-lexer=haskell-lexer-1.2.1-Kng7hbAORzm6X9GANvMZaN --dependency=hspec-expectations=hspec-expectations-0.8.4-8tqgnIthVjk4EN6D4Oy298 --dependency=quickcheck-io=quickcheck-io-0.2.0-KZqlFvk4cfV9C5TvRvAg3D --dependency=hspec-expectations-lifted=hspec-expectations-lifted-0.10.0-HH7me41qKHk8nouEF64LHJ --dependency=hspec=hspec-2.11.17-HbAUAOUScd57dCY3o2CHVi --dependency=hspec-discover=hspec-discover-2.11.17-BWkKxeckfBYBQ1IMLWMuUv --dependency=prettyprinter-ansi-terminal=prettyprinter-ansi-terminal-1.1.3-4cKcTWiO1c68IcUsT30yPV --dependency=prettyprinter=prettyprinter-1.7.1-BxNhIqpyTtt2Mpd5bWf0h1 --dependency=quickcheck-transformer=quickcheck-transformer-0.3.1.2-8LJPBYzPnD3pctVRX6K7A --dependency=unliftio=unliftio-0.2.25.1-CI8qMpWOtJs2ovyC9vIRu5 --dependency=async=async-2.2.6-DdP4ChW5FyP3GVrXxK9FYv --dependency=hashable=hashable-1.5.1.0-K78yl3FAjM4EEtjNRYQgYV --dependency=os-string=os-string-2.0.10-Cz1cZTSHynmDdbqlFgLdgx --dependency=unordered-containers=unordered-containers-0.2.21-8HSGHPdto263yAaR0CrKdt --dependency=safe-exceptions=safe-exceptions-0.1.7.4-BB0B2VqTMXkCrS8ErBHZEe --dependency=unliftio-core=unliftio-core-0.2.1.0-CtDanxECkbwJ3FHnCY1MPO --dependency=base16-bytestring=base16-bytestring-1.0.2.0-C23xiGfrqNE2o8xHSLYea3 --dependency=cardano-base:testlib=cardano-base-0.1.3.0-LM99ViGMPKDKDDL5ZpdA9q-testlib --dependency=cardano-base=cardano-base-0.1.3.0-BUKHOjw9F3zCpr3iyE0pG0 --dependency=aeson=aeson-2.2.3.0-8FINAh8MEPI1BDuYCOGT2k --dependency=OneTuple=OneTuple-0.4.2.1-IjkHrt4djLgEdUSPogFZ2L --dependency=character-ps=character-ps-0.1-4Fq0WOmYCAE3hAL17nXGEq --dependency=data-fix=data-fix-0.3.4-LMrqmXeQzAgLuWN64pLVnl --dependency=dlist=dlist-1.0-2hTtgfcMjYnK5ageOgmEVo --dependency=generically=generically-0.1.1-FsEVxmTYOKp6lYk37PdWW4 --dependency=indexed-traversable=indexed-traversable-0.1.4-4WgKtUu7swysftQ0x7OdR --dependency=integer-conversion=integer-conversion-0.1.1-DMZEbvgjN8rBGs5JKd3N4n --dependency=primitive=primitive-0.9.1.0-AElAOg7RWPrK8TD1mt4mft --dependency=integer-logarithms=integer-logarithms-1.0.5-8XTgSpdgaetABE6SEAPMkJ --dependency=network-uri=network-uri-2.6.4.2-7XREJr3WH8j6h2jQzGDJ5F --dependency=th-compat=th-compat-0.1.7-AGDDvjK4c1LGuavFWvaMmu --dependency=scientific=scientific-0.3.8.1-KHod31SIOrL3EMIWfLhFn6 --dependency=semialign=semialign-1.3.1-IiCkZfUdgyGoUf8WUc6AG --dependency=indexed-traversable-instances=indexed-traversable-instances-0.1.2-4r2ypKJ5ZKZ2Cbv9tqV7W9 --dependency=tagged=tagged-0.8.10-FMmPMLs02yWLsKgKNZhWPA --dependency=vector=vector-0.13.2.0-EuyJviusT5v6Iyho9D6sFZ --dependency=vector-stream=vector-stream-0.1.0.1-7qX9oQxWHCz9yDWW5CqJnq --dependency=semigroupoids=semigroupoids-6.0.2-4VQlLJ9QmZxH9DK5ZJwk4N --dependency=base-orphans=base-orphans-0.9.4-3rdzD4qYerw9LLBLUyFodR --dependency=bifunctors=bifunctors-5.6.3-CiMpHKaIdhoLYKMZY7tX4e --dependency=assoc=assoc-1.1.1-Hk0NF38QxbfFWQZTs5YYxb --dependency=comonad=comonad-5.0.10-FBp2IVENSuh66wK30WmWIm --dependency=distributive=distributive-0.6.3-HnRsmXARdZu4V5H5cfpZbf --dependency=th-abstraction=th-abstraction-0.7.2.0-1FzoKRZ0EkPGlXl1TWTPq0 --dependency=contravariant=contravariant-1.5.6-H2cxrWCC96e6y8PhBqJVn7 --dependency=StateVar=StateVar-1.2.2-E0yfTmnQDKI1BXBWlDfERx --dependency=transformers-compat=transformers-compat-0.7.2-Gt8KxspbTpUIHfKPq3SCp6 --dependency=these=these-1.2.1-sU45Sk5NkNB2nUpOy1yDU --dependency=strict=strict-0.5.1-HHNcldHtV1gDq2bIkDkO6T --dependency=text-iso8601=text-iso8601-0.1.1-3bCCWliLp0l7AtVKcgqy1b --dependency=time-compat=time-compat-1.9.9-H7XXdkKgfN4KMcCkRenmo9 --dependency=text-short=text-short-0.1.6.1-G0xuI9vQmrgKB0WP0XUnfE --dependency=uuid-types=uuid-types-1.0.6-Cck83rVMn2aDDHZrx9xm9d --dependency=witherable=witherable-0.5-LyAzNMy6wN023Rh8ZBBjfV --dependency=iproute=iproute-1.7.15-9Z5EyO4oAhXFMLW44LJYbD --dependency=appar=appar-0.1.8-KdF6S7PIdn95HeGgCftmuO --dependency=byteorder=byteorder-1.0.4-Caof7Z5N8If2yJZwVwIOJc --dependency=network=network-3.2.8.0-DfzdidsgO8q74pRUILGgOE --dependency=mempack=mempack-0.2.1.0-2x4nnlYR1xq8hzjEI1h9bk --dependency=FailT=FailT-0.1.2.0-LRCQVH678wwBS3PRCVgK5G --dependency=nothunks=nothunks-0.3.1-BLTFg4Mte1xEHdqKzkKSxO --dependency=wherefrom-compat=wherefrom-compat-0.2.0.0-I18LJ2NjzXW3rCE8imQkde --dependency=tree-diff=tree-diff-0.3.4-54gZi5BJHF8E2ioO6zNdZb --dependency=ansi-wl-pprint=ansi-wl-pprint-1.0.2-70AlEfik7Au2wiipGCz7ZG --dependency=prettyprinter-compat-ansi-wl-pprint=prettyprinter-compat-ansi-wl-pprint-1.0.2-2Bc1DxcQ6gP6bb9iD4s4sx --dependency=parsers=parsers-0.12.12-83K4y2Nt4s18fZKcczahUB --dependency=attoparsec=attoparsec-0.14.4-K0zsEWzCIxFPGSZBTVXdZ --dependency=attoparsec:attoparsec-internal=attoparsec-0.14.4-HDa61cZF3KP6SBMdAZl2a6-attoparsec-internal --dependency=charset=charset-0.3.12-DF34QoBrbrd7qmjt7fIojL --dependency=cardano-binary=cardano-binary-1.9.0.0-Du9zAOcwe8b7H7vUo8W5Jc --dependency=cborg=cborg-0.2.10.0-7Sc4zFgNTdU8l0rohAZCPP --dependency=half=half-0.3.3-GIVsfQErEaeHlAJplw716R --dependency=formatting=formatting-7.2.0-6GSQvGKs1Lb1T8s0svxpcx --dependency=clock=clock-0.8.4-93oTa5MyeUVDPj4YJvpOxp --dependency=double-conversion=double-conversion-2.0.5.0-C0LMNDdSUGGEleOHxqc8O0 --dependency=old-locale=old-locale-1.0.0.7-HSvLS5bQrOr2jPp7CISS55 --dependency=recursion-schemes=recursion-schemes-5.2.3-DdDjeRfxmx4FB4bADpP1pR --dependency=free=free-5.2-4ate9C9CZXfLGwjZLNGxQE --dependency=profunctors=profunctors-5.6.3-HxrELxDxxoqIn6kssuTCl2 --dependency=transformers-base=transformers-base-0.4.6-BJFyqrSbklCAcKagPras0J --dependency=cardano-prelude-test=cardano-prelude-test-0.1.0.5-IkNNruNi9iG4NIa50N8kmE --dependency=aeson-pretty=aeson-pretty-0.8.10-9dYv9VhceGALukdqENXdSf --dependency=base-compat=base-compat-0.15.0-KdBw74EUdwT4mZOwz0P2Hj --dependency=canonical-json=canonical-json-0.6.0.1-8vkQPHlIpvDEFvKA9iGIpV --dependency=cardano-prelude=cardano-prelude-0.2.1.0-L0Oa1UWSBP5CqjIN7q6IYQ --dependency=extra=extra-1.8.1-B0BYB7u6myn5TrLo4KzVRx --dependency=microlens=microlens-0.4.14.0-4ENPj0tHNR0GzcdT8Xo5Q8 --dependency=crypton=crypton-1.0.6-Aea9Wn2fLjfGItRH01j3qp --dependency=basement=basement-0.0.16-H18ZXwYPKwKGPqa72QNSdy --dependency=memory=memory-0.18.0-1LJTQsQiLERInCTifuP7JN --dependency=hedgehog=hedgehog-1.7-BFUgDSyzMnHAmN8d9fWLgH --dependency=barbies=barbies-2.1.1.0-34wakBsmDKvEuPiwy639cL --dependency=concurrent-output=concurrent-output-1.10.21-59NeCJL5iZrEp6FHXjI5hs --dependency=terminal-size=terminal-size-0.3.4-ERELAzA1ntr5GhYaq5Io1s --dependency=erf=erf-2.0.0.0-4hvyEg8FAX833lNnLepC9w --dependency=lifted-async=lifted-async-0.11.0-JSBQOSae6jo9blzllLqwjz --dependency=constraints=constraints-0.14.4-CLXR0VGZkfSJ9s1lhAyHow --dependency=boring=boring-0.2.2-6iYIEaEv198B1D54wfeVtV --dependency=lifted-base=lifted-base-0.2.3.12-KXxVH79YdSf75TZvrMrBxr --dependency=monad-control=monad-control-1.0.3.1-DXEvj560bJC3ZAz99tDEhN --dependency=mmorph=mmorph-1.2.2-1rRO80jomHP2sDS3LXpTCI --dependency=pretty-show=pretty-show-1.10-KFZ7ex4voUDKAQeYCoaO50 --dependency=resourcet=resourcet-1.3.0-6w5ujXqzv4yA0Pl6XVEQUP --dependency=wl-pprint-annotated=wl-pprint-annotated-0.1.0.1-Bi3ve0s4ytc13B8KzQEzHc --dependency=quickcheck-instances=quickcheck-instances-0.3.33-5v2Z0sTeK1GIupSqRV92WW --dependency=case-insensitive=case-insensitive-1.2.1.0-2qtDxbkx3VnBTSqMSHe1aI --dependency=old-time=old-time-1.1.0.5-CmHmhjxUrajJl3VpIuWZqz --with-ghc=ghc --with-ghc-pkg=ghc-pkg --with-hsc2hs=hsc2hs --with-gcc=cc --with-ar=ar --with-strip=strip --disable-executable-stripping --disable-library-stripping --disable-library-profiling --disable-profiling --enable-static --enable-shared --disable-executable-dynamic --disable-coverage --enable-library-for-ghci --datadir=/nix/store/9hcyzwhkrvalli5d2h817aka69zh8x0j-cardano-binary-lib-testlib-1.9.0.0-data/share/ghc-9.6.7 --enable-split-sections --ghc-option=-Werror 
Configuring library 'testlib' for cardano-binary-1.9.0.0...
Warning: [unknown-directory] 'hs-source-dirs: src' specifies a directory which
does not exist.
Warning: [unknown-directory] 'hs-source-dirs: test' specifies a directory
which does not exist.
Running phase: buildPhase
Preprocessing library 'testlib' for cardano-binary-1.9.0.0...
Building library 'testlib' for cardano-binary-1.9.0.0...
[1 of 4] Compiling Test.Cardano.Binary.Arbitrary ( testlib/Test/Cardano/Binary/Arbitrary.hs, dist/build/testlib/Test/Cardano/Binary/Arbitrary.o, dist/build/testlib/Test/Cardano/Binary/Arbitrary.dyn_o )
[2 of 4] Compiling Test.Cardano.Binary.Helpers ( testlib/Test/Cardano/Binary/Helpers.hs, dist/build/testlib/Test/Cardano/Binary/Helpers.o, dist/build/testlib/Test/Cardano/Binary/Helpers.dyn_o )
[3 of 4] Compiling Test.Cardano.Binary.Helpers.GoldenRoundTrip ( testlib/Test/Cardano/Binary/Helpers/GoldenRoundTrip.hs, dist/build/testlib/Test/Cardano/Binary/Helpers/GoldenRoundTrip.o, dist/build/testlib/Test/Cardano/Binary/Helpers/GoldenRoundTrip.dyn_o )
[4 of 4] Compiling Test.Cardano.Binary.TreeDiff ( testlib/Test/Cardano/Binary/TreeDiff.hs, dist/build/testlib/Test/Cardano/Binary/TreeDiff.o, dist/build/testlib/Test/Cardano/Binary/TreeDiff.dyn_o )

testlib/Test/Cardano/Binary/TreeDiff.hs:69:17: error: [GHC-76037]
    Not in scope: type constructor or class ‘Plain.DecoderError’
    NB: no module named ‘Plain’ is imported.
   |
69 | instance ToExpr Plain.DecoderError where
   |                 ^^^^^^^^^^^^^^^^^^

testlib/Test/Cardano/Binary/TreeDiff.hs:70:11: error: [GHC-76037]
    Not in scope:
      data constructor ‘Plain.DecoderErrorCanonicityViolation’
    NB: no module named ‘Plain’ is imported.
   |
70 |   toExpr (Plain.DecoderErrorCanonicityViolation x) = App "DecoderErrorCanonicityViolation" [toExpr x]
   |           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

testlib/Test/Cardano/Binary/TreeDiff.hs:71:11: error: [GHC-76037]
    Not in scope: data constructor ‘Plain.DecoderErrorCustom’
    NB: no module named ‘Plain’ is imported.
   |
71 |   toExpr (Plain.DecoderErrorCustom x y) = App "DecoderErrorCustom" [toExpr x, toExpr y]
   |           ^^^^^^^^^^^^^^^^^^^^^^^^

testlib/Test/Cardano/Binary/TreeDiff.hs:72:11: error: [GHC-76037]
    Not in scope:
      data constructor ‘Plain.DecoderErrorDeserialiseFailure’
    NB: no module named ‘Plain’ is imported.
   |
72 |   toExpr (Plain.DecoderErrorDeserialiseFailure x y) = App "DecoderErrorDeserialiseFailure" [toExpr x, toExpr y]
   |           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

testlib/Test/Cardano/Binary/TreeDiff.hs:73:11: error: [GHC-76037]
    Not in scope: data constructor ‘Plain.DecoderErrorEmptyList’
    NB: no module named ‘Plain’ is imported.
   |
73 |   toExpr (Plain.DecoderErrorEmptyList x) = App "DecoderErrorEmptyList" [toExpr x]
   |           ^^^^^^^^^^^^^^^^^^^^^^^^^^^

testlib/Test/Cardano/Binary/TreeDiff.hs:74:11: error: [GHC-76037]
    Not in scope: data constructor ‘Plain.DecoderErrorLeftover’
    NB: no module named ‘Plain’ is imported.
   |
74 |   toExpr (Plain.DecoderErrorLeftover x y) = App "DecoderErrorLeftover" [toExpr x, toExpr y]
   |           ^^^^^^^^^^^^^^^^^^^^^^^^^^

testlib/Test/Cardano/Binary/TreeDiff.hs:75:11: error: [GHC-76037]
    Not in scope: data constructor ‘Plain.DecoderErrorSizeMismatch’
    NB: no module named ‘Plain’ is imported.
   |
75 |   toExpr (Plain.DecoderErrorSizeMismatch x y z) = App "DecoderErrorSizeMismatch" [toExpr x, toExpr y, toExpr z]
   |           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

testlib/Test/Cardano/Binary/TreeDiff.hs:76:11: error: [GHC-76037]
    Not in scope: data constructor ‘Plain.DecoderErrorUnknownTag’
    NB: no module named ‘Plain’ is imported.
   |
76 |   toExpr (Plain.DecoderErrorUnknownTag x y) = App "DecoderErrorUnknownTag" [toExpr x, toExpr y]
   |           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^

testlib/Test/Cardano/Binary/TreeDiff.hs:77:10: error: [GHC-76037]
    Not in scope: data constructor ‘Plain.DecoderErrorVoid’
    NB: no module named ‘Plain’ is imported.
   |
77 |   toExpr Plain.DecoderErrorVoid = App "DecoderErrorVoid" []
   |          ^^^^^^^^^^^^^^^^^^^^^^

testlib/Test/Cardano/Binary/TreeDiff.hs:138:18: error: [GHC-76037]
    Not in scope: ‘Plain.decodeFullDecoder’
    NB: no module named ‘Plain’ is imported.
    |
138 |             case Plain.decodeFullDecoder "Term" CBOR.decodeTerm leftOver of
    |                  ^^^^^^^^^^^^^^^^^^^^^^^

testlib/Test/Cardano/Binary/TreeDiff.hs:219:21: error: [GHC-76037]
    Not in scope: type constructor or class ‘Plain.DecoderError’
    NB: no module named ‘Plain’ is imported.
    |
219 | showDecoderError :: Plain.DecoderError -> String
    |                     ^^^^^^^^^^^^^^^^^^