[Cruisecontrolrb-users] duplicated projects listed on webapp dashboard

Steve Donie steve.donie at gmail.com
Wed Nov 21 10:26:28 EST 2007


Howdy - I've been using cc.rb for a month or two now and just recently
updated to 1.2.1. All was fine until I added lines such as this to several
of my projects:

  # This build is triggered only by the successful completion of the named
project
  project.triggered_by = [SuccessfulBuildTrigger.new(project,
"LightPermits")]

I am trying to do the setup where some of the builds are not triggered by
svn checkins, but rather by a successful build of another project. In this
case, I want a fast unit test build, and then if that succeeds run the
slower integration tests.

The problem I am seeing is that the webapp dashboard is now showing many
duplicates. Instead of the 6 projects that there should be, I am seeing 11.
Strange that it is 11 rather than 12 - it doesn't duplicate all of them - it
seems to not duplicate the one that is first alphabetically.

I've attached a static html version (ccrb.html) of what the dashboard looks
like when it first loads - I got this by using a commandline tool called
graburl. What is interesting is that in both IE and Firefox, when this is
rendered, the first project is rendered differently from the others. Somehow
both IE and Firefox are seeing the first div end prematurely. I don't
understand why - I even pulled the HTML into an XML editor and the tags all
look balanced properly (although there are a couple of <br> tags that are
not self-closing.)

When I view the dashboard in a real browser, I see this view for a few
seconds, and then I think what happens is the PeriodicalExecuter runs and
that is when the duplication happens.

Looking at the javascript, I see this:

page.replace_html('projects', :partial => 'project', :collection =>
@projects) unless @projects.empty?
page.replace_html('projects', :partial => 'no_projects') if @ projects.empty
?

in app/views/projects/index_js.rjs

I'm a complete Ruby newbie, so any help with pointers for debugging things
would be welcome.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/cruisecontrolrb-users/attachments/20071121/87047981/attachment-0002.html 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/cruisecontrolrb-users/attachments/20071121/87047981/attachment-0003.html 


More information about the Cruisecontrolrb-users mailing list