<?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>251157</bug_id>
          
          <creation_ts>2023-01-25 09:44:50 -0800</creation_ts>
          <short_desc>[REGRESSION] Unauthenticated request to list PR files triggering rate-limits</short_desc>
          <delta_ts>2023-01-25 14:19:57 -0800</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>Other</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=246323</see_also>
    
    <see_also>https://bugs.webkit.org/show_bug.cgi?id=250714</see_also>
          <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 name="Aakash Jain">aakash_jain</reporter>
          <assigned_to name="Jonathan Bedard">jbedard</assigned_to>
          <cc>aakash_jain</cc>
    
    <cc>ap</cc>
    
    <cc>jbedard</cc>
    
    <cc>ryanhaddad</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1928170</commentid>
    <comment_count>0</comment_count>
    <who name="Aakash Jain">aakash_jain</who>
    <bug_when>2023-01-25 09:44:50 -0800</bug_when>
    <thetext>JSC queues are not skipping some non-relevant PRs.

e.g.:

https://ews-build.webkit.org/#/builders/1/builds/94597
https://ews-build.webkit.org/#/builders/1/builds/94551
https://ews-build.webkit.org/#/builders/1/builds/94604
https://ews-build.webkit.org/#/builders/1/builds/94595
https://ews-build.webkit.org/#/builders/1/builds/94593
https://ews-build.webkit.org/#/builders/1/builds/94589
https://ews-build.webkit.org/#/builders/1/builds/94587</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1928177</commentid>
    <comment_count>1</comment_count>
    <who name="Aakash Jain">aakash_jain</who>
    <bug_when>2023-01-25 09:50:12 -0800</bug_when>
    <thetext>Example of recent build in which the logic worked fine: https://ews-build.webkit.org/#/builders/1/builds/94523 
In this &quot;check-change-relevance&quot; step says: &quot;Pull request doesn&apos;t have relevant changes&quot; and the &apos;stdio&apos; log say: &quot;This pull request does not have relevant changes.&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1928178</commentid>
    <comment_count>2</comment_count>
    <who name="Aakash Jain">aakash_jain</who>
    <bug_when>2023-01-25 09:53:45 -0800</bug_when>
    <thetext>In the non-working build https://ews-build.webkit.org/#/builders/1/builds/94597, check-change-relevance step says: &quot;Pull request contains relevant changes&quot;, and no &apos;stdio&apos; log.

IN this build from Jan 13, when &quot;check-change-relevance&quot; said &quot;Pull request contains relevant changes&quot;, there was also &apos;stdio&apos; log saying: &quot;This pull request contains relevant changes.&quot;: https://ews-build.webkit.org/#/builders/1/builds/93414


Missing &apos;stdio&apos; log indicate that in CheckChangeRelevance.start() self._get_patch() returned empty patch triggering this code path for early exit (without any &apos;stdio&apos; log): https://github.com/WebKit/WebKit/blob/main/Tools/CISupport/ews-build/steps.py#L1211


_get_patch() method was recently changed on Jan 19 in https://commits.webkit.org/259088@main</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1928210</commentid>
    <comment_count>3</comment_count>
    <who name="Aakash Jain">aakash_jain</who>
    <bug_when>2023-01-25 11:13:28 -0800</bug_when>
    <thetext>For non-working build https://ews-build.webkit.org/#/builders/1/builds/94597, https://ews-build.webkit.org/api/v2/sourcestamps/740172/changes shows that the files in sourcestamp was empty [].

However, for old working build https://ews-build.webkit.org/#/builders/1/builds/93414,  https://ews-build.webkit.org/api/v2/sourcestamps/736612/changes shows that the files in sourcestamp was non-empty.


Also, the logs on server have this:
twistd.log.1:2023-01-25 09:39:38-0800 [HTTP11ClientProtocol (TLSMemoryBIOProtocol),client] Failed fetching files for PR #9083: response code 400</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1928211</commentid>
    <comment_count>4</comment_count>
    <who name="Aakash Jain">aakash_jain</who>
    <bug_when>2023-01-25 11:17:48 -0800</bug_when>
    <thetext>Seems like a regression from https://commits.webkit.org/259282@main (Bug 250714)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1928224</commentid>
    <comment_count>5</comment_count>
    <who name="Jonathan Bedard">jbedard</who>
    <bug_when>2023-01-25 11:58:37 -0800</bug_when>
    <thetext>We aren&apos;t fetching files with auth, that&apos;s the problem, silly mistake, easy fix.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1928235</commentid>
    <comment_count>6</comment_count>
    <who name="Aakash Jain">aakash_jain</who>
    <bug_when>2023-01-25 12:33:57 -0800</bug_when>
    <thetext>This is happening on multiple queues including WebkitPy (e.g.: https://ews-build.webkit.org/#/builders/5/builds/108210), Services-EWS (e.g.: https://ews-build.webkit.org/#/builders/20/builds/103549) etc.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1928236</commentid>
    <comment_count>7</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2023-01-25 12:40:26 -0800</bug_when>
    <thetext>&lt;rdar://problem/104659979&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1928237</commentid>
    <comment_count>8</comment_count>
    <who name="Jonathan Bedard">jbedard</who>
    <bug_when>2023-01-25 12:43:20 -0800</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/9141</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1928243</commentid>
    <comment_count>9</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2023-01-25 12:54:53 -0800</bug_when>
    <thetext>Committed 259382@main (42ad013f55b2): &lt;https://commits.webkit.org/259382@main&gt;

Reviewed commits have been landed. Closing PR #9141 and removing active labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1928272</commentid>
    <comment_count>10</comment_count>
    <who name="Jonathan Bedard">jbedard</who>
    <bug_when>2023-01-25 14:12:35 -0800</bug_when>
    <thetext>Re-opening for pull request https://github.com/WebKit/WebKit/pull/9149</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1928273</commentid>
    <comment_count>11</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2023-01-25 14:19:54 -0800</bug_when>
    <thetext>Committed 259386@main (c54b1f4645fb): &lt;https://commits.webkit.org/259386@main&gt;

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

    </bug>

</bugzilla>