Closed
Bug 885787
Opened 11 years ago
Closed 11 years ago
self-serve agent shouldn't follow redirects after stopping builds
Categories
(Release Engineering :: General, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: catlee, Assigned: catlee)
Details
(Whiteboard: [self-serve])
Attachments
(1 file)
1.86 KB,
patch
|
jhopkins
:
review+
catlee
:
checked-in+
|
Details | Diff | Splinter Review |
To stop a build, the self serve agent does an HTTP GET request to the build's stop url. e.g. http://dev-master01.build.mozilla.org:8049/builders/b2g_mozilla-central_ics_armv7a_gecko%20build/builds/13/stop buildbot responds with a 302 response, redirecting to the builder/ page. The default urllib implementation follows that redirect, and so has to request the builder page, which increases load on the build masters. This patch creates a "noredirect_opener" url opener, which doesn't follow HTTP 302 responses.
Attachment #765959 -
Flags: review?(jhopkins)
Assignee | ||
Updated•11 years ago
|
Assignee: nobody → catlee
Whiteboard: [self-serve]
Comment 1•11 years ago
|
||
Comment on attachment 765959 [details] [diff] [review] use noredirect opener for stopping builds Looks good! Tested mechanism separately and it works as expected.
Attachment #765959 -
Flags: review?(jhopkins) → review+
Assignee | ||
Updated•11 years ago
|
Attachment #765959 -
Flags: checked-in+
Assignee | ||
Comment 2•11 years ago
|
||
working as expected
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Updated•11 years ago
|
Product: mozilla.org → Release Engineering
Updated•6 years ago
|
Component: General Automation → General
You need to log in
before you can comment on or make changes to this bug.
Description
•