<?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>252244</bug_id>
          
          <creation_ts>2023-02-14 08:40:35 -0800</creation_ts>
          <short_desc>EWS is not adding merging-blocked label on PRs</short_desc>
          <delta_ts>2023-03-09 11:16:34 -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>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=253451</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="Ryan Reno">rreno</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>1933491</commentid>
    <comment_count>0</comment_count>
    <who name="Ryan Reno">rreno</who>
    <bug_when>2023-02-14 08:40:35 -0800</bug_when>
    <thetext>My PR https://github.com/WebKit/WebKit/pull/10069 had build failures on Linux and Windows and test failures on all flavors of macOS. I would have expected EWS to put the merging-blocked label on this PR from past experience. This didn&apos;t happen.

It&apos;s somewhat benign - I wouldn&apos;t merge this in this state anyway. I wonder if this is a symptom of another underlying problem in EWS though.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1933492</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2023-02-14 08:40:49 -0800</bug_when>
    <thetext>&lt;rdar://problem/105452651&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1933864</commentid>
    <comment_count>2</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2023-02-15 10:15:34 -0800</bug_when>
    <thetext>Aakash can comment more authoritatively, but I&apos;ve come to expect issues like this to be caused by web hooks not getting served for whatever reason (networking failures, EWS getting overloaded or being restarted).

I wonder if we can make web hook handling more robust in general.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1933875</commentid>
    <comment_count>3</comment_count>
    <who name="Aakash Jain">aakash_jain</who>
    <bug_when>2023-02-15 10:53:33 -0800</bug_when>
    <thetext>Just for reference here are few builds which failed (and should have added the merging-blocked label):
https://ews-build.webkit.org/#/builders/73/builds/28498
https://ews-build.webkit.org/#/builders/70/builds/29847
https://ews-build.webkit.org/#/builders/84/builds/6742
https://ews-build.webkit.org/#/builders/8/builds/116784
https://ews-build.webkit.org/#/builders/36/builds/99807

In all of those, the last step &quot;block-pull-request&quot; was skipped, which means that EWS did not attempted to put the label on PR.

It was skipped because EWS thought that the commit was obsolete at that time (because of new push on the PR). Need to check further if that was indeed the case.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1939803</commentid>
    <comment_count>4</comment_count>
    <who name="Aakash Jain">aakash_jain</who>
    <bug_when>2023-03-08 11:40:34 -0800</bug_when>
    <thetext>We added some more logging in the UI in https://bugs.webkit.org/show_bug.cgi?id=253451

In https://ews-build.webkit.org/#/builders/12/builds/120226 the logging says: &quot;Skipping this step as hash 16e666579113e2e006564ecd5965fd6a9903b06d is outdated.&quot;

However, that&apos;s incorrect, the hash is NOT outdated. Even as of right now, that is the latest hash on that PR (https://github.com/WebKit/WebKit/pull/11089).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1939809</commentid>
    <comment_count>5</comment_count>
    <who name="Aakash Jain">aakash_jain</who>
    <bug_when>2023-03-08 11:52:06 -0800</bug_when>
    <thetext>The last successful instance of adding merging-blocked label seems to be on Feb 8, 2023 in https://ews-build.webkit.org/#/builders/73/builds/27686 (till feb 8 block-pull-request  step was adding adding merging-blocked label on lot of PRs (~100/day), but after that it abruptly stopped. So seems like something regressed around that time.

There were few changes landed around that time as well. e.g.: this PR modified _is_hash_outdated method which is being used by block-pull-request: https://github.com/WebKit/WebKit/pull/9554/files</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1939837</commentid>
    <comment_count>6</comment_count>
    <who name="Jonathan Bedard">jbedard</who>
    <bug_when>2023-03-08 13:39:57 -0800</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/11253</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1940013</commentid>
    <comment_count>7</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2023-03-09 03:59:16 -0800</bug_when>
    <thetext>Committed 261420@main (a2ee6d8fbe53): &lt;https://commits.webkit.org/261420@main&gt;

Reviewed commits have been landed. Closing PR #11253 and removing active labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1940141</commentid>
    <comment_count>8</comment_count>
    <who name="Aakash Jain">aakash_jain</who>
    <bug_when>2023-03-09 11:16:15 -0800</bug_when>
    <thetext>buildbot was restarted this morning to pick up this change.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1940142</commentid>
    <comment_count>9</comment_count>
    <who name="Aakash Jain">aakash_jain</who>
    <bug_when>2023-03-09 11:16:34 -0800</bug_when>
    <thetext>Seems to be working fine.
e.g.: merging-blocked label was added in https://ews-build.webkit.org/#/builders/82/builds/13840</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>