These are chat archives for jruby-gradle/jruby-gradle-plugin

22nd
Jul 2015
R. Tyler Croy
@rtyler
Jul 22 2015 13:04
@ysb33r have you tested your gradleTest plugin with multiproject builds much? I'm debugging why none of my test cases are found in a subproject but they are in another :/
Schalk W. Cronjé
@ysb33r
Jul 22 2015 13:42
not much
R. Tyler Croy
@rtyler
Jul 22 2015 14:16
@ysb33r if you run ./gradlew jruby-gradle-jar-plugin:gradleTest in HEAD of master you should see no tests execute, despite one being present
fwiw
Schalk W. Cronjé
@ysb33r
Jul 22 2015 14:49
for sanity just delete jruby-gradle-jar-plugin/build/gradleTest and then do ./gradlew jruby-gradle-jar-plugin:gradleTest —rerun-tasks.
I know it’s a bit lame, but that will tell me whether it is an issue with determining whether gradleTest tasks are up to date
R. Tyler Croy
@rtyler
Jul 22 2015 14:50
will give it a whirl
@ysb33r nope, full clean and still no tests being run
Schalk W. Cronjé
@ysb33r
Jul 22 2015 14:51
grrr...
checking that now on my machine
R. Tyler Croy
@rtyler
Jul 22 2015 14:53
my hunch is that the tests aren't being assigned to subprojects properly, since there's another subproject with the tests (base) that do get exeuted
Schalk W. Cronjé
@ysb33r
Jul 22 2015 14:53
mmm… reproduced it
interestingly I see
gradleTest: Preparing infrastructure for compatibility testing
gradleTest Compatibility Test Executor finished execuring tests
R. Tyler Croy
@rtyler
Jul 22 2015 14:54
yep, I see that too
Schalk W. Cronjé
@ysb33r
Jul 22 2015 14:54
which means that the task actually executes, just that it does not actually get to executing the gradle shells
Please log an issue on ysb33r/gradleTest
R. Tyler Croy
@rtyler
Jul 22 2015 14:59
filed
Schalk W. Cronjé
@ysb33r
Jul 22 2015 15:03
is there a symlink inside src/gradleTest?
yip, there is...
and it is pointing to a non-existent directory
that would screw it
R. Tyler Croy
@rtyler
Jul 22 2015 15:10
it points to an existing dir
with stuff in it!
➜  gradleTest git:(master) ls -lah self-executing-jar 
lrwxrwxrwx 1 tyler tyler 36 Jul 21 21:49 self-executing-jar -> ../../../examples/self-executing-jar
➜  gradleTest git:(master) ls -lah self-executing-jar/
total 72K
drwxr-xr-x 4 tyler tyler 4.0K Jul 22 06:47 .
drwxr-xr-x 4 tyler tyler 4.0K Jul 21 21:07 ..
-rw-r--r-- 1 tyler tyler 1.4K Jul 22 06:04 build.gradle
-rw-r--r-- 1 tyler tyler  12K Jul 22 06:47 .build.gradle.swo
-rw-r--r-- 1 tyler tyler  12K Jul 22 06:04 .build.gradle.swp
-rw-r--r-- 1 tyler tyler  283 Jul 21 21:47 entrypoint.rb
-rw------- 1 tyler tyler  12K Jul 21 21:47 .entrypoint.rb.swp
drwxr-xr-x 3 tyler tyler 4.0K Jul 21 21:07 gradle
drwxr-xr-x 3 tyler tyler 4.0K Jul 21 21:07 .gradle
-rwxr-xr-x 1 tyler tyler 5.0K Jul 21 21:07 gradlew
-rw-r--r-- 1 tyler tyler 2.4K Jul 21 21:07 gradlew.bat
➜  gradleTest git:(master)
Schalk W. Cronjé
@ysb33r
Jul 22 2015 15:33
../../../examples ??? THat’s outside of the project dir!
and anyways using symlinks will cause it to fail on Windows
Schalk W. Cronjé
@ysb33r
Jul 22 2015 15:41
Also java.io.File does not actaully understand symlinks. It treats it as if it is a normal file.
Schalk W. Cronjé
@ysb33r
Jul 22 2015 16:13
Looks like you have to release a new jruby-gradle-base taking ruby 9k as the default version ….
Schalk W. Cronjé
@ysb33r
Jul 22 2015 16:37
I am stumped by this.
Reading the code for gradleTest is seems to be all good
Haha, found it!
R. Tyler Croy
@rtyler
Jul 22 2015 16:41
?
Schalk W. Cronjé
@ysb33r
Jul 22 2015 16:41
There is no serious bug. You just have not told which version of gradle to test against.
rtyler @rtyler facepamls
rtyler @rtyler facepalms rather
Schalk W. Cronjé
@ysb33r
Jul 22 2015 16:41
I should actually add something to the task though to fail if versions is empty (or to skip)
R. Tyler Croy
@rtyler
Jul 22 2015 16:44
really appreciate the extra set of eyes
that was driving me nuts!
Schalk W. Cronjé
@ysb33r
Jul 22 2015 16:46
Interestingly, there is already a @SkipWhenEmpty annotation on getVersions(), but it did skip the task
Oh bugger
Attached to a task property to indicate 
that the task should be skipped when
 the value of the property is an empty 
FileCollection or directory.
getVersions() return a List<String>.
Right so I have a bug to fix
R. Tyler Croy
@rtyler
Jul 22 2015 17:17
@ysb33r looks like our changes for JRubyJar break on 2.2
shit
R. Tyler Croy
@rtyler
Jul 22 2015 17:26
weiiiiird
that happened when I ran Gradle 2.4 for the parent Gradle
but doesn't happen when I use Gradle 2.0 for the parent Gradle
Schalk W. Cronjé
@ysb33r
Jul 22 2015 17:45
Achievement unlocked!
you’ve found the Jar issue that was introduced in 2.2
R. Tyler Croy
@rtyler
Jul 22 2015 17:47
YAY
Schalk W. Cronjé
@ysb33r
Jul 22 2015 17:47
fixing it is not trivial, but it is surmountable
R. Tyler Croy
@rtyler
Jul 22 2015 17:47
I don't think it's a real problem
since with gradleTest running from the parent gradle at 2.0 works just fine