This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-02-07
Channels
- # announcements (6)
- # babashka (17)
- # beginners (72)
- # calva (27)
- # cider (26)
- # circleci (6)
- # clj-kondo (35)
- # cljdoc (3)
- # clojure (22)
- # clojure-australia (2)
- # clojure-dev (45)
- # clojure-france (2)
- # clojure-italy (2)
- # clojurescript (60)
- # conjure (16)
- # cursive (8)
- # datahike (10)
- # datascript (1)
- # datomic (3)
- # emacs (5)
- # fulcro (16)
- # graalvm (4)
- # honeysql (1)
- # joker (10)
- # luminus (3)
- # malli (7)
- # off-topic (28)
- # pathom (4)
- # pedestal (2)
- # polylith (1)
- # re-frame (6)
- # reagent (9)
- # reveal (4)
- # shadow-cljs (48)
- # slack-help (1)
- # tools-deps (30)
- # vim (24)
Hey folks, trying to run the datahike tests locally with clj -A:test -m kaocha.runner --watch
and getting:
[(.....)(......)([watch] Fatal error in test run #error {
:cause FATAL: role "alice" does not exist
:via
[{:type org.postgresql.util.PSQLException
:message FATAL: role "alice" does not exist
:at [org.postgresql.core.v3.QueryExecutorImpl receiveErrorResponse QueryExecutorImpl.java 2468]}]
:trace
[ (... BIG OL STACKTRACE ...) ]}
It seems to be complaining about a Postgres backend that I assume doesn't exist, as I definitely did not do anything manually to set up a Postgres db. Was going to try to start on the PR I mentioned on Wednesday...thoughts? The https://github.com/replikativ/datahike/blob/development/doc/contributing.md doesn't mention anything about how to run tests.you might want to avoid the exception messages that we are testing on with a higher TIMBRE_LEVEL
I just add the tests to the contribution page :thumbsup: thanks for pointing that out. Also I changed the script so that you can run a watch with it as well
OK, digging into the test suite now and I see that the integration tests are expected to run inside a docker container. So it makes sense why that error would happen without some manual setup.
I pulled the latest on development
and ran ./bin/tun-unittests
which gave me this error:
Execution error (FileNotFoundException) at clojure.main/main (main.java:40).
Could not locate kaocha/runner__init.class, kaocha/runner.clj or kaocha/runner.cljc on classpath.
Full report at:
/tmp/clojure-16371792498407115921.edn
Same if I run clojure -M:test -m kaocha.runner --focus :clj
directly. Weird.
Changing -M:test
to -A:test
fixes it for me. I'm a little fuzzy on the distinction (will follow up in #tools-deps) but it doesn't seem relevant to the production code so I'll carry on with running tests this way.OK, digging into the test suite now and I see that the integration tests are expected to run inside a docker container. So it makes sense why that error would happen without some manual setup.
I pulled the latest on development
and ran ./bin/tun-unittests
which gave me this error:
Execution error (FileNotFoundException) at clojure.main/main (main.java:40).
Could not locate kaocha/runner__init.class, kaocha/runner.clj or kaocha/runner.cljc on classpath.
Full report at:
/tmp/clojure-16371792498407115921.edn
Same if I run clojure -M:test -m kaocha.runner --focus :clj
directly. Weird.
Changing -M:test
to -A:test
fixes it for me. I'm a little fuzzy on the distinction (will follow up in #tools-deps) but it doesn't seem relevant to the production code so I'll carry on with running tests this way.