Edgewall Software

Ticket #222 (closed defect: fixed)

Opened 5 years ago

Last modified 3 years ago

Slave connection timeout incorrectly measured

Reported by: dabrahams Owned by: hodgestar
Priority: major Milestone: 0.6
Component: Build master Version: 0.6b2
Keywords: Cc:
Operating System:

Description

The description of the slave connection timeout is "The timeout in seconds after which a build started by a slave is considered aborted, in case there has been no activity from that slave in that time," but in fact Bitten measures the time from the beginning of the build. If you have enough short steps, it's easy for a slave to exceed any given timeout without actually being unresponsive.

Attachments

0007-Add-new-last_activity-field-to-build.-I-considered-r.diff Download (11.2 KB) - added by hodgestar 3 years ago.
Walter's patch.
0007-Add-new-last_activity-field-to-build.-I-considered-r.patch Download (11.2 KB) - added by wbell 3 years ago.
One more try.
0007-Add-new-last_activity-field-to-build.-I-considered-r.2.patch Download (12.0 KB) - added by wbell 3 years ago.
last_activity_patch_v3.diff Download (10.8 KB) - added by hodgestar 3 years ago.
Fixed up database upgrade script, few other minor tweaks.

Change History

Changed 4 years ago by osimons

  • milestone changed from 0.6 to 0.6.1

Changed 3 years ago by hodgestar

  • status changed from new to assigned
  • owner changed from cmlenz to hodgestar
  • version changed from 0.5.3 to 0.6b2
  • os BSD deleted
  • milestone changed from 0.6.1 to 0.6

Patch from Walter being added shortly. Walter's notes:

Add new last_activity field to build. I considered reusing stopped, but this seemed cleaner and more obvious, which seems like the right way to go.

On the completion of every step, last activity is updated to the current time. All orphaning/invalidation based on slave_timeout happens based on that time, not started. Previously, builds were orphaned if it had been more than slave_timeout (config setting) seconds since they had started, now it's since the last interaction (which is actually what the documentation on the field already says.)

This requires a database upgrade.

Changed 3 years ago by hodgestar

Walter's patch.

Changed 3 years ago by hodgestar

See also #411.

Changed 3 years ago by wbell

One more try.

Changed 3 years ago by hodgestar

Fixed up database upgrade script, few other minor tweaks.

Changed 3 years ago by wbell

  • status changed from assigned to closed
  • resolution set to fixed

Fixed as of [840]

Add/Change #222 (Slave connection timeout incorrectly measured)

Author


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


Change Properties
<Author field>
Action
as closed
The resolution will be deleted. Next status will be 'reopened'
 
Note: See TracTickets for help on using tickets.