Bug 224226 - webkit-patch apply-from-bug fails with a python backtrace if the bug does not exist
Summary: webkit-patch apply-from-bug fails with a python backtrace if the bug does not...
Status: RESOLVED WONTFIX
Alias: None
Product: WebKit
Classification: Unclassified
Component: Tools / Tests (show other bugs)
Version: WebKit Local Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2021-04-05 23:42 PDT by Kimmo Kinnunen
Modified: 2023-05-02 00:57 PDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kimmo Kinnunen 2021-04-05 23:42:06 PDT
webkit-patch apply-from-bug fails with a python backtrace if the bug does not exist

kkinnunen@Kimmos-iMac-Pro OpenSource % Tools/Scripts/webkit-patch apply-from-bug 424742                                          
Updating working directory
Updating OpenSource
hint: Pulling without specifying how to reconcile divergent branches is
hint: discouraged. You can squelch this message by running one of the following
hint: commands sometime before your next pull:
hint: 
hint:   git config pull.rebase false  # merge (the default strategy)
hint:   git config pull.rebase true   # rebase
hint:   git config pull.ff only       # fast-forward only
hint: 
hint: You can replace "git config" with "git config --global" to set a default
hint: preference for all repositories. You can also pass --rebase, --no-rebase,
hint: or --ff-only on the command line to override the configured default per
hint: invocation.
Already up to date.
Reading Keychain for bugs.webkit.org account and password.  Click "Allow" to continue...
Could not find a keychain entry for bugs.webkit.org using find-internet-password.
Reading Keychain for bugs.webkit.org account and password.  Click "Allow" to continue...
Logging in as kkinnunen@apple.com...
Fetching: https://bugs.webkit.org/show_bug.cgi?id=424742&ctype=xml&excludefield=attachmentdata
Traceback (most recent call last):
  File "Tools/Scripts/webkit-patch", line 80, in <module>
    main()
  File "Tools/Scripts/webkit-patch", line 75, in main
    WebKitPatch(os.path.abspath(__file__)).main()
  File "/Users/kkinnunen/WebKit/OpenSource/Tools/Scripts/webkitpy/tool/multicommandtool.py", line 305, in main
    result = command.check_arguments_and_execute(options, args, self)
  File "/Users/kkinnunen/WebKit/OpenSource/Tools/Scripts/webkitpy/tool/multicommandtool.py", line 123, in check_arguments_and_execute
    return self.execute(options, args, tool) or 0
  File "/Users/kkinnunen/WebKit/OpenSource/Tools/Scripts/webkitpy/tool/commands/download.py", line 173, in execute
    patches = self._fetch_list_of_patches_to_process(options, args, tool)
  File "/Users/kkinnunen/WebKit/OpenSource/Tools/Scripts/webkitpy/tool/commands/download.py", line 220, in _fetch_list_of_patches_to_process
    patches = tool.bugs.fetch_bug(bug_id).reviewed_patches()
  File "/Users/kkinnunen/WebKit/OpenSource/Tools/Scripts/webkitpy/common/net/bugzilla/bugzilla.py", line 493, in fetch_bug
    return Bug(self.fetch_bug_dictionary(bug_id), self)
  File "/Users/kkinnunen/WebKit/OpenSource/Tools/Scripts/webkitpy/common/net/bugzilla/bugzilla.py", line 486, in fetch_bug_dictionary
    return self._parse_bug_dictionary_from_xml(self._fetch_bug_page(bug_id))
  File "/Users/kkinnunen/WebKit/OpenSource/Tools/Scripts/webkitpy/common/net/bugzilla/bugzilla.py", line 462, in _parse_bug_dictionary_from_xml
    bug["title"] = self._string_contents(soup.find("short_desc"))
  File "/Users/kkinnunen/WebKit/OpenSource/Tools/Scripts/webkitpy/common/net/bugzilla/bugzilla.py", line 402, in _string_contents
Comment 1 Radar WebKit Bug Importer 2021-04-12 23:43:11 PDT
<rdar://problem/76577393>