Closed
Bug 757692
Opened 13 years ago
Closed 13 years ago
run_signscript should never return success for a killed worker
Categories
(Release Engineering :: General, defect)
Release Engineering
General
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: bhearsum, Assigned: bhearsum)
Details
(Whiteboard: [signing])
Attachments
(1 file)
1.94 KB,
patch
|
bhearsum
:
review+
catlee
:
feedback+
bhearsum
:
checked-in+
|
Details | Diff | Splinter Review |
We currently rely on proc.poll()'s return value to decide what we return. However, workers that don't handle SIGINT well or otherwise return 0 when killed can result in unwanted behaviour.
Comment 1•13 years ago
|
||
Set a flag when the timer runs out. If the flag is set, we should ignore the child's return code and use -1 instead.
There may be a more elegant way to refactor the block and avoid using the flag, but it's not coming to me right now.
Attachment #626296 -
Flags: feedback?(bhearsum)
Assignee | ||
Comment 2•13 years ago
|
||
Comment on attachment 626296 [details] [diff] [review]
Set error rc when child process is killed
Will try to look at this soon, Catlee should probably look, too.
Attachment #626296 -
Flags: feedback?(catlee)
Updated•13 years ago
|
Attachment #626296 -
Flags: feedback?(catlee) → feedback+
Updated•13 years ago
|
Assignee: nobody → bhearsum
Whiteboard: [signing]
Assignee | ||
Updated•13 years ago
|
Assignee: bhearsum → edransch.contact
Assignee | ||
Updated•13 years ago
|
Attachment #626296 -
Flags: feedback?(bhearsum) → review+
Assignee | ||
Comment 3•13 years ago
|
||
Looks like this just needs to be checked in. I'll see if I can do that later this week.
Assignee: edransch.contact → nobody
Assignee | ||
Updated•13 years ago
|
Assignee: nobody → bhearsum
Assignee | ||
Comment 4•13 years ago
|
||
Comment on attachment 626296 [details] [diff] [review]
Set error rc when child process is killed
This patch applied cleanly to lib/python/signing/server.py and passes all tests. It looks sane and safe still, so I went ahead and landed it. Planning to restart the signing servers today.
Attachment #626296 -
Flags: checked-in+
Assignee | ||
Comment 5•13 years ago
|
||
All signing servers have been updated for this change.
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Updated•12 years ago
|
Product: mozilla.org → Release Engineering
Updated•7 years ago
|
Component: General Automation → General
You need to log in
before you can comment on or make changes to this bug.
Description
•