Ticket #39 (closed defect: fixed)

Opened 6 years ago

Last modified 4 years ago

reconfig reports incorrect changes between locks

Reported by: darraghbailey Owned by: warner
Priority: patches-accepted Milestone: 0.8.+
Version: Keywords:
Cc:

Description

When performing a reconfig after updating the locks being used to include a new lock the following was the output into the log file and onto the screen.

locks changed from [(<class buildbot.locks.MasterLock at 0x2000000000fed350>, 'serverbuilds'), 
(<class buildbot.locks.MasterLock at 0x2000000000fed350>, 'machine3_serverbuilds'),
 (<class buildbot.locks.MasterLock at 0x2000000000fed350>, 'machine3')] to 
[(<class buildbot.locks.MasterLock at 0x2000000000fed350>, 'serverbuilds'), 
(<class buildbot.locks.MasterLock at 0x2000000000fed350>, 'machine3')]

It should read

locks changed from [(<class buildbot.locks.MasterLock at 0x2000000000fed350>, 'serverbuilds'), 
(<class buildbot.locks.MasterLock at 0x2000000000fed350>, 'machine3')] to 
[(<class buildbot.locks.MasterLock at 0x2000000000fed350>, 'serverbuilds'), 
(<class buildbot.locks.MasterLock at 0x2000000000fed350>, 'machine3_serverbuilds'), 
(<class buildbot.locks.MasterLock at 0x2000000000fed350>, 'machine3')]

Since I was adding the new lock machine3_serverbuilds, not removing it.

Attachments

buildbot-reconfig-locks-reorder.patch Download (733 bytes) - added by darraghbailey 6 years ago.
patch to print the correct order

Change History

Changed 6 years ago by darraghbailey

patch to print the correct order

comment:1 Changed 6 years ago by darraghbailey

I haven't tested the patch, but looking at the preceeding code I believed it was safe to assume that the new settings come from setup and the old from self.

comment:2 Changed 6 years ago by warner

  • Milestone set to 0.8.0

comment:3 Changed 4 years ago by dustin

  • Milestone changed from 0.8.0 to 0.7.+

comment:4 Changed 4 years ago by dustin

  • Status changed from new to closed
  • Resolution set to fixed
commit 966747f09029f8bbc267cff5e9b35d3853de855a
Author: Darragh Bailey <dbailey@hp.com>
Date:   Tue Feb 3 15:10:13 2009 -0500

    (fixes #39) patch to print the correct order
Note: See TracTickets for help on using tickets.