<?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>202928</bug_id>
          
          <creation_ts>2019-10-14 08:27:39 -0700</creation_ts>
          <short_desc>layout step not summarizes results to stdout when running with &quot;--report&quot;</short_desc>
          <delta_ts>2019-10-14 14:53:06 -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>NEW</bug_status>
          <resolution></resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=202639</see_also>
    
    <see_also>https://bugs.webkit.org/show_bug.cgi?id=202955</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Carlos Alberto Lopez Perez">clopez</reporter>
          <assigned_to name="Jonathan Bedard">jbedard</assigned_to>
          <cc>aakash_jain</cc>
    
    <cc>aperez</cc>
    
    <cc>bugs-noreply</cc>
    
    <cc>dewei_zhu</cc>
    
    <cc>ews-watchlist</cc>
    
    <cc>glenn</cc>
    
    <cc>jbedard</cc>
    
    <cc>lingho</cc>
    
    <cc>magomez</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1579632</commentid>
    <comment_count>0</comment_count>
    <who name="Carlos Alberto Lopez Perez">clopez</who>
    <bug_when>2019-10-14 08:27:39 -0700</bug_when>
    <thetext>Since r250966 the layout step for GTK and WPE is not longer printing the results in stdout.

Previously, when this step finished it printed something like this: http://sprunge.us/XZjjH4 than then the build master parsed and put on the step for the layout tests as &quot; 68 failures 80 new passes 11 flakes 14 missing results &quot; &lt;-- https://build.webkit.org/builders/GTK%20Linux%2064-bit%20Release%20%28Tests%29/builds/11560

But since r250966 the layout test step runs with a new parameter &quot;--report https://results.webkit.org&quot; and it not longer prints this to stdout. So in the results of the buildbot the summary for the step is empty.
For example: https://build.webkit.org/builders/GTK%20Linux%2064-bit%20Release%20%28Tests%29/builds/11603 &lt;-- it not longer has the summary of the number of failures in the layout test step.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1579643</commentid>
    <comment_count>1</comment_count>
    <who name="Carlos Alberto Lopez Perez">clopez</who>
    <bug_when>2019-10-14 08:56:00 -0700</bug_when>
    <thetext>Seems the bug happens when the layout step fails to upload.

Our bots are giving this error:

05:10:27.819 123196 Uploading to https://results.webkit.org ...
05:10:27.892 123196 Starting new HTTPS connection (1): results.webkit.org:443
05:10:28.207 123196     Failed to upload to https://results.webkit.org, results server not online

(likely caused because results.webkit.org has an invalid SSL certificate, signed by an unknown CA)

$ gnutls-cli  results.webkit.org:443
Processed 124 CA certificate(s).
Resolving &apos;results.webkit.org:443&apos;...
Connecting to &apos;17.32.208.166:443&apos;...
- Certificate type: X.509
- Got a certificate list of 1 certificates.
- Certificate[0] info:
 - subject `C=US,ST=California,O=Apple Inc.,OU=management:idms.group.764034,CN=results.webkit.org&apos;, issuer `C=US,ST=California,O=Apple Inc.,CN=Apple Public Server RSA CA 12 - G1&apos;, serial 0x4c75add9335798d877e2d8088da7118f, RSA key 2048 bits, signed using RSA-SHA256, activated `2019-09-03 22:15:05 UTC&apos;, expires `2021-10-02 22:15:05 UTC&apos;, pin-sha256=&quot;HWRWOw3Y56CfV1OWXgeT3mEren7q+ACX3K8c03MCTIc=&quot;
	Public Key ID:
		sha1:421918b7a3df5b5b160b2aa2a2ae6dbb6c97a279
		sha256:1d64563b0dd8e7a09f5753965e0793de612b7a7eeaf80097dcaf1cd373024c87
	Public Key PIN:
		pin-sha256:HWRWOw3Y56CfV1OWXgeT3mEren7q+ACX3K8c03MCTIc=

- Status: The certificate is NOT trusted. The certificate issuer is unknown. 
*** PKI verification of server certificate failed...
*** Fatal error: Error in the certificate.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1579645</commentid>
    <comment_count>2</comment_count>
    <who name="Jonathan Bedard">jbedard</who>
    <bug_when>2019-10-14 09:09:15 -0700</bug_when>
    <thetext>webkitpy tests are probably the right example for getting to the bottom of this:

