<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>291389</bug_id>
          
          <creation_ts>2025-04-10 15:44:13 -0700</creation_ts>
          <short_desc>Tools/Scripts/bisect-builds broken because host fails to resolve</short_desc>
          <delta_ts>2025-05-16 08:08:38 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Tools / Tests</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>victor.vianna10</reporter>
          <assigned_to name="lingho@apple.com">lingho</assigned_to>
          <cc>ap</cc>
    
    <cc>cklim4101</cc>
    
    <cc>deleted_user</cc>
    
    <cc>lingho</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2110279</commentid>
    <comment_count>0</comment_count>
    <who name="">victor.vianna10</who>
    <bug_when>2025-04-10 15:44:13 -0700</bug_when>
    <thetext>Invoking the script gives the error below, which suggests DNS is not resolving correctly the endpoint q1tzqfy48e.execute-api.us-west-2.amazonaws.com

I noticed https://github.com/WebKit/WebKit/commit/d1cec7e0e0bf0db39054a72f762cefe5f2f7c04a, which replaced that endpoint with https://archives-list.webkit.org/ in a different script. I tried to use the same replacement but that causes bisect-builds to hang

```
victorvianna@mac:~/repos/WebKit$ ./Tools/Scripts/bisect-builds
Traceback (most recent call last):
  File &quot;/Users/victorvianna/repos/WebKit/Tools/Scripts/webkitpy/common/memoized.py&quot;, line 42, in __call__
    return self._results_cache[args]
           ~~~~~~~~~~~~~~~~~~~^^^^^^
KeyError: ()

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File &quot;/Users/victorvianna/.pyenv/versions/3.11.10/lib/python3.11/urllib/request.py&quot;, line 1348, in do_open
    h.request(req.get_method(), req.selector, req.data, headers,
  File &quot;/Users/victorvianna/.pyenv/versions/3.11.10/lib/python3.11/http/client.py&quot;, line 1303, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File &quot;/Users/victorvianna/.pyenv/versions/3.11.10/lib/python3.11/http/client.py&quot;, line 1349, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File &quot;/Users/victorvianna/.pyenv/versions/3.11.10/lib/python3.11/http/client.py&quot;, line 1298, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File &quot;/Users/victorvianna/.pyenv/versions/3.11.10/lib/python3.11/http/client.py&quot;, line 1058, in _send_output
    self.send(msg)
  File &quot;/Users/victorvianna/.pyenv/versions/3.11.10/lib/python3.11/http/client.py&quot;, line 996, in send
    self.connect()
  File &quot;/Users/victorvianna/.pyenv/versions/3.11.10/lib/python3.11/http/client.py&quot;, line 1468, in connect
    super().connect()
  File &quot;/Users/victorvianna/.pyenv/versions/3.11.10/lib/python3.11/http/client.py&quot;, line 962, in connect
    self.sock = self._create_connection(
                ^^^^^^^^^^^^^^^^^^^^^^^^
  File &quot;/Users/victorvianna/.pyenv/versions/3.11.10/lib/python3.11/socket.py&quot;, line 839, in create_connection
    for res in getaddrinfo(host, port, 0, SOCK_STREAM):
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File &quot;/Users/victorvianna/.pyenv/versions/3.11.10/lib/python3.11/socket.py&quot;, line 974, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
socket.gaierror: [Errno 8] nodename nor servname provided, or not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File &quot;/Users/victorvianna/repos/WebKit/./Tools/Scripts/bisect-builds&quot;, line 403, in &lt;module&gt;
    main()
  File &quot;/Users/victorvianna/repos/WebKit/./Tools/Scripts/bisect-builds&quot;, line 372, in main
    validate_options(options)
  File &quot;/Users/victorvianna/repos/WebKit/./Tools/Scripts/bisect-builds&quot;, line 330, in validate_options
    options.queue = queue_for(options)  # Resolve and cache for future use.
                    ^^^^^^^^^^^^^^^^^^
  File &quot;/Users/victorvianna/repos/WebKit/./Tools/Scripts/bisect-builds&quot;, line 294, in queue_for
    platform_list = minified_platforms()
                    ^^^^^^^^^^^^^^^^^^^^
  File &quot;/Users/victorvianna/repos/WebKit/Tools/Scripts/webkitpy/common/memoized.py&quot;, line 45, in __call__
    result = self._function(*args)
             ^^^^^^^^^^^^^^^^^^^^^
  File &quot;/Users/victorvianna/repos/WebKit/./Tools/Scripts/bisect-builds&quot;, line 282, in minified_platforms
    return get_platforms(REST_API_MINIFIED_PLATFORM_ENDPOINT)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File &quot;/Users/victorvianna/repos/WebKit/./Tools/Scripts/bisect-builds&quot;, line 271, in get_platforms
    r = urllib.request.urlopen(platform_url)
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File &quot;/Users/victorvianna/.pyenv/versions/3.11.10/lib/python3.11/urllib/request.py&quot;, line 216, in urlopen
    return opener.open(url, data, timeout)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File &quot;/Users/victorvianna/.pyenv/versions/3.11.10/lib/python3.11/urllib/request.py&quot;, line 519, in open
    response = self._open(req, data)
               ^^^^^^^^^^^^^^^^^^^^^
  File &quot;/Users/victorvianna/.pyenv/versions/3.11.10/lib/python3.11/urllib/request.py&quot;, line 536, in _open
    result = self._call_chain(self.handle_open, protocol, protocol +
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File &quot;/Users/victorvianna/.pyenv/versions/3.11.10/lib/python3.11/urllib/request.py&quot;, line 496, in _call_chain
    result = func(*args)
             ^^^^^^^^^^^
  File &quot;/Users/victorvianna/.pyenv/versions/3.11.10/lib/python3.11/urllib/request.py&quot;, line 1391, in https_open
    return self.do_open(http.client.HTTPSConnection, req,
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File &quot;/Users/victorvianna/.pyenv/versions/3.11.10/lib/python3.11/urllib/request.py&quot;, line 1351, in do_open
    raise URLError(err)
urllib.error.URLError: &lt;urlopen error [Errno 8] nodename nor servname provided, or not known&gt;
```</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2110283</commentid>
    <comment_count>1</comment_count>
    <who name="">victor.vianna10</who>
    <bug_when>2025-04-10 15:55:02 -0700</bug_when>
    <thetext>When replacing with https://archives-list.webkit.org/, this is where the code hangs
