RESOLVED FIXED 128077
WebKit Bot Watcher's Dashboard: Defer subsequent resource loads from access-restricted build bot when iteration fails to load with HTTP 401 status code
https://bugs.webkit.org/show_bug.cgi?id=128077
Summary WebKit Bot Watcher's Dashboard: Defer subsequent resource loads from access-r...
Daniel Bates
Reported 2014-02-02 12:20:14 PST
We should only prompt for HTTP credentials once per iteration load similar to what we do when we fetch the list of iterations (bug #127849). That is, if an HTTP 401 error occurs when we load an iteration we should notify the associated Buildbot object and update the associated queue view so that we prevent subsequent load attempt for other iterations (*) and show an "unauthorized" message on the dashboard, respectively. (*) Such attempts would trigger an authentication dialog, which can be seen as annoying.
Attachments
Patch (7.24 KB, patch)
2014-02-02 12:21 PST, Daniel Bates
no flags
Patch (7.27 KB, patch)
2014-02-02 12:39 PST, Daniel Bates
no flags
Patch (8.10 KB, patch)
2014-02-03 10:00 PST, Daniel Bates
ap: review+
Daniel Bates
Comment 1 2014-02-02 12:21:46 PST
Daniel Bates
Comment 2 2014-02-02 12:39:12 PST
Created attachment 222933 [details] Patch Rebased patch
Alexey Proskuryakov
Comment 3 2014-02-02 21:01:54 PST
Comment on attachment 222933 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=222933&action=review > Tools/ChangeLog:12 > + an iteration each time the update queue time fires until a person successfully authenticates. Instead > + we should update the authentication status of the build bot on receiving an HTTP 401 response code such > + that we defer subsequent requests to load the iteration when the queue update timer fires. Isn't this too frequent? We load a lot of iterations.
Daniel Bates
Comment 4 2014-02-03 10:00:50 PST
Alexey Proskuryakov
Comment 5 2014-02-03 10:16:22 PST
Comment on attachment 222995 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=222995&action=review > Tools/ChangeLog:12 > + HTTP credentials for an iteration so long as an earlier authentication request wasn't cancelled > + (i.e. failed with an HTTP 401 Unauthorized status code). Currently an authentication dialog will be > + presented for an iteration each time the update queue timer fires until a person successfully I think that this would be easier to understand if it said "credentials for the buildbot" not "credentials for am iteration".
Daniel Bates
Comment 6 2014-02-03 10:29:25 PST
(In reply to comment #5) > (From update of attachment 222995 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=222995&action=review > > > Tools/ChangeLog:12 > > + HTTP credentials for an iteration so long as an earlier authentication request wasn't cancelled > > + (i.e. failed with an HTTP 401 Unauthorized status code). Currently an authentication dialog will be > > + presented for an iteration each time the update queue timer fires until a person successfully > > I think that this would be easier to understand if it said "credentials for the buildbot" not "credentials for am iteration". Will change before landing.
Daniel Bates
Comment 7 2014-02-03 10:32:32 PST
Note You need to log in before you can comment on or make changes to this bug.