Fork me on GitHub
#tools-deps
<
2018-03-23
>
borkdude15:03:57

I just tested the linux installer in a docker container openjdk:10

borkdude15:03:04

That worked. In openjdk:9 I got: Caused by: javax.net.ssl.SSLException: java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty

borkdude15:03:25

root@e01c1c54f80f:/# time clojure -e "(System/getProperty \"java.version\")"
"1.8.0_162"

real	0m1.367s
user	0m1.260s
sys	0m0.680s
root@32fd769f2834:/# time clojure -e “(System/getProperty \“java.version\“)”
“10"

real	0m1.178s
user	0m1.490s
sys	0m0.480s

Alex Miller (Clojure team)15:03:18

@dominicm sorry for non-response above - I saw it but got distracted before answering and then the notifier was gone so forgot about it. :) I don’t test the linux installer very well (just in a vm) and would appreciate any help in making it better.

dominicm16:03:59

Okay, I'll have a think.

Alex Miller (Clojure team)15:03:01

@borkdude if you’re trying to compare times, make sure that you’re comparing cached classpath in both cases by running more than once

Alex Miller (Clojure team)15:03:21

they mentioned that jvm startup times should be expected to be better in java 10 than java 9

borkdude15:03:46

I’m comparing 8 and 9 here with just vanilla clojure after it downloaded the bootstrap dependencies

borkdude15:03:07

it seems to be a little bit better

borkdude15:03:39

this is openjdk, no idea if there is any difference with the Oracle JDK

borkdude15:03:45

not a JVM expert

borkdude15:03:30

it’s very easy to spin up a Docker: docker run -it openjdk:10 /bin/bash and then do the clj linux installer

tianshu16:03:25

how to do test with tools.deps?

Alex Miller (Clojure team)16:03:40

What are you trying to test?

tianshu16:03:19

I'm trying to use tools.deps instead of lein. I just want to run test like lein test.

Alex Miller (Clojure team)16:03:54

Check out the test-runner project

tianshu16:03:10

this is exactly what I'm looking for, thanks!

tianshu16:03:31

when I use git/url, met an error

org.eclipse.jgit.api.errors.TransportException: [email protected]:cognitect-labs/test-runner: UnknownHostKey: . RSA key fingerprint is
I just have get the :sha with git rev-parse HEAD.

tianshu16:03:55

I'm confused what should I do?

Alex Miller (Clojure team)16:03:42

@ghadi had a list of git connection issues in the back chat

Alex Miller (Clojure team)16:03:35

In this case looks like maybe you’re using the ssh url when the https would be better

ghadi16:03:54

https would work because that repo is public

ghadi16:03:28

otherwise try ssh-keyscan -H >> ~/.ssh/known_hosts (I'm a bit surprised that http://github.com isn't in known_hosts -- perhaps you're containerized?)

Alex Miller (Clojure team)16:03:49

I will update the test-runner read me to use https too

Alex Miller (Clojure team)16:03:14

No reason for an ssh url there

tianshu16:03:24

I wonder where tools.deps put the git dependencies?

tianshu16:03:46

maybe I can find it with clj -Spath

tianshu16:03:36

okay, found it.

tianshu16:03:10

thanks a lot.

dominicm17:03:57

I opened an issue for that @alexmiller

seancorfield23:03:50

@doglooksgood take a look at the deps.edn file in each of core.cache, core.memoize, and java.jdbc for examples of multiversion testing with clj and test-runner -- I recently converted all of those from Leiningen.