https://build.webkit.org/builders/GTK%20Linux%2064-bit%20Release%20%28Tests%29/builds/11603/steps/webkitpy-test/logs/stdio

Looks like GTK machines can&apos;t reach results.webkit.org. WinCario has the same problem:

https://build.webkit.org/builders/WPE%20Linux%2064-bit%20Release%20%28Tests%29/builds/15688/steps/webkitpy-test/logs/stdio

Can those machines reach https://results.webkit.org? You should be able to reproduce this with &apos;test-webkitpy --report https://results.webkit.org&apos; (note that without the API key, which the buildbot master servers, this request will fail, but it should explicitly say that it failed because of the API key, rather than &apos;results server not online&apos;.

I did some work last week, and I had a personal machine off the Apple network that was able to report, so I&apos;m surprised we&apos;re having this issue.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1579646</commentid>
    <comment_count>3</comment_count>
    <who name="Jonathan Bedard">jbedard</who>
    <bug_when>2019-10-14 09:11:22 -0700</bug_when>
    <thetext>(In reply to Carlos Alberto Lopez Perez from comment #1)
&gt; Seems the bug happens when the layout step fails to upload.
&gt; 
&gt; Our bots are giving this error:
&gt; 
&gt; 05:10:27.819 123196 Uploading to https://results.webkit.org ...
&gt; 05:10:27.892 123196 Starting new HTTPS connection (1): results.webkit.org:443
&gt; 05:10:28.207 123196     Failed to upload to https://results.webkit.org,
&gt; results server not online
&gt; 
&gt; (likely caused because results.webkit.org has an invalid SSL certificate,
&gt; signed by an unknown CA)
&gt; 
&gt; $ gnutls-cli  results.webkit.org:443
&gt; Processed 124 CA certificate(s).
&gt; Resolving &apos;results.webkit.org:443&apos;...
&gt; Connecting to &apos;17.32.208.166:443&apos;...
&gt; - Certificate type: X.509
&gt; - Got a certificate list of 1 certificates.
&gt; - Certificate[0] info:
&gt;  - subject `C=US,ST=California,O=Apple
&gt; Inc.,OU=management:idms.group.764034,CN=results.webkit.org&apos;, issuer
&gt; `C=US,ST=California,O=Apple Inc.,CN=Apple Public Server RSA CA 12 - G1&apos;,
&gt; serial 0x4c75add9335798d877e2d8088da7118f, RSA key 2048 bits, signed using
&gt; RSA-SHA256, activated `2019-09-03 22:15:05 UTC&apos;, expires `2021-10-02
&gt; 22:15:05 UTC&apos;, pin-sha256=&quot;HWRWOw3Y56CfV1OWXgeT3mEren7q+ACX3K8c03MCTIc=&quot;
&gt; 	Public Key ID:
&gt; 		sha1:421918b7a3df5b5b160b2aa2a2ae6dbb6c97a279
&gt; 		sha256:1d64563b0dd8e7a09f5753965e0793de612b7a7eeaf80097dcaf1cd373024c87
&gt; 	Public Key PIN:
&gt; 		pin-sha256:HWRWOw3Y56CfV1OWXgeT3mEren7q+ACX3K8c03MCTIc=
&gt; 
&gt; - Status: The certificate is NOT trusted. The certificate issuer is unknown. 
&gt; *** PKI verification of server certificate failed...
&gt; *** Fatal error: Error in the certificate.

I temporarily turned off the verification in r250997 because our Catalina bots where encountering a similar problem.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1579648</commentid>
    <comment_count>4</comment_count>
    <who name="Carlos Alberto Lopez Perez">clopez</who>
    <bug_when>2019-10-14 09:14:19 -0700</bug_when>
    <thetext>(In reply to Jonathan Bedard from comment #2)
&gt; webkitpy tests are probably the right example for getting to the bottom of
&gt; this:
&gt; 
&gt; https://build.webkit.org/builders/GTK%20Linux%2064-
&gt; bit%20Release%20%28Tests%29/builds/11603/steps/webkitpy-test/logs/stdio
&gt; 
&gt; Looks like GTK machines can&apos;t reach results.webkit.org. WinCario has the
&gt; same problem:
&gt; 
&gt; https://build.webkit.org/builders/WPE%20Linux%2064-
&gt; bit%20Release%20%28Tests%29/builds/15688/steps/webkitpy-test/logs/stdio
&gt; 
&gt; Can those machines reach https://results.webkit.org? You should be able to
&gt; reproduce this with &apos;test-webkitpy --report https://results.webkit.org&apos;
&gt; (note that without the API key, which the buildbot master servers, this
&gt; request will fail, but it should explicitly say that it failed because of
&gt; the API key, rather than &apos;results server not online&apos;.
&gt; 
&gt; I did some work last week, and I had a personal machine off the Apple
&gt; network that was able to report, so I&apos;m surprised we&apos;re having this issue.

They can reach it, but they can&apos;t recognized the certificate.

It seems that the server hosting results.webkit.org is missing to send the intermediate certificates of the chain.

See: https://www.sslshopper.com/ssl-checker.html#hostname=results.webkit.org</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1579654</commentid>
    <comment_count>5</comment_count>
    <who name="Carlos Alberto Lopez Perez">clopez</who>
    <bug_when>2019-10-14 09:37:45 -0700</bug_when>
    <thetext>(In reply to Jonathan Bedard from comment #3)
&gt; (In reply to Carlos Alberto Lopez Perez from comment #1)
&gt; &gt; Seems the bug happens when the layout step fails to upload.
&gt; &gt; 
&gt; &gt; Our bots are giving this error:
&gt; &gt; 
&gt; &gt; 05:10:27.819 123196 Uploading to https://results.webkit.org ...
&gt; &gt; 05:10:27.892 123196 Starting new HTTPS connection (1): results.webkit.org:443
&gt; &gt; 05:10:28.207 123196     Failed to upload to https://results.webkit.org,
&gt; &gt; results server not online
&gt; &gt; 
&gt; &gt; (likely caused because results.webkit.org has an invalid SSL certificate,
&gt; &gt; signed by an unknown CA)
&gt; &gt; 
&gt; &gt; $ gnutls-cli  results.webkit.org:443
&gt; &gt; Processed 124 CA certificate(s).
&gt; &gt; Resolving &apos;results.webkit.org:443&apos;...
&gt; &gt; Connecting to &apos;17.32.208.166:443&apos;...
&gt; &gt; - Certificate type: X.509
&gt; &gt; - Got a certificate list of 1 certificates.
&gt; &gt; - Certificate[0] info:
&gt; &gt;  - subject `C=US,ST=California,O=Apple
&gt; &gt; Inc.,OU=management:idms.group.764034,CN=results.webkit.org&apos;, issuer
&gt; &gt; `C=US,ST=California,O=Apple Inc.,CN=Apple Public Server RSA CA 12 - G1&apos;,
&gt; &gt; serial 0x4c75add9335798d877e2d8088da7118f, RSA key 2048 bits, signed using
&gt; &gt; RSA-SHA256, activated `2019-09-03 22:15:05 UTC&apos;, expires `2021-10-02
&gt; &gt; 22:15:05 UTC&apos;, pin-sha256=&quot;HWRWOw3Y56CfV1OWXgeT3mEren7q+ACX3K8c03MCTIc=&quot;
&gt; &gt; 	Public Key ID:
&gt; &gt; 		sha1:421918b7a3df5b5b160b2aa2a2ae6dbb6c97a279
&gt; &gt; 		sha256:1d64563b0dd8e7a09f5753965e0793de612b7a7eeaf80097dcaf1cd373024c87
&gt; &gt; 	Public Key PIN:
&gt; &gt; 		pin-sha256:HWRWOw3Y56CfV1OWXgeT3mEren7q+ACX3K8c03MCTIc=
&gt; &gt; 
&gt; &gt; - Status: The certificate is NOT trusted. The certificate issuer is unknown. 
&gt; &gt; *** PKI verification of server certificate failed...
&gt; &gt; *** Fatal error: Error in the certificate.
&gt; 
&gt; I temporarily turned off the verification in r250997 because our Catalina
&gt; bots where encountering a similar problem.


Digging more into this:

 - By default Debian 10 (which our bots run) only accepts(In reply to Jonathan Bedard from comment #3)
&gt; (In reply to Carlos Alberto Lopez Perez from comment #1)
&gt; &gt; Seems the bug happens when the layout step fails to upload.
&gt; &gt; 
&gt; &gt; Our bots are giving this error:
&gt; &gt; 
&gt; &gt; 05:10:27.819 123196 Uploading to https://results.webkit.org ...
&gt; &gt; 05:10:27.892 123196 Starting new HTTPS connection (1): results.webkit.org:443
&gt; &gt; 05:10:28.207 123196     Failed to upload to https://results.webkit.org,
&gt; &gt; results server not online
&gt; &gt; 
&gt; &gt; (likely caused because results.webkit.org has an invalid SSL certificate,
&gt; &gt; signed by an unknown CA)
&gt; &gt; 
&gt; &gt; $ gnutls-cli  results.webkit.org:443
&gt; &gt; Processed 124 CA certificate(s).
&gt; &gt; Resolving &apos;results.webkit.org:443&apos;...
&gt; &gt; Connecting to &apos;17.32.208.166:443&apos;...
&gt; &gt; - Certificate type: X.509
&gt; &gt; - Got a certificate list of 1 certificates.
&gt; &gt; - Certificate[0] info:
&gt; &gt;  - subject `C=US,ST=California,O=Apple
&gt; &gt; Inc.,OU=management:idms.group.764034,CN=results.webkit.org&apos;, issuer
&gt; &gt; `C=US,ST=California,O=Apple Inc.,CN=Apple Public Server RSA CA 12 - G1&apos;,
&gt; &gt; serial 0x4c75add9335798d877e2d8088da7118f, RSA key 2048 bits, signed using
&gt; &gt; RSA-SHA256, activated `2019-09-03 22:15:05 UTC&apos;, expires `2021-10-02
&gt; &gt; 22:15:05 UTC&apos;, pin-sha256=&quot;HWRWOw3Y56CfV1OWXgeT3mEren7q+ACX3K8c03MCTIc=&quot;
&gt; &gt; 	Public Key ID:
&gt; &gt; 		sha1:421918b7a3df5b5b160b2aa2a2ae6dbb6c97a279
&gt; &gt; 		sha256:1d64563b0dd8e7a09f5753965e0793de612b7a7eeaf80097dcaf1cd373024c87
&gt; &gt; 	Public Key PIN:
&gt; &gt; 		pin-sha256:HWRWOw3Y56CfV1OWXgeT3mEren7q+ACX3K8c03MCTIc=
&gt; &gt; 
&gt; &gt; - Status: The certificate is NOT trusted. The certificate issuer is unknown. 
&gt; &gt; *** PKI verification of server certificate failed...
&gt; &gt; *** Fatal error: Error in the certificate.
&gt; 
&gt; I temporarily turned off the verification in r250997 because our Catalina
&gt; bots where encountering a similar problem.



Digging more into this:

 - By default Debian 10 (which our bots run) only accept SSL connections
 with at least TLSv1.2
 
 - results.webkit.org is not able to do anything better than TLSv1.0.
 Check: https://www.ssllabs.com/ssltest/analyze.html?d=results.webkit.org
 
 - So even when running with Verify=false it fails because it isn&apos;t able
 to even do the handshake, check:
 
 $ python
Python 2.7.16 (default, Apr  6 2019, 01:42:57) 
[GCC 8.3.0] on linux2
Type &quot;help&quot;, &quot;copyright&quot;, &quot;credits&quot; or &quot;license&quot; for more information.
&gt;&gt;&gt; import requests
&gt;&gt;&gt; p=requests.post(&apos;https://results.webkit.org/api/upload&apos;,headers={&apos;Content-type&apos;: &apos;application/json&apos;},data=&quot;&quot;,verify=False)
Traceback (most recent call last):
  File &quot;&lt;stdin&gt;&quot;, line 1, in &lt;module&gt;
  File &quot;requests/api.py&quot;, line 116, in post
    return request(&apos;post&apos;, url, data=data, json=json, **kwargs)
  File &quot;requests/api.py&quot;, line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File &quot;requests/sessions.py&quot;, line 533, in request
    resp = self.send(prep, **send_kwargs)
  File &quot;requests/sessions.py&quot;, line 646, in send
    r = adapter.send(request, **kwargs)
  File &quot;requests/adapters.py&quot;, line 514, in send
    raise SSLError(e, request=request)
requests.exceptions.SSLError: HTTPSConnectionPool(host=&apos;results.webkit.org&apos;, port=443): Max retries exceeded with url: /api/upload (Caused by SSLError(SSLError(&quot;bad handshake: Error([(&apos;SSL routines&apos;, &apos;ssl_choose_client_version&apos;, &apos;unsupported protocol&apos;)],)&quot;,),))
&gt;&gt;&gt; 


 - We already had a similar issue on our EWS bots, where we had to downgrade
 the security settings of Debian to accept TLSv1.0 because the server hosting
 the EWS master was also providing SSL with deprecated encryption settings.
 
 
 - We can do something similar here, I can set our buildbot bots to accept SSL with
 TLSv1.0 if upgrading that server to provide more modern SSL settings is
 difficult for you. But I guess this is only going to keep causing issues
 in the future, upgrading that server in your end to support TLSv1.2 would
 be nice.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1579656</commentid>
    <comment_count>6</comment_count>
    <who name="Carlos Alberto Lopez Perez">clopez</who>
    <bug_when>2019-10-14 09:40:59 -0700</bug_when>
    <thetext>In any case I think we maybe should keep printing the results to stdout even when that upload step fails</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1579667</commentid>
    <comment_count>7</comment_count>
    <who name="Jonathan Bedard">jbedard</who>
    <bug_when>2019-10-14 10:03:17 -0700</bug_when>
    <thetext>(In reply to Carlos Alberto Lopez Perez from comment #6)
&gt; In any case I think we maybe should keep printing the results to stdout even
&gt; when that upload step fails

This is reasonable, and also pretty easy, I&apos;ll put together the patch to do so.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1579671</commentid>
    <comment_count>8</comment_count>
    <who name="Jonathan Bedard">jbedard</who>
    <bug_when>2019-10-14 10:06:44 -0700</bug_when>
    <thetext>(In reply to Carlos Alberto Lopez Perez from comment #5)
&gt; ...
&gt;
&gt;  - We can do something similar here, I can set our buildbot bots to accept
&gt; SSL with
&gt;  TLSv1.0 if upgrading that server to provide more modern SSL settings is
&gt;  difficult for you. But I guess this is only going to keep causing issues
&gt;  in the future, upgrading that server in your end to support TLSv1.2 would
&gt;  be nice.

Actually, looking through our configuration, I had explicitly downgraded our TLS version in a misguided attempt to fix our Catalina bots. I just changed those configurations, we should be using TLSv1.2 now.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1579682</commentid>
    <comment_count>9</comment_count>
      <attachid>380891</attachid>
    <who name="Jonathan Bedard">jbedard</who>
    <bug_when>2019-10-14 10:28:29 -0700</bug_when>
    <thetext>Created attachment 380891
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1579698</commentid>
    <comment_count>10</comment_count>
    <who name="Carlos Alberto Lopez Perez">clopez</who>
    <bug_when>2019-10-14 10:59:05 -0700</bug_when>
    <thetext>(In reply to Jonathan Bedard from comment #8)
&gt; (In reply to Carlos Alberto Lopez Perez from comment #5)
&gt; &gt; ...
&gt; &gt;
&gt; &gt;  - We can do something similar here, I can set our buildbot bots to accept
&gt; &gt; SSL with
&gt; &gt;  TLSv1.0 if upgrading that server to provide more modern SSL settings is
&gt; &gt;  difficult for you. But I guess this is only going to keep causing issues
&gt; &gt;  in the future, upgrading that server in your end to support TLSv1.2 would
&gt; &gt;  be nice.
&gt; 
&gt; Actually, looking through our configuration, I had explicitly downgraded our
&gt; TLS version in a misguided attempt to fix our Catalina bots. I just changed
&gt; those configurations, we should be using TLSv1.2 now.

Thanks.

Now it is able to connect to the server, but gives other error:

10:54:12.318 35166 Uploading to https://results.webkit.org ...
10:54:12.387 35166 Starting new HTTPS connection (1): results.webkit.org:443
/home/slave/webkitgtk/gtk-linux-64-release-tests/build/Tools/Scripts/webkitpy/thirdparty/autoinstalled/urllib3/connectionpool.py:1004: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
  InsecureRequestWarning,
10:54:16.429 35166 https://results.webkit.org:443 &quot;POST /api/upload HTTP/1.1&quot; 400 79
10:54:16.430 35166     Error uploading to https://results.webkit.org
10:54:16.430 35166         Invalid configuration
10:54:16.430 35166 Uploads completed!

full log here: https://build.webkit.org/builders/GTK%20Linux%2064-bit%20Release%20%28Tests%29/builds/11605/steps/layout-test/logs/stdio

Is there something we have to configure on the bots for this upload to happen as expected?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1579707</commentid>
    <comment_count>11</comment_count>
    <who name="Jonathan Bedard">jbedard</who>
    <bug_when>2019-10-14 11:15:51 -0700</bug_when>
    <thetext>(In reply to Carlos Alberto Lopez Perez from comment #10)
&gt; ...
&gt; Is there something we have to configure on the bots for this upload to
&gt; happen as expected?

Not expected, although that error is actually coming from the server, so you are making a POST request, it&apos;s just getting rejected.

My guess is that we are creating a configuration that&apos;s missing something...I don&apos;t have a GTK machine handy, if we log the dictionary returned by Tools/Scripts/webkitpy/results/upload.py Upload.create_configuration, what does it look like? (this is called from Tools/Scripts/port/base.py for GTK)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1579710</commentid>
    <comment_count>12</comment_count>
    <who name="Jonathan Bedard">jbedard</who>
    <bug_when>2019-10-14 11:17:05 -0700</bug_when>
    <thetext>(In reply to Jonathan Bedard from comment #11)
&gt; (In reply to Carlos Alberto Lopez Perez from comment #10)
&gt; &gt; ...
&gt; &gt; Is there something we have to configure on the bots for this upload to
&gt; &gt; happen as expected?
&gt; 
&gt; Not expected, although that error is actually coming from the server, so you
&gt; are making a POST request, it&apos;s just getting rejected.
&gt; 
&gt; My guess is that we are creating a configuration that&apos;s missing
&gt; something...I don&apos;t have a GTK machine handy, if we log the dictionary
&gt; returned by Tools/Scripts/webkitpy/results/upload.py
&gt; Upload.create_configuration, what does it look like? (this is called from
&gt; Tools/Scripts/port/base.py for GTK)

Side note: You can test this by running test-webkitpy --report https://results.webkit.org locally on a GTK machine. You won&apos;t have an API key, so it will get rejected, but we can at least see what GTK machines try and upload</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1579731</commentid>
    <comment_count>13</comment_count>
    <who name="Carlos Alberto Lopez Perez">clopez</who>
    <bug_when>2019-10-14 12:10:09 -0700</bug_when>
    <thetext>(In reply to Jonathan Bedard from comment #12)
&gt; (In reply to Jonathan Bedard from comment #11)
&gt; &gt; (In reply to Carlos Alberto Lopez Perez from comment #10)
&gt; &gt; &gt; ...
&gt; &gt; &gt; Is there something we have to configure on the bots for this upload to
&gt; &gt; &gt; happen as expected?
&gt; &gt; 
&gt; &gt; Not expected, although that error is actually coming from the server, so you
&gt; &gt; are making a POST request, it&apos;s just getting rejected.
&gt; &gt; 
&gt; &gt; My guess is that we are creating a configuration that&apos;s missing
&gt; &gt; something...I don&apos;t have a GTK machine handy, if we log the dictionary
&gt; &gt; returned by Tools/Scripts/webkitpy/results/upload.py
&gt; &gt; Upload.create_configuration, what does it look like? (this is called from
&gt; &gt; Tools/Scripts/port/base.py for GTK)
&gt; 
&gt; Side note: You can test this by running test-webkitpy --report
&gt; https://results.webkit.org locally on a GTK machine. You won&apos;t have an API
&gt; key, so it will get rejected, but we can at least see what GTK machines try
&gt; and upload

How the bots are supposed to obtain the API key? I think nobody installed that on the GTK or WPE bots (if that was supposed to be done)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1579737</commentid>
    <comment_count>14</comment_count>
    <who name="Jonathan Bedard">jbedard</who>
    <bug_when>2019-10-14 12:26:59 -0700</bug_when>
    <thetext>(In reply to Carlos Alberto Lopez Perez from comment #13)
&gt; ...
&gt; 
&gt; How the bots are supposed to obtain the API key? I think nobody installed
&gt; that on the GTK or WPE bots (if that was supposed to be done)

Buildbot passes it as an environment variable.

The error message indicates your bots are getting past that point, you would have gotten something like &apos;Missing API key&apos; or &apos;Incorrect API key&apos;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1579765</commentid>
    <comment_count>15</comment_count>
    <who name="Carlos Alberto Lopez Perez">clopez</who>
    <bug_when>2019-10-14 13:24:29 -0700</bug_when>
    <thetext>(In reply to Jonathan Bedard from comment #11)
&gt; (In reply to Carlos Alberto Lopez Perez from comment #10)
&gt; &gt; ...
&gt; &gt; Is there something we have to configure on the bots for this upload to
&gt; &gt; happen as expected?
&gt; 
&gt; Not expected, although that error is actually coming from the server, so you
&gt; are making a POST request, it&apos;s just getting rejected.
&gt; 
&gt; My guess is that we are creating a configuration that&apos;s missing
&gt; something...I don&apos;t have a GTK machine handy, if we log the dictionary
&gt; returned by Tools/Scripts/webkitpy/results/upload.py
&gt; Upload.create_configuration, what does it look like? (this is called from
&gt; Tools/Scripts/port/base.py for GTK)

This is how that dictionary looks on GTK (and I guess on WPE it would look the same):

{&apos;platform&apos;: &apos;linux&apos;, &apos;style&apos;: &apos;release&apos;, &apos;is_simulator&apos;: False, &apos;version&apos;: &apos;None&apos;, &apos;architecture&apos;: &apos;x86&apos;}</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1579831</commentid>
    <comment_count>16</comment_count>
    <who name="Jonathan Bedard">jbedard</who>
    <bug_when>2019-10-14 14:36:19 -0700</bug_when>
    <thetext>(In reply to Carlos Alberto Lopez Perez from comment #15)
&gt; (In reply to Jonathan Bedard from comment #11)
&gt; &gt; (In reply to Carlos Alberto Lopez Perez from comment #10)
&gt; &gt; &gt; ...
&gt; &gt; &gt; Is there something we have to configure on the bots for this upload to
&gt; &gt; &gt; happen as expected?
&gt; &gt; 
&gt; &gt; Not expected, although that error is actually coming from the server, so you
&gt; &gt; are making a POST request, it&apos;s just getting rejected.
&gt; &gt; 
&gt; &gt; My guess is that we are creating a configuration that&apos;s missing
&gt; &gt; something...I don&apos;t have a GTK machine handy, if we log the dictionary
&gt; &gt; returned by Tools/Scripts/webkitpy/results/upload.py
&gt; &gt; Upload.create_configuration, what does it look like? (this is called from
&gt; &gt; Tools/Scripts/port/base.py for GTK)
&gt; 
&gt; This is how that dictionary looks on GTK (and I guess on WPE it would look
&gt; the same):
&gt; 
&gt; {&apos;platform&apos;: &apos;linux&apos;, &apos;style&apos;: &apos;release&apos;, &apos;is_simulator&apos;: False, &apos;version&apos;:
&gt; &apos;None&apos;, &apos;architecture&apos;: &apos;x86&apos;}

This is actually a pretty straight-forward problem. platform.os_version isn
&apos;t defined for GTK.

Curious, what is the output of this python program:

import platform
print(platform.version())</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1579837</commentid>
    <comment_count>17</comment_count>
    <who name="Carlos Alberto Lopez Perez">clopez</who>
    <bug_when>2019-10-14 14:53:06 -0700</bug_when>
    <thetext>(In reply to Jonathan Bedard from comment #16)
&gt; (In reply to Carlos Alberto Lopez Perez from comment #15)
&gt; &gt; (In reply to Jonathan Bedard from comment #11)
&gt; &gt; &gt; (In reply to Carlos Alberto Lopez Perez from comment #10)
&gt; &gt; &gt; &gt; ...
&gt; &gt; &gt; &gt; Is there something we have to configure on the bots for this upload to
&gt; &gt; &gt; &gt; happen as expected?
&gt; &gt; &gt; 
&gt; &gt; &gt; Not expected, although that error is actually coming from the server, so you
&gt; &gt; &gt; are making a POST request, it&apos;s just getting rejected.
&gt; &gt; &gt; 
&gt; &gt; &gt; My guess is that we are creating a configuration that&apos;s missing
&gt; &gt; &gt; something...I don&apos;t have a GTK machine handy, if we log the dictionary
&gt; &gt; &gt; returned by Tools/Scripts/webkitpy/results/upload.py
&gt; &gt; &gt; Upload.create_configuration, what does it look like? (this is called from
&gt; &gt; &gt; Tools/Scripts/port/base.py for GTK)
&gt; &gt; 
&gt; &gt; This is how that dictionary looks on GTK (and I guess on WPE it would look
&gt; &gt; the same):
&gt; &gt; 
&gt; &gt; {&apos;platform&apos;: &apos;linux&apos;, &apos;style&apos;: &apos;release&apos;, &apos;is_simulator&apos;: False, &apos;version&apos;:
&gt; &gt; &apos;None&apos;, &apos;architecture&apos;: &apos;x86&apos;}
&gt; 
&gt; This is actually a pretty straight-forward problem. platform.os_version isn
&gt; &apos;t defined for GTK.
&gt; 
&gt; Curious, what is the output of this python program:
&gt; 
&gt; import platform
&gt; print(platform.version())

This is the output:
#1 SMP Debian 4.19.37-5+deb10u2~bpo9+1 (2019-08-16)</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>380891</attachid>
            <date>2019-10-14 10:28:29 -0700</date>
            <delta_ts>2019-10-14 10:28:29 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-202928-20191014102828.patch</filename>
            <type>text/plain</type>
            <size>2186</size>
            <attacher name="Jonathan Bedard">jbedard</attacher>
            
              <data encoding="base64">SW5kZXg6IFRvb2xzL0NoYW5nZUxvZwo9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBUb29scy9DaGFuZ2VMb2cJKHJl
dmlzaW9uIDI1MTA4MSkKKysrIFRvb2xzL0NoYW5nZUxvZwkod29ya2luZyBjb3B5KQpAQCAtMSwz
ICsxLDE1IEBACisyMDE5LTEwLTE0ICBKb25hdGhhbiBCZWRhcmQgIDxqYmVkYXJkQGFwcGxlLmNv
bT4KKworICAgICAgICBsYXlvdXQgc3RlcCBub3Qgc3VtbWFyaXplcyByZXN1bHRzIHRvIHN0ZG91
dCB3aGVuIHJ1bm5pbmcgd2l0aCAiLS1yZXBvcnQiCisgICAgICAgIGh0dHBzOi8vYnVncy53ZWJr
aXQub3JnL3Nob3dfYnVnLmNnaT9pZD0yMDI5MjgKKworICAgICAgICBSZXZpZXdlZCBieSBOT0JP
RFkgKE9PUFM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cGxvYWRzOgorICAgICAgICBpZiBudW1fZmFpbGVkX3VwbG9hZHMgYW5kIG5vdCBy
ZXN1bHQuZXhpdF9jb2RlOgogICAgICAgICAgICAgcmVzdWx0LmV4aXRfY29kZSA9IC0xCiAgICAg
ICAgIHJldHVybiByZXN1bHQKIAo=
</data>
<flag name="review"
          id="396644"
          type_id="1"
          status="?"
          setter="jbedard"
    />
          </attachment>
      

    </bug>

</bugzilla>