<?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>97647</bug_id>
          
          <creation_ts>2012-09-26 02:10:47 -0700</creation_ts>
          <short_desc>A buggy python patch can kill all EWS bots</short_desc>
          <delta_ts>2025-04-17 23:42:35 -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>New Bugs</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P1</priority>
          <bug_severity>Critical</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Csaba Osztrogonác">ossy</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>abarth</cc>
    
    <cc>aqeelalamdp</cc>
    
    <cc>dpranke</cc>
    
    <cc>eric</cc>
    
    <cc>jbadics</cc>
    
    <cc>kadam</cc>
    
    <cc>ossy</cc>
    
    <cc>peter</cc>
    
    <cc>rniwa</cc>
    
    <cc>Sean.Roshon</cc>
    
    <cc>tony</cc>
    
    <cc>zarvai</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>728335</commentid>
    <comment_count>0</comment_count>
    <who name="Csaba Osztrogonác">ossy</who>
    <bug_when>2012-09-26 02:10:47 -0700</bug_when>
    <thetext>https://bugs.webkit.org/attachment.cgi?id=165713 in https://bugs.webkit.org/show_bug.cgi?id=97623
killed all EWS bots, they stucked in an infinite loop with the following error:

Traceback (most recent call last):
  File &quot;/mnt/git/webkit-style-queue/Tools/Scripts/webkit-patch&quot;, line 84, in &lt;module&gt;
    main()
  File &quot;/mnt/git/webkit-style-queue/Tools/Scripts/webkit-patch&quot;, line 79, in main
    WebKitPatch(os.path.abspath(__file__)).main()
  File &quot;/mnt/git/webkit-style-queue/Tools/Scripts/webkitpy/tool/main.py&quot;, line 55, in __init__
    MultiCommandTool.__init__(self)
  File &quot;/mnt/git/webkit-style-queue/Tools/Scripts/webkitpy/tool/multicommandtool.py&quot;, line 221, in __init__
    self.commands = commands or [cls() for cls in self._find_all_commands() if cls.name]
  File &quot;/mnt/git/webkit-style-queue/Tools/Scripts/webkitpy/tool/commands/rebaseline.py&quot;, line 185, in __init__
    AbstractRebaseliningCommand.__init__(self, options=port_options(platform=&apos;port/platform to use. Use glob-style wildcards for multiple ports&apos;))
NameError: global name &apos;port_options&apos; is not defined


We need a proper way to avoid this kind of problems in the future.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>728573</commentid>
    <comment_count>1</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2012-09-26 08:10:36 -0700</bug_when>
    <thetext>All the bots Adam and I run use a wrapper script which cleans the repository every N runs.

http://trac.webkit.org/browser/trunk/Tools/EWSTools/start-queue.sh

Note the git clean and the test-webkit-py invocations.

Are those not working?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>728582</commentid>
    <comment_count>2</comment_count>
    <who name="Csaba Osztrogonác">ossy</who>
    <bug_when>2012-09-26 08:23:39 -0700</bug_when>
    <thetext>I use this script of course. But the problem was that EWS stucked in an infinite
loop and didn&apos;t exit to let this script to clean the repository. 

Here is the latest log I got:
------------------------------
Fetching: https://bugs.webkit.org/attachment.cgi?id=165715&amp;action=edit
Fetching: https://bugs.webkit.org/show_bug.cgi?id=97535&amp;ctype=xml&amp;excludefield=attachmentdata
Fetching: https://bugs.webkit.org/attachment.cgi?id=165715&amp;action=edit
Fetching: https://bugs.webkit.org/show_bug.cgi?id=97535&amp;ctype=xml&amp;excludefield=attachmentdata
Traceback (most recent call last):
  File &quot;/storage/WebKit-qt-ews/Tools/Scripts/webkit-patch&quot;, line 84, in &lt;module&gt;
    main()
  File &quot;/storage/WebKit-qt-ews/Tools/Scripts/webkit-patch&quot;, line 79, in main
    WebKitPatch(os.path.abspath(__file__)).main()
  File &quot;/storage/WebKit-qt-ews/Tools/Scripts/webkitpy/tool/main.py&quot;, line 55, in __init__
    MultiCommandTool.__init__(self)
  File &quot;/storage/WebKit-qt-ews/Tools/Scripts/webkitpy/tool/multicommandtool.py&quot;, line 221, in __init__
    self.commands = commands or [cls() for cls in self._find_all_commands() if cls.name]
  File &quot;/storage/WebKit-qt-ews/Tools/Scripts/webkitpy/tool/commands/rebaseline.py&quot;, line 185, in __init__
    AbstractRebaseliningCommand.__init__(self, options=port_options(platform=&apos;port/platform to use. Use glob-style wildcards for multiple ports&apos;))
NameError: global name &apos;port_options&apos; is not defined
Unable to clean working directory
Unable to process work item.
Fetching: https://bugs.webkit.org/attachment.cgi?id=165715&amp;action=edit
Fetching: https://bugs.webkit.org/show_bug.cgi?id=97535&amp;ctype=xml&amp;excludefield=attachmentdata
Error: qt-ews did not process patch.
Unable to process work item.
Fetching: https://bugs.webkit.org/attachment.cgi?id=165717&amp;action=edit
Fetching: https://bugs.webkit.org/show_bug.cgi?id=97535&amp;ctype=xml&amp;excludefield=attachmentdata
Error: qt-ews did not process patch.
Unable to process work item.


And then EWS stucked in the infinite loop until I r- -ed the patch and restarted it manually.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>728595</commentid>
    <comment_count>3</comment_count>
    <who name="Csaba Osztrogonác">ossy</who>
    <bug_when>2012-09-26 08:33:13 -0700</bug_when>
    <thetext>I don&apos;t know exactly how should we fix this bug ... 

My idea is we should detect somehow if the EWS stucked in an infinite loop.
Maybe with an external script with a given timeout ... EWS should signal to
this script if it finished a build and started the next one. If it didn&apos;t
finish in the timeout, the script can restart it with a clean env.

Additionally we should remove the buggy patch from the EWS queue 
after 2-3 retries to save the life of the EWS bots.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>728624</commentid>
    <comment_count>4</comment_count>
    <who name="Adam Barth">abarth</who>
    <bug_when>2012-09-26 08:59:30 -0700</bug_when>
    <thetext>&gt; Additionally we should remove the buggy patch from the EWS queue 
&gt; after 2-3 retries to save the life of the EWS bots.

Yeah, that sounds like a good approach.  At least that will stop us from spinning on a patch forever.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>876407</commentid>
    <comment_count>5</comment_count>
    <who name="Csaba Osztrogonác">ossy</who>
    <bug_when>2013-04-16 02:08:05 -0700</bug_when>
    <thetext>One more problem because of this bug, see https://bugs.webkit.org/show_bug.cgi?id=114668 for details.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>876409</commentid>
    <comment_count>6</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2013-04-16 02:10:25 -0700</bug_when>
    <thetext>I think EWS should create a copy of Tools/Scripts and use that instead.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>