homectl / workspace

Haskell repositories around graphics programming on the GPU.
BSD 3-Clause "New" or "Revised" License
9 stars 2 forks source link

Test suite failure for scenegraph 0.2.0.0 release #2

Open sternenseemann opened 2 years ago

sternenseemann commented 2 years ago

Edit: seems to be flaky, works on restart.

setupCompilerEnvironmentPhase
Build with /nix/store/s8xr73fw8l804xdmmhyyzdhyzyqx12y3-ghc-9.0.2.
unpacking sources
unpacking source archive /nix/store/m03s2mh93ar6m3v2vnh39p3r92031isc-scenegraph-0.2.0.0.tar.gz
source root is scenegraph-0.2.0.0
setting SOURCE_DATE_EPOCH to timestamp 1000000000 of file scenegraph-0.2.0.0/test/testsuite.hs
patching sources
compileBuildDriverPhase
setupCompileFlags: -package-db=/build/tmp.nyNczPDBMX/setup-package.conf.d -j2 +RTS -A64M -RTS -threaded -rtsopts
[1 of 1] Compiling Main             ( Setup.hs, /build/tmp.nyNczPDBMX/Main.o )
Linking Setup ...
configuring
configureFlags: --verbose --prefix=/nix/store/k3zab4hqlpllcdr2d13m0hkp1wpa2kfp-scenegraph-0.2.0.0 --libdir=$prefix/lib/$compiler --libsubdir=$abi/$libname --docdir=/nix/store/n6f0z27pvv105461d8b0q1dgfgpac3px-scenegraph-0.2.0.0-doc/share/doc/scenegraph-0.2.0.0 --with-gcc=gcc --package-db=/build/tmp.nyNczPDBMX/package.conf.d --ghc-options=-j2 +RTS -A64M -RTS --disable-split-objs --enable-library-profiling --profiling-detail=exported-functions --disable-profiling --enable-shared --disable-coverage --enable-static --disable-executable-dynamic --enable-tests --disable-benchmarks --enable-library-vanilla --disable-library-for-ghci --ghc-option=-split-sections --ghc-options=-haddock --extra-lib-dirs=/nix/store/7ji068smnymqz2lg2fd42hjnjd5czbl6-ncurses-6.3-p20220507/lib --extra-lib-dirs=/nix/store/sg0mhf59lk5y614z8fpjjv6mqpbdvg7m-libffi-3.4.2/lib --extra-lib-dirs=/nix/store/rbgpdsydkvj0ijbb8hmnsxylb068alag-gmp-with-cxx-6.2.1/lib
Using Parsec parser
Configuring scenegraph-0.2.0.0...
Dependency base: using base-4.15.1.0
Dependency data-default: using data-default-0.7.1.1
Dependency fgl: using fgl-5.7.0.3
Dependency graphviz: using graphviz-2999.20.1.0
Dependency lens: using lens-5.0.1
Dependency linear: using linear-1.21.9
Dependency mtl: using mtl-2.2.2
Dependency text: using text-1.2.5.0
Dependency QuickCheck: using QuickCheck-2.14.2
Dependency base <5: using base-4.15.1.0
Dependency hspec: using hspec-2.8.5
Dependency lens: using lens-5.0.1
Dependency linear: using linear-1.21.9
Dependency scenegraph: using scenegraph-0.2.0.0
Source component graph:
    component lib
    component test:testsuite dependency lib
