Edgewall Software
Modify

Opened 15 years ago

Closed 15 years ago

Last modified 12 years ago

#382 closed defect (fixed)

[patch] wrong count of pending builds

Reported by: silk <silk@…> Owned by: cmlenz
Priority: major Milestone: 0.6
Component: Trac plugin Version: dev
Keywords: pending counter Cc:
Operating System: Linux

Description

Just updated to latest trunk. The pending builds counter seems nice, but the count is wrong.

Example: 15 pending builds ( Linux mono 2.2: 1 )

What may be wrong:

  • I have this build configuration set up with "oldest revision" set up, to not build some few hundreds of old revisions
  • I have a 600s time wait for stabilization.

I can try to find out more, if this is not enough info.

Attachments (2)

bug382.patch (526 bytes) - added by silk <silk@…> 15 years ago.
delete pending builds, when deleting platform
bug382.2.patch (2.5 KB) - added by silk <silk@…> 15 years ago.
with unittest

Download all attachments as: .zip

Change History (8)

comment:1 Changed 15 years ago by wbell

Interesting; I haven't tried it with not building old revisions. Right now, it's grabbing all the pending builds in the database and matching them up to the platforms of each config. Is it possible that you have old builds that are outside of your current build range (revision wise) that haven't been cleaned up? I know back when there were definitely some times where the master wouldn't delete builds that were outside of the revision range of a configuration.

In any case, more info would be useful, especially what the output of SELECT * FROM bitten_build WHERE state='P when the pending number disagrees with the platform number. A dump of the platform table would be helpful as well.

comment:2 Changed 15 years ago by silk <silk@…>

Ok, I looked at the tables, my first shot was wrong.

The problem is, that I had deleted platform when it had pending builds.

I had 3 platforms for one configuration, but slave for one was down for some time, so pending build accumulated. Then I decided this platform is being dropped from support, so I deleted it. But previous pending builds remained.

Patch follows.

Changed 15 years ago by silk <silk@…>

delete pending builds, when deleting platform

comment:3 Changed 15 years ago by silk <silk@…>

  • Summary changed from wrong count of pending builds to [patch] wrong count of pending builds

comment:4 Changed 15 years ago by dfraser

Looks good. Since bitten's serious about unit testing, it would be nice if there was a test case that checked that this happens too :-)

comment:5 Changed 15 years ago by silk <silk@…>

True :)

Here it goes.

Changed 15 years ago by silk <silk@…>

with unittest

comment:6 Changed 15 years ago by dfraser

  • Resolution set to fixed
  • Status changed from new to closed

Great, applied with some minor changes as r627

Add Comment

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain cmlenz.
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.