statebox / cql

CQL: Categorical Query Language implementation in Haskell
GNU Affero General Public License v3.0
162 stars 14 forks source link

add tests for parsing of example files #63

Closed marcosh closed 5 years ago

marcosh commented 5 years ago

from now on it would be nice if we all use the stack test --pedantic command to compile the code, so that we could also check that we didn't break the tests

wisnesky commented 5 years ago

I now see errors of this form with stack test:

Ryans-MacBook:statebox_aql ryan$ stack test

Warning: Specified file "ChangeLog.md" for extra-source-files does not exist

Warning: /Users/ryan/GitHub/statebox_aql/aql.cabal was modified manually. Ignoring /Users/ryan/GitHub/statebox_aql/package.yaml in favor of the cabal file. If you want to use the package.yaml file instead of the cabal file, then please delete the cabal file.

Warning: File listed in aql.cabal file does not exist: ChangeLog.md aql-0.1.0.0: unregistering (dependencies changed) aql-0.1.0.0: configure (lib + exe + test) Configuring aql-0.1.0.0... clang: warning: argument unused during compilation: '-nopie' [-Wunused-command-line-argument] aql-0.1.0.0: build (lib + exe + test) Preprocessing library for aql-0.1.0.0.. Building library for aql-0.1.0.0.. ignoring (possibly broken) abi-depends field for packages Preprocessing executable 'aql-exe' for aql-0.1.0.0.. Building executable 'aql-exe' for aql-0.1.0.0.. Preprocessing test suite 'aql-test' for aql-0.1.0.0.. Cabal-simple_mPHDZzAJ_2.2.0.1_ghc-8.4.3: can't find source for Parser/SchemaSpec in test, .stack-work/dist/x86_64-osx/Cabal-2.2.0.1/build/aql-test/autogen, .stack-work/dist/x86_64-osx/Cabal-2.2.0.1/build/global-autogen

Progress 1/2

-- While building custom Setup.hs for package aql-0.1.0.0 using: /Users/ryan/.stack/setup-exe-cache/x86_64-osx/Cabal-simple_mPHDZzAJ_2.2.0.1_ghc-8.4.3 --builddir=.stack-work/dist/x86_64-osx/Cabal-2.2.0.1 build lib:aql exe:aql-exe test:aql-test --ghc-options " -ddump-hi -ddump-to-file -fdiagnostics-color=always" Process exited with code: ExitFailure 1 Ryans-MacBook:statebox_aql ryan$

On Oct 11, 2018, at 2:31 AM, Marco Perone notifications@github.com wrote:

from now on it would be nice if we all use the stack test --pedantic command to compile the code, so that we could also check that we didn't break the tests

You can view, comment on, or merge this pull request online at:

https://github.com/statebox/aql/pull/63

Commit Summary

• add tests for parsing of example files File Changes

• M test/AQLSpec.hs (34) Patch Links:

https://github.com/statebox/aql/pull/63.patchhttps://github.com/statebox/aql/pull/63.diff — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

marcosh commented 5 years ago

strange, this is not happening on my machine... could you please post here the output of stack test --verbose?

wisnesky commented 5 years ago