Configured component graph:
    component scenegraph-0.2.0.0-528evRtBzOc2ZePkWmIKue
        include base-4.15.1.0
        include data-default-0.7.1.1-2oomw3KKtyj2e0GcZqJJjo
        include fgl-5.7.0.3-AcapJJSRL3XICHjhEXvolF
        include graphviz-2999.20.1.0-6hIN8zsdrqHJCCSB0Qiffy
        include lens-5.0.1-IyoHbjke83qLG0yAxj1Z63
        include linear-1.21.9-7BKEh37wjJZ4Kty7pc1qMR
        include mtl-2.2.2
        include text-1.2.5.0
    component scenegraph-0.2.0.0-5kzdWXQHVq8JXui2VtlTf4-testsuite
        include QuickCheck-2.14.2-CJDnMWXQCpp1Tgm6F43kjb
        include base-4.15.1.0
        include hspec-2.8.5-15yd26Khcrc433s3iLylfP
        include lens-5.0.1-IyoHbjke83qLG0yAxj1Z63
        include linear-1.21.9-7BKEh37wjJZ4Kty7pc1qMR
        include scenegraph-0.2.0.0-528evRtBzOc2ZePkWmIKue
Linked component graph:
    unit scenegraph-0.2.0.0-528evRtBzOc2ZePkWmIKue
        include base-4.15.1.0
        include data-default-0.7.1.1-2oomw3KKtyj2e0GcZqJJjo
        include fgl-5.7.0.3-AcapJJSRL3XICHjhEXvolF
        include graphviz-2999.20.1.0-6hIN8zsdrqHJCCSB0Qiffy
        include lens-5.0.1-IyoHbjke83qLG0yAxj1Z63
        include linear-1.21.9-7BKEh37wjJZ4Kty7pc1qMR
        include mtl-2.2.2
        include text-1.2.5.0
        Graphics.SceneGraph=scenegraph-0.2.0.0-528evRtBzOc2ZePkWmIKue:Graphics.SceneGraph,Graphics.SceneGraph.Basic=scenegraph-0.2.0.0-528evRtBzOc2ZePkWmIKue:Graphics.SceneGraph.Basic,Graphics.SceneGraph.BoundingBox=scenegraph-0.2.0.0-528evRtBzOc2ZePkWmIKue:Graphics.SceneGraph.BoundingBox,Graphics.SceneGraph.Matrix=scenegraph-0.2.0.0-528evRtBzOc2ZePkWmIKue:Graphics.SceneGraph.Matrix,Graphics.SceneGraph.Render=scenegraph-0.2.0.0-528evRtBzOc2ZePkWmIKue:Graphics.SceneGraph.Render,Graphics.SceneGraph.Types=scenegraph-0.2.0.0-528evRtBzOc2ZePkWmIKue:Graphics.SceneGraph.Types,Graphics.SceneGraph.Visualise=scenegraph-0.2.0.0-528evRtBzOc2ZePkWmIKue:Graphics.SceneGraph.Visualise
    unit scenegraph-0.2.0.0-5kzdWXQHVq8JXui2VtlTf4-testsuite
        include QuickCheck-2.14.2-CJDnMWXQCpp1Tgm6F43kjb
        include base-4.15.1.0
        include hspec-2.8.5-15yd26Khcrc433s3iLylfP
        include lens-5.0.1-IyoHbjke83qLG0yAxj1Z63
        include linear-1.21.9-7BKEh37wjJZ4Kty7pc1qMR
        include scenegraph-0.2.0.0-528evRtBzOc2ZePkWmIKue
Ready component graph:
    definite scenegraph-0.2.0.0-528evRtBzOc2ZePkWmIKue
        depends base-4.15.1.0
        depends data-default-0.7.1.1-2oomw3KKtyj2e0GcZqJJjo
        depends fgl-5.7.0.3-AcapJJSRL3XICHjhEXvolF
        depends graphviz-2999.20.1.0-6hIN8zsdrqHJCCSB0Qiffy
        depends lens-5.0.1-IyoHbjke83qLG0yAxj1Z63
        depends linear-1.21.9-7BKEh37wjJZ4Kty7pc1qMR
        depends mtl-2.2.2
        depends text-1.2.5.0
    definite scenegraph-0.2.0.0-5kzdWXQHVq8JXui2VtlTf4-testsuite
        depends QuickCheck-2.14.2-CJDnMWXQCpp1Tgm6F43kjb
        depends base-4.15.1.0
        depends hspec-2.8.5-15yd26Khcrc433s3iLylfP
        depends lens-5.0.1-IyoHbjke83qLG0yAxj1Z63
        depends linear-1.21.9-7BKEh37wjJZ4Kty7pc1qMR
        depends scenegraph-0.2.0.0-528evRtBzOc2ZePkWmIKue