https://github.com/WebKit/WebKit/blob/f2e3089da97d00f0a335f8b5c84e8ac65251c8e4/Tools/Scripts/bisect-builds#L271</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2110303</commentid>
    <comment_count>2</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2025-04-10 16:36:30 -0700</bug_when>
    <thetext>Thank you for the report! We&apos;ll look into making this script work again.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2110305</commentid>
    <comment_count>3</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2025-04-10 16:38:09 -0700</bug_when>
    <thetext>&lt;rdar://problem/149025878&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2114187</commentid>
    <comment_count>4</comment_count>
    <who name="Deleted User">deleted_user</who>
    <bug_when>2025-04-30 06:46:26 -0700</bug_when>
    <thetext>Getting a different error with Ubuntu 24.04:

```
mirko@wkdev:/host/home/mirko/work/code/WebKit$ lsb_release -a
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 24.04.2 LTS
Release:	24.04
Codename:	noble
mirko@wkdev:/host/home/mirko/work/code/WebKit$ Tools/Scripts/bisect-builds 
Traceback (most recent call last):
  File &quot;/host/home/mirko/work/code/WebKit/Tools/Scripts/bisect-builds&quot;, line 403, in &lt;module&gt;
    main()
  File &quot;/host/home/mirko/work/code/WebKit/Tools/Scripts/bisect-builds&quot;, line 366, in main
    options = parse_args(sys.argv[1:])
              ^^^^^^^^^^^^^^^^^^^^^^^^
  File &quot;/host/home/mirko/work/code/WebKit/Tools/Scripts/bisect-builds&quot;, line 222, in parse_args
    parser.add_argument(&apos;-p&apos;, &apos;--platform&apos;, default=host_platform_name(), help=&apos;the platform to query, e.g. mac-ventura, gtk, ios-simulator-14, win, default is current host platform.&apos;)
                                                    ^^^^^^^^^^^^^^^^^^^^
  File &quot;/host/home/mirko/work/code/WebKit/Tools/Scripts/bisect-builds&quot;, line 211, in host_platform_name
    version_name = VersionNameMap.strip_name_formatting(platform.os_version_name())
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File &quot;/host/home/mirko/work/code/WebKit/Tools/Scripts/webkitpy/common/version_name_map.py&quot;, line 122, in strip_name_formatting
    if &apos; &apos; in name:
       ^^^^^^^^^^^
TypeError: argument of type &apos;NoneType&apos; is not iterable
mirko@wkdev:/host/home/mirko/work/code/WebKit$
```</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2116228</commentid>
    <comment_count>5</comment_count>
    <who name="lingho@apple.com">lingho</who>
    <bug_when>2025-05-09 15:46:37 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/45192</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2117616</commentid>
    <comment_count>6</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2025-05-16 08:08:36 -0700</bug_when>
    <thetext>Committed 295006@main (90505809a9bc): &lt;https://commits.webkit.org/295006@main&gt;

Reviewed commits have been landed. Closing PR #45192 and removing active labels.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>