Ticket #2237 (reopened enhancement)

Opened 15 months ago

Last modified 2 months ago

Schedulers should have names and reconfigService methods

Reported by: dustin Owned by:
Priority: major Milestone: 0.9.0
Version: 0.8.5 Keywords: reconfig, sprint
Cc:

Description

Rather than using comparableMixin to try to figure out if schedulers are "the same", Buildbot should use scheduler names. And the schedulers which remain present before and after a reconfig should get reconfigService called to look at any config changes.

Change History

comment:1 Changed 15 months ago by dustin

  • Keywords reconfig added; github removed

comment:2 Changed 8 months ago by dustin

  • Milestone changed from 0.8.+ to 0.9.0

We'll need this in nine when schedulers get entries in the 'schedulers' table.

comment:3 Changed 3 months ago by dustin

  • Keywords reconfig, sprint added; reconfig removed

comment:4 Changed 2 months ago by dustin

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

comment:5 Changed 2 months ago by keeper

Hi Dustin,

This is not fixed already. commit which you linked explicitly says about it:

Schedulers are still stopped and re-started at every reconfiguration;
this may be changed in the future.

This problem is seen in configurations with many triggered builders. Once reconfiguration is done - builder which triggered another build and waits for finish will be aborted.

comment:6 Changed 2 months ago by dustin

  • Status changed from closed to reopened
  • Resolution fixed deleted

You're right, that only half-fixed the problem:

+        # find any schedulers that don't know how to reconfig, and, if they
+        # have changed, add them to both removed and added, so that we
+        # run the new version.  While we're at it, find any schedulers whose
+        # fully qualified class name has changed, and consider those a removal
+        # and re-add as well. 

So, schedulers with a reconfigService method won't get removed and re-added, but so far none of the schedulers have such a method.

comment:7 Changed 2 months ago by dustin

Thanks for calling me out on that error, by the way!

Note: See TracTickets for help on using tickets.