datahike

https://datahike.io/, Join the conversation at https://discord.com/invite/kEBzMvb, history for this channel is available at https://clojurians.zulipchat.com/#narrow/stream/180378-slack-archive/topic/datahike
coby 2021-02-07T20:52:08.034500Z

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.

timo 2021-02-08T09:50:39.034900Z

easiest way is ./bin/run-unittests

timo 2021-02-08T09:53:49.035100Z

so this seems to work for me TIMBRE_LEVEL=':fatal' ./bin/kaocha --focus :clj --watch

timo 2021-02-08T09:54:34.035300Z

you might want to avoid the exception messages that we are testing on with a higher TIMBRE_LEVEL

timo 2021-02-08T11:25:31.035500Z

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

timo 2021-02-08T11:25:43.035700Z

./bin/run-unittests --watch works now

timo 2021-02-08T11:27:24.035900Z

Looking forward to your contribution!

1
coby 2021-02-12T00:54:24.038300Z

sweet, I will pull the latest and have another crack at it this weekend! Thanks!

coby 2021-02-14T21:07:17.039900Z

Just an issue with my clj being out of date, sorry for the spam!

👍 1