Ryans-MacBook:statebox_aql ryan$ stack test --verbose Version 1.7.1, Git revision 681c800873816c022739ca7ed14755e85a579565 (5807 commits) x86_64 hpack-0.28.2 2018-10-11 04:31:19.395108: [debug] Checking for project config at: /Users/ryan/GitHub/statebox_aql/stack.yaml @(src/Stack/Config.hs:850:9) 2018-10-11 04:31:19.395816: [debug] Loading project config file stack.yaml @(src/Stack/Config.hs:876:13) 2018-10-11 04:31:19.398223: [debug] Decoding build plan from: /Users/ryan/.stack/build-plan/lts-12.0.yaml @(src/Stack/Snapshot.hs:164:5) 2018-10-11 04:31:19.398358: [debug] Trying to decode /Users/ryan/.stack/build-plan-cache/lts-12.0.cache @(src/Stack/Snapshot.hs:156:32) 2018-10-11 04:31:19.404896: [debug] Success decoding /Users/ryan/.stack/build-plan-cache/lts-12.0.cache @(src/Stack/Snapshot.hs:156:32) 2018-10-11 04:31:19.405389: [debug] Potential GHC builds: standard @(src/Stack/Setup.hs:632:9) 2018-10-11 04:31:19.405467: [debug] Found already installed GHC builds: standard @(src/Stack/Setup.hs:458:13) 2018-10-11 04:31:19.405861: [debug] Getting global package database location @(src/Stack/GhcPkg.hs:47:5) 2018-10-11 04:31:19.406071: [debug] Getting Cabal package version @(src/Stack/GhcPkg.hs:180:5) 2018-10-11 04:31:19.406137: [debug] Asking GHC for its version @(src/Stack/Setup/Installed.hs:98:13) 2018-10-11 04:31:19.406241: [debug] Run process: /Users/ryan/.stack/programs/x86_64-osx/ghc-8.4.3/bin/ghc-pkg --no-user-package-db list --global @(src/Stack/GhcPkg.hs:76:10) 2018-10-11 04:31:19.406816: [debug] Run process: /Users/ryan/.stack/programs/x86_64-osx/ghc-8.4.3/bin/ghc-pkg --no-user-package-db field --simple-output Cabal version @(src/Stack/GhcPkg.hs:76:10) 2018-10-11 04:31:19.407941: [debug] Run process: /Users/ryan/.stack/programs/x86_64-osx/ghc-8.4.3/bin/ghc --numeric-version @(src/Stack/Setup/Installed.hs:99:19) 2018-10-11 04:31:19.501149: [debug] Process finished in 95ms: /Users/ryan/.stack/programs/x86_64-osx/ghc-8.4.3/bin/ghc-pkg --no-user-package-db list --global @(src/Stack/GhcPkg.hs:76:10) 2018-10-11 04:31:19.504374: [debug] Process finished in 97ms: /Users/ryan/.stack/programs/x86_64-osx/ghc-8.4.3/bin/ghc-pkg --no-user-package-db field --simple-output Cabal version @(src/Stack/GhcPkg.hs:76:10) 2018-10-11 04:31:19.521384: [debug] Process finished in 113ms: /Users/ryan/.stack/programs/x86_64-osx/ghc-8.4.3/bin/ghc --numeric-version @(src/Stack/Setup/Installed.hs:99:19) 2018-10-11 04:31:19.521564: [debug] GHC version is: ghc-8.4.3 @(src/Stack/Setup/Installed.hs:102:13) 2018-10-11 04:31:19.521708: [debug] Resolving package entries @(src/Stack/Setup.hs:256:5) 2018-10-11 04:31:19.522011: [debug] Trying to decode /Users/ryan/.stack/loaded-snapshot-cache/x86_64-osx/ghc-8.4.3/lts-12.0.cache @(src/Stack/Snapshot.hs:384:9) 2018-10-11 04:31:19.578690: [debug] Success decoding /Users/ryan/.stack/loaded-snapshot-cache/x86_64-osx/ghc-8.4.3/lts-12.0.cache @(src/Stack/Snapshot.hs:384:9) 2018-10-11 04:31:19.579978: [debug] Starting to execute command inside EnvConfig @(src/Stack/Runners.hs:171:18) 2018-10-11 04:31:19.580063: [debug] Parsing the targets @(src/Stack/Build/Target.hs:460:3) 2018-10-11 04:31:19.580266: [debug] Running hpack on /Users/ryan/GitHub/statebox_aql/package.yaml @(src/Stack/Package.hs:1390:9) 2018-10-11 04:31:19.584076: [warn] Warning: Specified file "ChangeLog.md" for extra-source-files does not exist @(src/Stack/Package.hs:1402:48) 2018-10-11 04:31:19.584236: [warn] Warning: /Users/ryan/GitHub/statebox_aql/aql.cabal was modified manually. Ignoring /Users/ryan/GitHub/statebox_aql/package.yaml in favor of the cabal file. If you want to use the package.yaml file instead of the cabal file, then please delete the cabal file. @(src/Stack/Package.hs:1414:67) 2018-10-11 04:31:19.587767: [debug] Trying to decode /Users/ryan/.stack/indices/Hackage/01-index.cache @(src/Stack/PackageIndex.hs:407:23) 2018-10-11 04:31:19.802341: [debug] Success decoding /Users/ryan/.stack/indices/Hackage/01-index.cache @(src/Stack/PackageIndex.hs:407:23) 2018-10-11 04:31:19.824293: [debug] Start: getPackageFiles /Users/ryan/GitHub/statebox_aql/aql.cabal @(src/Stack/Package.hs:332:21) 2018-10-11 04:31:19.850566: [warn] Warning: File listed in aql.cabal file does not exist: ChangeLog.md @(src/Stack/Package.hs:1449:8) 2018-10-11 04:31:19.850854: [debug] Finished in 26ms: getPackageFiles /Users/ryan/GitHub/statebox_aql/aql.cabal @(src/Stack/Package.hs:332:21) 2018-10-11 04:31:19.852771: [debug] Finding out which packages are already installed @(src/Stack/Build/Installed.hs:57:5) 2018-10-11 04:31:19.853019: [debug] Run process: /Users/ryan/.stack/programs/x86_64-osx/ghc-8.4.3/bin/ghc-pkg --global --no-user-package-db dump --expand-pkgroot @(src/Stack/Prelude.hs:117:3) 2018-10-11 04:31:19.932534: [debug] Process finished in 79ms: /Users/ryan/.stack/programs/x86_64-osx/ghc-8.4.3/bin/ghc-pkg --global --no-user-package-db dump --expand-pkgroot @(src/Stack/Prelude.hs:117:3) 2018-10-11 04:31:19.932954: [debug] Ignoring package haskeline due to wanting version 0.7.4.3 instead of 0.7.4.2 @(src/Stack/Build/Installed.hs:185:5) 2018-10-11 04:31:19.933228: [debug] Run process: /Users/ryan/.stack/programs/x86_64-osx/ghc-8.4.3/bin/ghc-pkg --user --no-user-package-db --package-db /Users/ryan/.stack/snapshots/x86_64-osx/lts-12.0/8.4.3/pkgdb dump --expand-pkgroot @(src/Stack/Prelude.hs:117:3) 2018-10-11 04:31:20.017882: [debug] Process finished in 85ms: /Users/ryan/.stack/programs/x86_64-osx/ghc-8.4.3/bin/ghc-pkg --user --no-user-package-db --package-db /Users/ryan/.stack/snapshots/x86_64-osx/lts-12.0/8.4.3/pkgdb dump --expand-pkgroot @(src/Stack/Prelude.hs:117:3) 2018-10-11 04:31:20.018787: [debug] Run process: /Users/ryan/.stack/programs/x86_64-osx/ghc-8.4.3/bin/ghc-pkg --user --no-user-package-db --package-db /Users/ryan/GitHub/statebox_aql/.stack-work/install/x86_64-osx/lts-12.0/8.4.3/pkgdb dump --expand-pkgroot @(src/Stack/Prelude.hs:117:3) 2018-10-11 04:31:20.098347: [debug] Process finished in 79ms: /Users/ryan/.stack/programs/x86_64-osx/ghc-8.4.3/bin/ghc-pkg --user --no-user-package-db --package-db /Users/ryan/GitHub/statebox_aql/.stack-work/install/x86_64-osx/lts-12.0/8.4.3/pkgdb dump --expand-pkgroot @(src/Stack/Prelude.hs:117:3) 2018-10-11 04:31:20.098760: [debug] Constructing the build plan @(src/Stack/Build/ConstructPlan.hs:186:5) 2018-10-11 04:31:20.101885: [debug] Checking if we are going to build multiple executables with the same name @(src/Stack/Build.hs:177:5) 2018-10-11 04:31:20.102007: [debug] Executing the build plan @(src/Stack/Build/Execute.hs:491:5) 2018-10-11 04:31:20.103001: [debug] Getting global package database location @(src/Stack/GhcPkg.hs:47:5) 2018-10-11 04:31:20.103071: [debug] Run process: /Users/ryan/.stack/programs/x86_64-osx/ghc-8.4.3/bin/ghc-pkg --no-user-package-db list --global @(src/Stack/GhcPkg.hs:76:10) 2018-10-11 04:31:20.172737: [debug] Process finished in 70ms: /Users/ryan/.stack/programs/x86_64-osx/ghc-8.4.3/bin/ghc-pkg --no-user-package-db list --global @(src/Stack/GhcPkg.hs:76:10) 2018-10-11 04:31:20.174141: [debug] Encoding /Users/ryan/GitHub/statebox_aql/.stack-work/dist/x86_64-osx/Cabal-2.2.0.1/stack-test-success @(src/Stack/Build/Cache.hs:228:7) 2018-10-11 04:31:20.174739: [debug] Finished writing /Users/ryan/GitHub/statebox_aql/.stack-work/dist/x86_64-osx/Cabal-2.2.0.1/stack-test-success @(src/Stack/Build/Cache.hs:228:7) 2018-10-11 04:31:20.174846: [debug] Encoding /Users/ryan/GitHub/statebox_aql/.stack-work/dist/x86_64-osx/Cabal-2.2.0.1/stack-build-caches/lib @(src/Stack/Build/Cache.hs:153:7) 2018-10-11 04:31:20.175624: [debug] Finished writing /Users/ryan/GitHub/statebox_aql/.stack-work/dist/x86_64-osx/Cabal-2.2.0.1/stack-build-caches/lib @(src/Stack/Build/Cache.hs:153:7) 2018-10-11 04:31:20.175787: [debug] Encoding /Users/ryan/GitHub/statebox_aql/.stack-work/dist/x86_64-osx/Cabal-2.2.0.1/stack-build-caches/exe-aql-exe @(src/Stack/Build/Cache.hs:153:7) 2018-10-11 04:31:20.176234: [debug] Finished writing /Users/ryan/GitHub/statebox_aql/.stack-work/dist/x86_64-osx/Cabal-2.2.0.1/stack-build-caches/exe-aql-exe @(src/Stack/Build/Cache.hs:153:7) 2018-10-11 04:31:20.176321: [debug] Encoding /Users/ryan/GitHub/statebox_aql/.stack-work/dist/x86_64-osx/Cabal-2.2.0.1/stack-build-caches/test-aql-test @(src/Stack/Build/Cache.hs:153:7) 2018-10-11 04:31:20.176779: [debug] Finished writing /Users/ryan/GitHub/statebox_aql/.stack-work/dist/x86_64-osx/Cabal-2.2.0.1/stack-build-caches/test-aql-test @(src/Stack/Build/Cache.hs:153:7) 2018-10-11 04:31:20.176890: [info] aql-0.1.0.0: build (lib + exe + test) @(src/Stack/Build/Execute.hs:873:23) 2018-10-11 04:31:20.177409: [debug] Run process within /Users/ryan/GitHub/statebox_aql/: /Users/ryan/.stack/setup-exe-cache/x86_64-osx/Cabal-simple_mPHDZzAJ_2.2.0.1_ghc-8.4.3 --builddir=.stack-work/dist/x86_64-osx/Cabal-2.2.0.1 build lib:aql exe:aql-exe test:aql-test --ghc-options " -ddump-hi -ddump-to-file -fdiagnostics-color=always" @(src/Stack/Prelude.hs:96:3) 2018-10-11 04:31:20.312691: [info] Preprocessing library for aql-0.1.0.0.. @(src/Stack/Build/Execute.hs:1141:34) 2018-10-11 04:31:20.312854: [info] Building library for aql-0.1.0.0.. @(src/Stack/Build/Execute.hs:1141:34) 2018-10-11 04:31:21.301221: [info] ignoring (possibly broken) abi-depends field for packages @(src/Stack/Build/Execute.hs:1141:34) 2018-10-11 04:31:21.318168: [info] Preprocessing executable 'aql-exe' for aql-0.1.0.0.. @(src/Stack/Build/Execute.hs:1141:34) 2018-10-11 04:31:21.318286: [info] Building executable 'aql-exe' for aql-0.1.0.0.. @(src/Stack/Build/Execute.hs:1141:34) 2018-10-11 04:31:21.792924: [info] Preprocessing test suite 'aql-test' for aql-0.1.0.0.. @(src/Stack/Build/Execute.hs:1141:34) 2018-10-11 04:31:21.793184: [warn] Cabal-simple_mPHDZzAJ_2.2.0.1_ghc-8.4.3: can't find source for @(src/Stack/Build/Execute.hs:1140:34) 2018-10-11 04:31:21.793318: [warn] Parser/SchemaSpec in test, @(src/Stack/Build/Execute.hs:1140:34) 2018-10-11 04:31:21.793536: [warn] .stack-work/dist/x86_64-osx/Cabal-2.2.0.1/build/aql-test/autogen, @(src/Stack/Build/Execute.hs:1140:34) 2018-10-11 04:31:21.793636: [warn] .stack-work/dist/x86_64-osx/Cabal-2.2.0.1/build/global-autogen @(src/Stack/Build/Execute.hs:1140:34) 2018-10-11 04:31:21.793863: [warn] @(src/Stack/Build/Execute.hs:1140:34) Progress 1/2

-- While building custom Setup.hs for package aql-0.1.0.0 using: /Users/ryan/.stack/setup-exe-cache/x86_64-osx/Cabal-simple_mPHDZzAJ_2.2.0.1_ghc-8.4.3 --builddir=.stack-work/dist/x86_64-osx/Cabal-2.2.0.1 build lib:aql exe:aql-exe test:aql-test --ghc-options " -ddump-hi -ddump-to-file -fdiagnostics-color=always" Process exited with code: ExitFailure 1 Ryans-MacBook:statebox_aql ryan$

On Oct 11, 2018, at 4:29 AM, Marco Perone notifications@github.com wrote:

strange, this is not happening on my machine... could you please post here the output of stack test --verbose?

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub, or mute the thread.

marcosh commented 5 years ago

thanks, I'll try to understand what is going on