[Webkit-unassigned] [Bug 239741] [git-webkit] Cannot create pull request branch using bug URL, fails to fetch comments from Bugzilla, fails to modify bug

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Apr 26 11:28:48 PDT 2022


https://bugs.webkit.org/show_bug.cgi?id=239741

--- Comment #2 from Michael Catanzaro <mcatanzaro at gnome.org> ---
Added some debugging:

diff --git a/Tools/Scripts/libraries/webkitbugspy/webkitbugspy/bugzilla.py b/Tools/Scripts/libraries/webkitbugspy/webkitbugspy/bugzilla.py
index 20243761c94d..870eb6a30923 100644
--- a/Tools/Scripts/libraries/webkitbugspy/webkitbugspy/bugzilla.py
+++ b/Tools/Scripts/libraries/webkitbugspy/webkitbugspy/bugzilla.py
@@ -149,6 +149,8 @@ class Tracker(GenericTracker):

         if member in ('title', 'timestamp', 'creator', 'opened', 'assignee', 'watchers', 'project', 'component', 'version'):
             response = requests.get('{}/rest/bug/{}{}'.format(self.url, issue.id, self._login_arguments(required=False)))
+            if response.status_code != 200:
+                print(response)
             response = response.json().get('bugs', []) if response.status_code == 200 else None
             if response:
                 response = response[0]

It prints:

Updated 'PR 394 | Test PR, ignore'!
<Response [401]>
Failed to fetch 'https://bugs.webkit.org/show_bug.cgi?id=239741'
<Response [401]>
Failed to fetch 'https://bugs.webkit.org/show_bug.cgi?id=239741'
Failed to modify 'https://bugs.webkit.org/show_bug.cgi?id=239741 None'
<Response [400]>
Failed to fetch 'https://bugs.webkit.org/show_bug.cgi?id=239741'
Assigning associated issue to Michael Catanzaro <mcatanzaro at gnome.org>
Failed to fetch comments for 'https://bugs.webkit.org/show_bug.cgi?id=239741'
<Response [400]>
Failed to fetch 'https://bugs.webkit.org/show_bug.cgi?id=239741'
<Response [400]>
Failed to fetch 'https://bugs.webkit.org/show_bug.cgi?id=239741'
<Response [400]>
Failed to fetch 'https://bugs.webkit.org/show_bug.cgi?id=239741'
Failed to modify 'https://bugs.webkit.org/show_bug.cgi?id=239741 None'
Posted pull request link to https://bugs.webkit.org/show_bug.cgi?id=239741
<Response [400]>
Failed to fetch 'https://bugs.webkit.org/show_bug.cgi?id=239741'
<Response [400]>
Failed to fetch 'https://bugs.webkit.org/show_bug.cgi?id=239741'
https://github.com/WebKit/WebKit/pull/394

So it's 401 Unauthorized and 400 Bad Request.

My password stored by python-keyring *seems* to be correct, I think. To be completely sure, I wanted to test it in an incognito browser window to make sure I can use it to sign in, but I've been IP banned from WebKit Bugzilla for the next couple hours for exceeding the maximum number of login attempts. Maybe the script should give up after the first failure, instead of failing so many times in a row.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20220426/260e5408/attachment.htm>


More information about the webkit-unassigned mailing list