Closed
Bug 914235
Opened 11 years ago
Closed 11 years ago
/builds/watch_devices.sh not cleaning up disabled.flg files on foopy
Categories
(Release Engineering :: General, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: pmoore, Assigned: pmoore)
Details
Attachments
(1 file)
3.34 KB,
patch
|
Callek
:
review+
|
Details | Diff | Splinter Review |
Since slavealloc became the home for defining which (mobile) devices are disabled, the disabled.flg file became a trigger to stop buildbot, which would be cleaned up after doing this.
In other words, the file is short lived - if you want to disable a device, you change the status in slavealloc to disabled, and then to propagate this change to the device itself, you would create the disabled.flg file in the /builds/<device> directory of the associated foopy. The existence of this file would cause /builds/watch_devices.sh to bring down the buildbot slave on the foopy. The /builds/watch_devices.sh script is called by cron every 5 minutes (see /etc/cron.d/foopy on the foopies).
Therefore this disabled.flg file should only "live" between the time it is manually created, and the time it takes the cron job to bring down buildbot and delete the file.
However, there are several disabled.flg files that are long lived, that are not getting deleted from the foopies. This is because there are edge cases where the "rm" command was not called.
Assignee | ||
Comment 1•11 years ago
|
||
I've attached a patch that should fix this problem. Please note this patch also fixes the code indentation.
Updated•11 years ago
|
Attachment #801620 -
Flags: review?(bugspam.Callek) → review+
Assignee | ||
Comment 2•11 years ago
|
||
Committed and pushed: https://hg.mozilla.org/build/tools/rev/a3caad149279
Assignee | ||
Comment 3•11 years ago
|
||
This is correctly working in production, closing out bug.
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Updated•7 years ago
|
Component: Tools → General
You need to log in
before you can comment on or make changes to this bug.
Description
•