Using Cabal-3.4.1.0 compiled by ghc-9.0
Using compiler: ghc-9.0.2
Using install prefix:
/nix/store/k3zab4hqlpllcdr2d13m0hkp1wpa2kfp-scenegraph-0.2.0.0
Executables installed in:
/nix/store/k3zab4hqlpllcdr2d13m0hkp1wpa2kfp-scenegraph-0.2.0.0/bin
Libraries installed in:
/nix/store/k3zab4hqlpllcdr2d13m0hkp1wpa2kfp-scenegraph-0.2.0.0/lib/ghc-9.0.2/x86_64-linux-ghc-9.0.2/scenegraph-0.2.0.0-528evRtBzOc2ZePkWmIKue
Dynamic Libraries installed in:
/nix/store/k3zab4hqlpllcdr2d13m0hkp1wpa2kfp-scenegraph-0.2.0.0/lib/ghc-9.0.2/x86_64-linux-ghc-9.0.2
Private executables installed in:
/nix/store/k3zab4hqlpllcdr2d13m0hkp1wpa2kfp-scenegraph-0.2.0.0/libexec/x86_64-linux-ghc-9.0.2/scenegraph-0.2.0.0
Data files installed in:
/nix/store/k3zab4hqlpllcdr2d13m0hkp1wpa2kfp-scenegraph-0.2.0.0/share/x86_64-linux-ghc-9.0.2/scenegraph-0.2.0.0
Documentation installed in:
/nix/store/n6f0z27pvv105461d8b0q1dgfgpac3px-scenegraph-0.2.0.0-doc/share/doc/scenegraph-0.2.0.0
Configuration files installed in:
/nix/store/k3zab4hqlpllcdr2d13m0hkp1wpa2kfp-scenegraph-0.2.0.0/etc
No alex found
Using ar found on system at:
/nix/store/cz52w8xf3i1d3xvzpzd9abf7rvpl9017-binutils-2.38/bin/ar
No c2hs found
No cpphs found
No doctest found
Using gcc version 11.3.0 given by user at:
/nix/store/61zfi5pmhb0d91422f186x26v7b52y5k-gcc-wrapper-11.3.0/bin/gcc
Using ghc version 9.0.2 found on system at:
/nix/store/s8xr73fw8l804xdmmhyyzdhyzyqx12y3-ghc-9.0.2/bin/ghc
Using ghc-pkg version 9.0.2 found on system at:
/nix/store/s8xr73fw8l804xdmmhyyzdhyzyqx12y3-ghc-9.0.2/bin/ghc-pkg
No ghcjs found
No ghcjs-pkg found
No greencard found
Using haddock version 2.25.1 found on system at:
/nix/store/s8xr73fw8l804xdmmhyyzdhyzyqx12y3-ghc-9.0.2/bin/haddock
No happy found
Using haskell-suite found on system at: haskell-suite-dummy-location
Using haskell-suite-pkg found on system at: haskell-suite-pkg-dummy-location
No hmake found
Using hpc version 0.68 found on system at:
/nix/store/s8xr73fw8l804xdmmhyyzdhyzyqx12y3-ghc-9.0.2/bin/hpc
Using hsc2hs version 0.68.7 found on system at:
/nix/store/s8xr73fw8l804xdmmhyyzdhyzyqx12y3-ghc-9.0.2/bin/hsc2hs
Using hscolour version 1.24 found on system at:
/nix/store/ywgdak8ngrm3410q5z74n5i1zv4r1rsn-hscolour-1.24.4/bin/HsColour
No jhc found
Using ld found on system at:
/nix/store/lvg99f3zni6zw4cvlci6wpmzlls0nsn4-binutils-wrapper-2.38/bin/ld.gold
No pkg-config found
Using runghc version 9.0.2 found on system at:
/nix/store/s8xr73fw8l804xdmmhyyzdhyzyqx12y3-ghc-9.0.2/bin/runghc
Using strip version 2.38 found on system at:
/nix/store/61zfi5pmhb0d91422f186x26v7b52y5k-gcc-wrapper-11.3.0/bin/strip
Using tar found on system at:
/nix/store/7xqp6zi0ymccfmgykw8i5m0vny7nlv37-gnutar-1.34/bin/tar
No uhc found
building
Preprocessing library for scenegraph-0.2.0.0..
Building library for scenegraph-0.2.0.0..
[1 of 7] Compiling Graphics.SceneGraph.Matrix ( src/Graphics/SceneGraph/Matrix.hs, dist/build/Graphics/SceneGraph/Matrix.o, dist/build/Graphics/SceneGraph/Matrix.dyn_o )
[2 of 7] Compiling Graphics.SceneGraph.Types ( src/Graphics/SceneGraph/Types.hs, dist/build/Graphics/SceneGraph/Types.o, dist/build/Graphics/SceneGraph/Types.dyn_o )
[3 of 7] Compiling Graphics.SceneGraph.Render ( src/Graphics/SceneGraph/Render.hs, dist/build/Graphics/SceneGraph/Render.o, dist/build/Graphics/SceneGraph/Render.dyn_o )
[4 of 7] Compiling Graphics.SceneGraph.BoundingBox ( src/Graphics/SceneGraph/BoundingBox.hs, dist/build/Graphics/SceneGraph/BoundingBox.o, dist/build/Graphics/SceneGraph/BoundingBox.dyn_o )
[5 of 7] Compiling Graphics.SceneGraph.Basic ( src/Graphics/SceneGraph/Basic.hs, dist/build/Graphics/SceneGraph/Basic.o, dist/build/Graphics/SceneGraph/Basic.dyn_o )
[6 of 7] Compiling Graphics.SceneGraph.Visualise ( src/Graphics/SceneGraph/Visualise.hs, dist/build/Graphics/SceneGraph/Visualise.o, dist/build/Graphics/SceneGraph/Visualise.dyn_o )
[7 of 7] Compiling Graphics.SceneGraph ( src/Graphics/SceneGraph.hs, dist/build/Graphics/SceneGraph.o, dist/build/Graphics/SceneGraph.dyn_o )
[1 of 7] Compiling Graphics.SceneGraph.Matrix ( src/Graphics/SceneGraph/Matrix.hs, dist/build/Graphics/SceneGraph/Matrix.p_o )
[2 of 7] Compiling Graphics.SceneGraph.Types ( src/Graphics/SceneGraph/Types.hs, dist/build/Graphics/SceneGraph/Types.p_o )
[3 of 7] Compiling Graphics.SceneGraph.Render ( src/Graphics/SceneGraph/Render.hs, dist/build/Graphics/SceneGraph/Render.p_o )
[4 of 7] Compiling Graphics.SceneGraph.BoundingBox ( src/Graphics/SceneGraph/BoundingBox.hs, dist/build/Graphics/SceneGraph/BoundingBox.p_o )
[5 of 7] Compiling Graphics.SceneGraph.Basic ( src/Graphics/SceneGraph/Basic.hs, dist/build/Graphics/SceneGraph/Basic.p_o )
[6 of 7] Compiling Graphics.SceneGraph.Visualise ( src/Graphics/SceneGraph/Visualise.hs, dist/build/Graphics/SceneGraph/Visualise.p_o )
[7 of 7] Compiling Graphics.SceneGraph ( src/Graphics/SceneGraph.hs, dist/build/Graphics/SceneGraph.p_o )
Preprocessing test suite 'testsuite' for scenegraph-0.2.0.0..
Building test suite 'testsuite' for scenegraph-0.2.0.0..
[1 of 4] Compiling Graphics.SceneGraph.BasicSpec ( test/Graphics/SceneGraph/BasicSpec.hs, dist/build/testsuite/testsuite-tmp/Graphics/SceneGraph/BasicSpec.o )
[2 of 4] Compiling Graphics.SceneGraph.BoundingBoxSpec ( test/Graphics/SceneGraph/BoundingBoxSpec.hs, dist/build/testsuite/testsuite-tmp/Graphics/SceneGraph/BoundingBoxSpec.o )
[3 of 4] Compiling Graphics.SceneGraph.VisualiseSpec ( test/Graphics/SceneGraph/VisualiseSpec.hs, dist/build/testsuite/testsuite-tmp/Graphics/SceneGraph/VisualiseSpec.o )
[4 of 4] Compiling Main             ( test/testsuite.hs, dist/build/testsuite/testsuite-tmp/Main.o )
Linking dist/build/testsuite/testsuite ...
running tests
Running 1 test suites...
Test suite testsuite: RUNNING...

