These are chat archives for etorreborre/specs2

23rd
Apr 2018
Marko Dimjašević
@mdimjasevic
Apr 23 2018 07:49
hi @etorreborre ! Probably you've seen that ScalaCheck had its 1.14.0 release yesterday. That's great because there's no more need for a fork. Today I'll work on adding support for that initial seed to specs2.
Eric Torreborre
@etorreborre
Apr 23 2018 07:56
Yes I saw that, great news :-)
don’t hesitate to ask if you are blocked on the specs2 side
Marko Dimjašević
@mdimjasevic
Apr 23 2018 07:59
sure!
Marko Dimjašević
@mdimjasevic
Apr 23 2018 09:20
@etorreborre : unless I got something wrong, the current version of the master branch doesn't compile. Are you aware of it?
Eric Torreborre
@etorreborre
Apr 23 2018 09:20
No, let me check
I’m checking locally on my laptop
Marko Dimjašević
@mdimjasevic
Apr 23 2018 09:21
Eric Torreborre
@etorreborre
Apr 23 2018 09:22
did you do a clean/compile?
Marko Dimjašević
@mdimjasevic
Apr 23 2018 09:23
yes
btw, I just noticed your branch scalacheck-use-seed. Have you already implemented this?
Eric Torreborre
@etorreborre
Apr 23 2018 09:23
I honestly don’t remember, I might have done an exploration
everything seems to be compiling fine for me
Marko Dimjašević
@mdimjasevic
Apr 23 2018 09:25
You pretty much seem to have implemented it: oradian/specs2@6e68894
Eric Torreborre
@etorreborre
Apr 23 2018 09:27
Hmm, yes looks like it, let me merge then, publish an interim release for you to test then
Marko Dimjašević
@mdimjasevic
Apr 23 2018 09:27
thanks!
Eric Torreborre
@etorreborre
Apr 23 2018 10:25
@mdimjasevic we have a failing test with the latest ScalaCheck: upgrade-scalacheck-1.14-set-seed. See ScalaCheckMatchersApiSpec where we use ==>. Could you please have a look at that?
Marko Dimjašević
@mdimjasevic
Apr 23 2018 12:18
What branch in the specs2 repo is that?
upgrade-scalacheck-1.14-set-seed?
Eric Torreborre
@etorreborre
Apr 23 2018 12:31
yes that one
Marko Dimjašević
@mdimjasevic
Apr 23 2018 12:49
looking at it
Eric Torreborre
@etorreborre
Apr 23 2018 13:08
thanks
Marko Dimjašević
@mdimjasevic
Apr 23 2018 13:16
I can run testOnly *ScalaCheckMatchersApiSpec*, but after it is done, the sbt doesn't return. Any clue why?
Eric Torreborre
@etorreborre
Apr 23 2018 13:23
No, it works ok for me
can you try jstack and see if there’s a deadlock somewhere?
Marko Dimjašević
@mdimjasevic
Apr 23 2018 13:24
I don't know what jstack is
Got this when I triggered Ctrl+C: https://paste.debian.net/1021634/
Eric Torreborre
@etorreborre
Apr 23 2018 13:28
I don’t know what to deduce from that unfortunately, I am wondering if several threads are actually competing to shutdown the execution environment. I have noticed some slowdowns at the end of a run but not a block
Marko Dimjašević
@mdimjasevic
Apr 23 2018 13:35
Can't figure out what is happening in this spec. Is this the branch I should base my extension on?
Eric Torreborre
@etorreborre
Apr 23 2018 13:36
Yes it is, this is a merge from the latest on master + the use seed branch with a modification on how the user seed is stored. Maybe you can try to run the same spec on master alone?
Marko Dimjašević
@mdimjasevic
Apr 23 2018 13:36
let me give it a try
Eric Torreborre
@etorreborre
Apr 23 2018 13:47
one thing you can also try if that helps is to pass specs2threadsnb 1 on the command line
sbt> testOnly * ScalaCheckMatchersApiSpec — specs2threadsnb 1
Marko Dimjašević
@mdimjasevic
Apr 23 2018 13:59
Can I somehow avoid running anything Scala.js-related?
or even better, can I run only the JVM target?
Marko Dimjašević
@mdimjasevic
Apr 23 2018 14:08
It takes bloody ages to run anything in sbt in specs2. Not sure if it has to do with specs2 or if it's something else.
Anyhow, there were no failures for ScalaCheckMatchersApiSpec from the master branch
sbt in specs2 is so slow it gets really irritating. I can go and make myself a coffee every time I run a simple command in it.
Eric Torreborre
@etorreborre
Apr 23 2018 14:46
maybe you need to check your Xmx parameters and make sure sbt has enough memory, otherwise it could spend a lot of time garbage collecting
Marko Dimjašević
@mdimjasevic
Apr 23 2018 14:50
Can you put this to the project's .sbtopts please? It will make it much easier to reproduce and report such issues.
Eric Torreborre
@etorreborre
Apr 23 2018 14:55
I added a sbtopts file with -Xmx4G on that branch if you want to try it out