<?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>246323</bug_id>
          
          <creation_ts>2022-10-10 23:11:56 -0700</creation_ts>
          <short_desc>[Stress Test EWS] failing to find modified layout tests for pull requests</short_desc>
          <delta_ts>2023-04-25 09:44:47 -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>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=223890</see_also>
    
    <see_also>https://bugs.webkit.org/show_bug.cgi?id=250714</see_also>
    
    <see_also>https://bugs.webkit.org/show_bug.cgi?id=251157</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>
          <dependson>242735</dependson>
          <blocked>239082</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Fujii Hironori">fujii</reporter>
          <assigned_to name="Jonathan Bedard">jbedard</assigned_to>
          <cc>aakash_jain</cc>
    
    <cc>ap</cc>
    
    <cc>ddkilzer</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>1904728</commentid>
    <comment_count>0</comment_count>
    <who name="Fujii Hironori">fujii</who>
    <bug_when>2022-10-10 23:11:56 -0700</bug_when>
    <thetext>[Stress Test EWS] failing to find modified layout tests for pull requests

Stress Test EWS is working fine for patch workflow, but for PR workflow.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1904787</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2022-10-11 08:54:53 -0700</bug_when>
    <thetext>&lt;rdar://problem/101034678&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1904940</commentid>
    <comment_count>2</comment_count>
    <who name="Ryan Haddad">ryanhaddad</who>
    <bug_when>2022-10-11 16:30:13 -0700</bug_when>
    <thetext>https://github.com/WebKit/WebKit/pull/4783 is a PR that added/modified WPT tests, but it appears that the stress test bot skipped running tests https://ews-build.webkit.org/#/builders/62/builds/35773</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1916998</commentid>
    <comment_count>3</comment_count>
    <who name="Fujii Hironori">fujii</who>
    <bug_when>2022-12-06 12:41:56 -0800</bug_when>
    <thetext>How&apos;s this going?

This PR added a new test, but mac-AS-debug-wk2 did nothing.
https://github.com/WebKit/WebKit/pull/7119

On the other hand, in the patch work flow, it works as expected.
https://bugs.webkit.org/show_bug.cgi?id=248812</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1918957</commentid>
    <comment_count>4</comment_count>
    <who name="Aakash Jain">aakash_jain</who>
    <bug_when>2022-12-13 15:41:19 -0800</bug_when>
    <thetext>Looking at https://ews-build.webkit.org/#/builders/62/builds/35773, it didn&apos;t have &quot;modified_tests&quot; build property, and find-modified-layout-tests step didn&apos;t log any output, it seems like self._get_patch() inside FindModifiedLayoutTests.start() didn&apos;t return the list of files from PR (https://github.com/WebKit/WebKit/blob/main/Tools/CISupport/ews-build/steps.py#L1249). 

_get_patch() (inside AnalyzeChange base class) was last changed in https://commits.webkit.org/246362@main to add support for PRs. Seems like it might not be working for PRs properly.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1919001</commentid>
    <comment_count>5</comment_count>
    <who name="Aakash Jain">aakash_jain</who>
    <bug_when>2022-12-13 16:59:45 -0800</bug_when>
    <thetext>Just for reference, here is an example of successful patch build: https://ews-build.webkit.org/#/builders/62/builds/42495

It has &apos;modified_tests&apos; build property set, and &apos;find-modified-layout-tests&apos; step also logs the test names.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1921096</commentid>
    <comment_count>6</comment_count>
    <who name="Ryan Haddad">ryanhaddad</who>
    <bug_when>2022-12-21 09:09:29 -0800</bug_when>
    <thetext>*** Bug 249719 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1926023</commentid>
    <comment_count>7</comment_count>
    <who name="Jonathan Bedard">jbedard</who>
    <bug_when>2023-01-17 10:26:55 -0800</bug_when>
    <thetext>Part of our problem here is clearly https://bugs.webkit.org/show_bug.cgi?id=250714, although I&apos;m not convinced that&apos;s our only problem. https://github.com/WebKit/WebKit/pull/4783 clearly had this problem, but https://github.com/WebKit/WebKit/pull/7119 doesn&apos;t, so there is something else going on.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1926154</commentid>
    <comment_count>8</comment_count>
    <who name="Jonathan Bedard">jbedard</who>
    <bug_when>2023-01-17 17:20:23 -0800</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/8744</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1926643</commentid>
    <comment_count>9</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2023-01-19 09:29:03 -0800</bug_when>
    <thetext>Committed 259088@main (692cd4308e63): &lt;https://commits.webkit.org/259088@main&gt;

Reviewed commits have been landed. Closing PR #8744 and removing active labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1944458</commentid>
    <comment_count>10</comment_count>
    <who name="Fujii Hironori">fujii</who>
    <bug_when>2023-03-27 18:34:51 -0700</bug_when>
    <thetext>This bug doesn&apos;t seem to be fixed. Reopened.
The following jobs did nothing for pull requests that added/changed tests.

https://ews-build.webkit.org/#/builders/8/builds/215
https://ews-build.webkit.org/#/builders/8/builds/776</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1950745</commentid>
    <comment_count>11</comment_count>
    <who name="Aakash Jain">aakash_jain</who>
    <bug_when>2023-04-24 05:28:34 -0700</bug_when>
    <thetext>We added more logging in 263193@main, which clearly indicates this issue. 

Almost every PR based build (e.g.: https://ews-build.webkit.org/#/builders/8/builds/3731), now shows the log &quot;Unable to access the patch/PR content.&quot; in find-modified-layout-tests step.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1950873</commentid>
    <comment_count>12</comment_count>
    <who name="Jonathan Bedard">jbedard</who>
    <bug_when>2023-04-24 14:42:24 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/13119</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1950874</commentid>
    <comment_count>13</comment_count>
    <who name="Jonathan Bedard">jbedard</who>
    <bug_when>2023-04-24 14:50:56 -0700</bug_when>
    <thetext>https://github.com/WebKit/WebKit/pull/13119 is a bit speculative, because our staging instance is not having these same problems.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1951048</commentid>
    <comment_count>14</comment_count>
    <who name="Jonathan Bedard">jbedard</who>
    <bug_when>2023-04-25 07:34:12 -0700</bug_when>
    <thetext>(In reply to Jonathan Bedard from comment #13)
&gt; https://github.com/WebKit/WebKit/pull/13119 is a bit speculative, because
&gt; our staging instance is not having these same problems.

Ok, https://github.com/WebKit/WebKit/pull/13119 is no longer speculative, I understand what&apos;s going on!

When buildbot triggers a build from another build, by default, it will re-compute the source stamp. For our EWS instance, this is always the wrong thing to do. EWS should use the source stamp from the triggering build, which will contain the list of modified files.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1951086</commentid>
    <comment_count>15</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2023-04-25 09:44:44 -0700</bug_when>
    <thetext>Committed 263376@main (47b0e0b8761c): &lt;https://commits.webkit.org/263376@main&gt;

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

    </bug>

</bugzilla>