Graphics.SceneGraph.Basic
  union
    should be idempotent
      +++ OK, passed 100 tests.
    should yield a superset of the two input boxes
  bounds
    should yield the a bounding box that's at least as large as the items within
Graphics.SceneGraph.BoundingBox
  union
    should be idempotent
      +++ OK, passed 100 tests.
    should yield a superset of the two input boxes
  translate
    should move a point linearly
      +++ OK, passed 100 tests.
  rotateX
    should not modify the X coordinate FAILED [1]
    should turn a Y unit vector into a Z unit vector
  rotateY
    should not modify the Y coordinate FAILED [2]
    should turn an X unit vector into a Z unit vector
  rotateZ
    should not modify the Z coordinate FAILED [3]
    should turn an X unit vector into a Y unit vector
  bounds
    should yield the a bounding box that's at least as large as the items within
Graphics.SceneGraph.Visualise
  toSvg
    should match the golden test file
    should support cyclic graphs

Failures:

  test/Graphics/SceneGraph/BoundingBoxSpec.hs:63:9: 
  1) Graphics.SceneGraph.BoundingBox.rotateX should not modify the X coordinate
       Falsifiable (after 99 tests and 2 shrinks):
         V3 86.17052 (-30.967806) (-77.09652)
         -90.0
       expected: 86.17052
        but got: 86.17051

  To rerun use: --match "/Graphics.SceneGraph.BoundingBox/rotateX/should not modify the X coordinate/"

  test/Graphics/SceneGraph/BoundingBoxSpec.hs:79:9: 
  2) Graphics.SceneGraph.BoundingBox.rotateY should not modify the Y coordinate
       Falsifiable (after 99 tests and 2 shrinks):
         V3 86.17052 (-30.967806) (-77.09652)
         -90.0
       expected: -30.967806
        but got: -30.967804

  To rerun use: --match "/Graphics.SceneGraph.BoundingBox/rotateY/should not modify the Y coordinate/"

  test/Graphics/SceneGraph/BoundingBoxSpec.hs:95:9: 
  3) Graphics.SceneGraph.BoundingBox.rotateZ should not modify the Z coordinate
       Falsifiable (after 99 tests and 2 shrinks):
         V3 86.17052 (-30.967806) (-77.09652)
         -90.0
       expected: -77.09652
        but got: -77.09651

  To rerun use: --match "/Graphics.SceneGraph.BoundingBox/rotateZ/should not modify the Z coordinate/"

Randomized with seed 1171794874

Finished in 0.0934 seconds
15 examples, 3 failures
Test suite testsuite: FAIL
Test suite logged to: dist/test/scenegraph-0.2.0.0-testsuite.log
0 of 1 test suites (0 of 1 test cases) passed.
sorki commented 2 years ago

Thanks, this seems fixed in 2.0.0.1 which is on Hackage as a candidate https://hackage.haskell.org/package/scenegraph-0.2.0.1/candidate

Can you promote that one @pippijn?