Build failure from Rspec with "0 failures" ?

11 views
Skip to first unread message

Peter Fitzgibbons

unread,
Jun 25, 2009, 10:24:24 AM6/25/09
to Cerberus
Hello all,
cerb reports successful: false on my build (from status.log) even
though my rake spec result is "291 examples, 0 failures"

Do any of you have an idea on this?


status.log .....................
---
successful_build_timestamp:
timestamp: 2009-06-25 08:08:51.609662 -05:00
successful: false
brokeness:
revision: 022694ad
successful_build_revision:

logs/20090625080851-broken.log (snipped) ......................
Git commit message (fixes #111)
diff...
(in /Users/deployer/.cerberus/work/webapp/sources)
Profiling enabled.
..................................................................................................................................................
.................................................................................................................................................


Top 10 slowest examples:
6.0324890 Setting should update the modified_time_unix attribute after
destroy
3.0633630 Recorded should update the modified_time_unix whenever the
wildcard value is updated in nvp
3.0267280 Setting should update the modified_time_unix attribute after
save
0.8593440 Audit searching for auditables should find audits for a
deleted package and its children
0.7079580 Package a fully activatable valid package should delete all
child records when destroyed
0.3543940 POST create should audit a time segment split
0.3363000 Package a fully activatable valid package should insert into
the db successfully
0.3159420 Audit searching for auditables should find audits for a
deleted number
0.2989840 Audit searching for auditables should find all auditables in
1 week as default
0.2906990 POST create should audit the created profile

Finished in 35.621931 seconds

291 examples, 0 failures

Craig Jolicoeur

unread,
Jun 25, 2009, 10:32:36 AM6/25/09
to cerbe...@googlegroups.com
Two things.

First, can you try to force a rebuild: "cerberus build _project_name_
--force" to see if you get the same result
Second, can you copy your project config file as well?

- Craig

Peter Fitzgibbons

unread,
Jun 25, 2009, 10:42:46 AM6/25/09
to cerbe...@googlegroups.com
HI Craig, all,

The output above/below is the result of 'cerberus build webapp --force'

config.yml .......................
publisher:
#  active: mail jabber rss campfire
  mail:
    address: smtp.mydomain
    port: 25
    domain: mydomain.com
    authentication: :none
    sender: Cerberus CI <cerb...@mydomain.com>
builder:
  rake:
    task: db:migrate spec

webapp.yml .....................
--- 
publisher: 
  mail: 
    recipients: peter.fi...@gmail.com
scm: 
  url: g...@redmine.mydomain.com:webapp/.git
  type: git
builder:
  rake:
    task: db:migrate spec


Peter Fitzgibbons
(847) 687-7646
Email: peter.fi...@gmail.com
IM GTalk: peter.fitzgibbons
IM Yahoo: pjfitzgibbons
IM MSN: pjfitz...@hotmail.com
IM AOL: peter.fi...@gmail.com

Craig Jolicoeur

unread,
Jun 25, 2009, 10:54:22 AM6/25/09
to cerbe...@googlegroups.com
Peter,

What version of Cerberus are you running? 0.6?

If you are using rspec, can you try using the rspec builder instead of
the rake builder? The rspec builder matcher for error checking only
looks for the 0 failures line and should get you to pass. The rake
builder is assuming unit tests and checks for both "0 failures, 0
error" which is why we added the dedicated rspec builder.

There has been some discussion about removing this check completely
from the rake builder and simply checking for an aborted message and
the exitstatus of the command. I think we are leaning in that
directly, but the latest version of cerberus (0.6) doesnt include
that.

If you are using rspec, I would use the rspec builder since that is
what it's designed for.

Let me know how you make out.

- Craig

On Thu, Jun 25, 2009 at 10:42 AM, Peter

Peter Fitzgibbons

unread,
Jun 25, 2009, 11:53:20 AM6/25/09
to cerbe...@googlegroups.com
HI Craig,

I changed to :builder :rspec, same result.

Is there something else required after changing webapp.yml ?

webapp.yml .............. (new)
--- 
publisher: 
  mail: 
    recipients: peter.fi...@gmail.com
scm: 
  url: g...@redmine.vailsys.com:racc-webapp/.git
  type: git
builder:
  rspec:
    task: db:migrate spec


Peter Fitzgibbons
(847) 687-7646
Email: peter.fi...@gmail.com
IM GTalk: peter.fitzgibbons
IM Yahoo: pjfitzgibbons
IM MSN: pjfitz...@hotmail.com
IM AOL: peter.fi...@gmail.com


Craig Jolicoeur

unread,
Jun 25, 2009, 12:01:00 PM6/25/09
to cerbe...@googlegroups.com
And just to help me debug, what version of Cerberus are you running?

On Thu, Jun 25, 2009 at 11:53 AM, Peter

Peter Fitzgibbons

unread,
Jun 25, 2009, 1:24:45 PM6/25/09
to cerbe...@googlegroups.com
0.6

Peter Fitzgibbons
(847) 687-7646
Email: peter.fi...@gmail.com
IM GTalk: peter.fitzgibbons
IM Yahoo: pjfitzgibbons
IM MSN: pjfitz...@hotmail.com
IM AOL: peter.fi...@gmail.com


Craig Jolicoeur

unread,
Jun 25, 2009, 1:57:37 PM6/25/09
to cerbe...@googlegroups.com
Very strange issue Peter.

I ran your sample output through the rspec test and it passes through
the tests fine. So, I'm not sure why you are having the error.

I have to believe there is something else we are just missing.

I don't suppose the repository you are running this off of is public?
If it was I could try to pull down and pull it myself, but my guess is
that it's probably a private repository.

If you want, can you zip up both your main cerberus config.yml file,
webapp.yml file, your status.log and brokeness.log and send them over
to me. You can of course edit out any personal info for your SMTP
servers or passwords. You can email them directly to me if you want
instead of sending them out on the mailing list
(cpjol...@gmail.com).

I'm also on GTalk at cpjolicoeur and AIM at cpjolicoeur if you wanted
to chat about it. I'm not sure why you are getting failures as it
should be passing the rspec builder fine and the output passes all the
tests.

- Craig

Craig Jolicoeur

unread,
Jun 29, 2009, 11:03:17 AM6/29/09
to cerbe...@googlegroups.com
Peter,

Just curious how you made out with this issue?

- Craig

On Thu, Jun 25, 2009 at 1:24 PM, Peter
Fitzgibbons<peter.fi...@gmail.com> wrote:

Peter Fitzgibbons

unread,
Jun 29, 2009, 11:12:57 AM6/29/09
to cerbe...@googlegroups.com
HI Craig,

Didn't find any solution.  Our team moved to Cruisecontrol.rb for the moment.  May revisit Cerberus as time permits.

Regards,

Peter Fitzgibbons
(847) 687-7646
Email: peter.fi...@gmail.com
IM GTalk: peter.fitzgibbons
IM Yahoo: pjfitzgibbons
IM MSN: pjfitz...@hotmail.com
IM AOL: peter.fi...@gmail.com


Reply all
Reply to author
Forward
0 new messages