Closed Bug 856580 Opened 11 years ago Closed 11 years ago

release runner shouldn't send failure mail when dying during polling

Categories

(Release Engineering :: Release Automation: Other, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: bhearsum, Assigned: bhearsum)

Details

(Whiteboard: [shipit])

Attachments

(1 file, 1 obsolete file)

That is, it shouldn't send mail after each individual fail to poll. Because of the stort sleep time we added in bug 849783, this can cause mail to pile up and unnecessary panic. However, it should send mail if it doesn't poll successfully after a longer period of time. Maybe 15-20min?
Attached patch don't e-mail on polling failures (obsolete) — Splinter Review
This doesn't get us sending mail after extended failures polling, but I'm not sure how to implement that in the current architecture where supervisor handles the retrying...it would be easier in some ways if release-runner.py was a long running process. I think this is good enough for now though.
Assignee: nobody → bhearsum
Status: NEW → ASSIGNED
Attachment #734645 - Flags: review?(rail)
Attached patch use exit code 5Splinter Review
11:16 < rail> bhearsum: afaik, when python raises an exception by default it exits 1. this means that everything below will be ignored, won't it?
11:17 < rail> like line 379
11:24 < bhearsum> huh, let's me test that
11:24 < bhearsum> i thought it returned some really high number...
11:25 < bhearsum> you're right
11:25 < bhearsum> ok, we can return 5 for polling failure instead then
Attachment #734645 - Attachment is obsolete: true
Attachment #734645 - Flags: review?(rail)
Attachment #734699 - Flags: review?(rail)
Comment on attachment 734699 [details] [diff] [review]
use exit code 5

Hunk #2 may be optional in this case.
Attachment #734699 - Flags: review?(rail) → review+
(In reply to Rail Aliiev [:rail] from comment #3)
> Comment on attachment 734699 [details] [diff] [review]
> use exit code 5
> 
> Hunk #2 may be optional in this case.

Yeah...may as well keep it though - now we can distinguish between polling failed, sendchange failed, and other failures.
Comment on attachment 734699 [details] [diff] [review]
use exit code 5

Landed and update the running instance on bm36.
Attachment #734699 - Flags: checked-in+
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Product: mozilla.org → Release Engineering
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: