These are chat archives for sbt/sbt

30th
Apr 2015
Jacek Laskowski
@jaceklaskowski
Apr 30 2015 07:14
Hi
I’m wondering if there’s a way to run it:test in parallel across projects in multi-project build?
what I did so far was to define an alias using addCommandAlias
but that creates confusion since people would have to look at the build configuration to learn about the command/alias
and keep doing it:test that we don’t want from the aggregate root project
ideas welcome
I’m thinking about aliasing it:test in the root project using test in IntegrationTest <<= …dependsOn
but that in turn requires listing all the (sub)projects
Jacek Laskowski
@jaceklaskowski
Apr 30 2015 07:20
that might not be very maintenance-friendly where a new subproject is added and one forgets about adding it to the list
Josh Suereth
@jsuereth
Apr 30 2015 11:52
you can disable aggregation in the root project. YOu can also use the "all" command to run multiple tasks in parallel
eugene yokota
@eed3si9n
Apr 30 2015 15:04
@jaceklaskowski That topic sounds like a one for Stackoverflow
Miles Sabin
@milessabin
Apr 30 2015 20:19
I'm back to having failures fetching 2.10.4 on Travis again I'm afraid. Could this be related to the move to Bintray announced for today?
eugene yokota
@eed3si9n
Apr 30 2015 20:20
I am not sure. the only thing we moved was repo.typesafe.com stuff. org.scala-lang stuff are all on Maven Central
Miles Sabin
@milessabin
Apr 30 2015 20:21
Gotcha.
eugene yokota
@eed3si9n
Apr 30 2015 20:21
if you have reproduction steps (or some ideas around it), could you open an issue?
Miles Sabin
@milessabin
Apr 30 2015 20:23

The issue is that these builds were just fine until yesterday and now they're failing because,

Getting Scala 2.10.4 (for sbt)...
:: retrieving :: org.scala-sbt#boot-scala
    confs: [default]
    0 artifacts copied, 5 already retrieved (0kB/13ms)
Error: Could not retrieve Scala 2.10.4: missing scala.tools.nsc.Global

The reproduction is "Restart Job".

Josh Suereth
@jsuereth
Apr 30 2015 20:31
@milessabin I'm seeing the same issue
And I have no idea what the heck is happening on travis
If you find anything, can you ping here? I'm investigating further
Miles Sabin
@milessabin
Apr 30 2015 20:31
OK, will do.
eugene yokota
@eed3si9n
Apr 30 2015 20:32
The branch I'm working on passed on the first try today - https://travis-ci.org/sbt/sbt/jobs/60742590
Miles Sabin
@milessabin
Apr 30 2015 20:32
They do seem to have been having some infrastructure issues, so maybe it'll sort itself out soon.
eugene yokota
@eed3si9n
Apr 30 2015 20:32
comparing what's going on with shapeless's https://travis-ci.org/milessabin/shapeless/jobs/60704219
Josh Suereth
@jsuereth
Apr 30 2015 20:33
from 5 minutes ago
Miles Sabin
@milessabin
Apr 30 2015 20:34
This suggest that things are a bit choppy at the moment: https://twitter.com/search?src=typd&q=traviscistatus
eugene yokota
@eed3si9n
Apr 30 2015 20:36

what's funky with the shapless build is that ivy says that you already have the JAR, but when sbt opens it it doesn't have Global:

Getting Scala 2.10.4 (for sbt)...
:: retrieving :: org.scala-sbt#boot-scala
    confs: [default]
    0 artifacts copied, 5 already retrieved (0kB/13ms)
Error: Could not retrieve Scala 2.10.4: missing scala.tools.nsc.Global

Note 5 already retrieved

Miles Sabin
@milessabin
Apr 30 2015 20:36
One additional oddity in the shapeless case is that the JDK6 builds (which are otherwise identical) are also fine.
Do you think it might be a corrupted cache?
eugene yokota
@eed3si9n
Apr 30 2015 20:37
it's a possibility. could you try clearing it manually?
Miles Sabin
@milessabin
Apr 30 2015 20:37
How do I do that?
Miles Sabin
@milessabin
Apr 30 2015 20:38
Ha! Thanks!
Miles Sabin
@milessabin
Apr 30 2015 20:48
No change unfortunately.
eugene yokota
@eed3si9n
Apr 30 2015 20:52

it still says

attempting to download cache archive
fetching master/cache--jdk-oraclejdk7--scala-2.11.6.tbz
found cache

so maybe Travis has default cache that's broken? not sure

Miles Sabin
@milessabin
Apr 30 2015 20:54
I deleted the cache for my master branch and it doesn't show up under /caches any more.
So could be ...
I could try disabling caching altogether I guess.
eugene yokota
@eed3si9n
Apr 30 2015 20:55
I had to refresh the page several times
Miles Sabin
@milessabin
Apr 30 2015 20:56
Oh, cool ... correlation isn't causation, but maybe that did it :-)
eugene yokota
@eed3si9n
Apr 30 2015 20:57
at least it didn't start magically working when we tried to observe it
Miles Sabin
@milessabin
Apr 30 2015 20:59
:laughing:
Miles Sabin
@milessabin
Apr 30 2015 21:11
shapeless builds on Travis now back to normal ... thanks for the help :-)
eugene yokota
@eed3si9n
Apr 30 2015 21:11
no problem
Michael Loster
@milost
Apr 30 2015 22:29
Hey there, quick question what's the correct way to express that task A depends on task B in sbt 13? I looked in the docs but couldn't find anything?
eugene yokota
@eed3si9n
Apr 30 2015 22:33
@bitbender could you open a Stackoverflow question for that with some example? specifically do you have the control over task A? or are you trying to force sequencing between two task executions?