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)

x86_64
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: catlee, Assigned: catlee)

Details

(Whiteboard: [self-serve])

Attachments

(1 file)

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: nobody → catlee
Whiteboard: [self-serve]
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+
Attachment #765959 - Flags: checked-in+
working as expected
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Product: mozilla.org → Release Engineering
Component: General Automation → General
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: