librelist archives

« back to archive

HELP: Travis CI says 'build status failing' now.

HELP: Travis CI says 'build status failing' now.

From:
ashbb
Date:
2012-10-24 @ 13:05
Hi all,

Travis CI says 'build status failing' now. :(

https://travis-ci.org/#!/shoes/shoes4

    creates .jar smaller than 40MB (FAILED - 1)

But on my Windows 7 laptop, there is no failures like this:

    Finished in 30.34 seconds
    632 examples, 0 failures

Umm,... please help!!

ashbb

Re: [shoes] HELP: Travis CI says 'build status failing' now.

From:
Davor
Date:
2012-10-24 @ 13:45
Why does Windows generate smaller jar-files? :/


This is what I'm getting on OS X:

```
   1) Shoes::Swt::Package::Jar when creating a .jar creates .jar smaller 
than 40MB
      Failure/Error: File.size(output_file).should be < 40 * 1024 * 1024
        expected: < 41943040
             got:   48801921
      # ./spec/swt_shoes/package_jar_spec.rb:34:in `(root)'

Finished in 23.36 seconds
632 examples, 1 failure
```
-- 
Davor Babic
davor@davor.se


ashbb wrote:
> Hi all,
>
> Travis CI says 'build status failing' now. :(
>
> https://travis-ci.org/#!/shoes/shoes4
>
>      creates .jar smaller than 40MB (FAILED - 1)
>
> But on my Windows 7 laptop, there is no failures like this:
>
>      Finished in 30.34 seconds
>      632 examples, 0 failures
>
> Umm,... please help!!
>
> ashbb

Re: [shoes] HELP: Travis CI says 'build status failing' now.

From:
Eric Watson
Date:
2012-10-24 @ 14:34

On Oct 24, 2012, at 8:45 AM, Davor <davor@davor.se> wrote:

> Why does Windows generate smaller jar-files? :/

In my testing, the jar on Mac should be about 36MB. Not sure if it would 
differ on Windows (I would hope not).  I wrote that spec because Warbler 
wants to include everything it can find. So if you get some extra 
artifacts in the project directory, the jar will bloat and bloat. I was 
getting 600MB jars :(

So we might have had some extra files slip into the test project directory. 

It might be better in the long run to move away from Warbler because of 
this. It might be better to require an explicit list if files to include, 
rather than a list of files to exclude. 

Eric

Re: [shoes] HELP: Travis CI says 'build status failing' now.

From:
Davor Babic
Date:
2012-10-24 @ 16:19
Or maby we could just add that functionality to Warbler? Or perhaps ask 
them do do it.
-- 
Davor Babic
davor@davor.se


Eric Watson wrote:
>
> On Oct 24, 2012, at 8:45 AM, Davor<davor@davor.se>  wrote:
>
>> Why does Windows generate smaller jar-files? :/
>
> In my testing, the jar on Mac should be about 36MB. Not sure if it would
differ on Windows (I would hope not).  I wrote that spec because Warbler 
wants to include everything it can find. So if you get some extra 
artifacts in the project directory, the jar will bloat and bloat. I was 
getting 600MB jars :(
>
> So we might have had some extra files slip into the test project directory.
>
> It might be better in the long run to move away from Warbler because of 
this. It might be better to require an explicit list if files to include, 
rather than a list of files to exclude.
>
> Eric

Re: [shoes] HELP: Travis CI says 'build status failing' now.

From:
Eric Watson
Date:
2012-10-24 @ 16:45
On Oct 24, 2012, at 11:19 AM, Davor Babic <davor@davor.se> wrote:

> Or maby we could just add that functionality to Warbler? Or perhaps ask 
> them do do it.

Yes, we could definitely do that. I'm not sure if that is a feature they 
want in Warbler itself or not. They are not actively processing issues at 
the moment, but I'm not sure why. Steve could probably resque that 
situation ;)

But we could add that functionality to our Shoes Warbler trait (which I am
using kind of like a plugin) and demonstrate how it works to see if they 
are interested.

You're right, too, that we could also modify the files after jar 
creation...but we might as well do it on the front end--it's totally 
doable :)

Eric

Re: [shoes] HELP: Travis CI says 'build status failing' now.

From:
Davor Babic
Date:
2012-10-24 @ 16:30
Another solution would be to open up the jar-file (since it's just a 
zip-file) and remove everything that isn't in our include list.
-- 
Davor Babic
davor@davor.se


Eric Watson wrote:
>
> On Oct 24, 2012, at 8:45 AM, Davor<davor@davor.se>  wrote:
>
>> Why does Windows generate smaller jar-files? :/
>
> In my testing, the jar on Mac should be about 36MB. Not sure if it would
differ on Windows (I would hope not).  I wrote that spec because Warbler 
wants to include everything it can find. So if you get some extra 
artifacts in the project directory, the jar will bloat and bloat. I was 
getting 600MB jars :(
>
> So we might have had some extra files slip into the test project directory.
>
> It might be better in the long run to move away from Warbler because of 
this. It might be better to require an explicit list if files to include, 
rather than a list of files to exclude.
>
> Eric

Re: [shoes] HELP: Travis CI says 'build status failing' now.

From:
ashbb
Date:
2012-10-24 @ 14:00
Hi Davor,

You were a big help! Thanks!

> Why does Windows generate smaller jar-files? :/
Umm,... mysterious Windows. :-P

ashbb