<?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>178517</bug_id>
          
          <creation_ts>2017-10-19 08:40:10 -0700</creation_ts>
          <short_desc>[Win] The number of webkit-patch iterations on EWS should be configurable.</short_desc>
          <delta_ts>2017-12-06 16:47:08 -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>
          
          
          <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="Per Arne Vollan">pvollan</reporter>
          <assigned_to name="Per Arne Vollan">pvollan</assigned_to>
          <cc>achristensen</cc>
    
    <cc>ap</cc>
    
    <cc>bfulgham</cc>
    
    <cc>commit-queue</cc>
    
    <cc>darin</cc>
    
    <cc>lforschler</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1362151</commentid>
    <comment_count>0</comment_count>
    <who name="Per Arne Vollan">pvollan</who>
    <bug_when>2017-10-19 08:40:10 -0700</bug_when>
    <thetext>Currently, it is set to 10.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1362155</commentid>
    <comment_count>1</comment_count>
      <attachid>324239</attachid>
    <who name="Per Arne Vollan">pvollan</who>
    <bug_when>2017-10-19 08:45:39 -0700</bug_when>
    <thetext>Created attachment 324239
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1362164</commentid>
    <comment_count>2</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2017-10-19 09:15:36 -0700</bug_when>
    <thetext>Why is this desirable? With this change, we&apos;ll need to manually change each bot in order to change the count, which will be more work and more error prone than how it works now.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1362178</commentid>
    <comment_count>3</comment_count>
    <who name="Per Arne Vollan">pvollan</who>
    <bug_when>2017-10-19 09:44:45 -0700</bug_when>
    <thetext>(In reply to Alexey Proskuryakov from comment #2)
&gt; Why is this desirable? With this change, we&apos;ll need to manually change each
&gt; bot in order to change the count, which will be more work and more error
&gt; prone than how it works now.

I have seen the webkit-patch script get stuck on EWS a couple of times, so this is an attempt to avoid that by setting the webkit-patch iteration to a lower value than what it currently is. Alternatively, we could just set it to 1. What do you think?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1362180</commentid>
    <comment_count>4</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2017-10-19 09:52:40 -0700</bug_when>
    <thetext>This count just affects how frequently EWS updates its code, and re-runs webkitpy tests. I don&apos;t think that it&apos;s likely that changing the number will help with bots getting stuck.

Perhaps you are seeing rdar://problem/35074576?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1362183</commentid>
    <comment_count>5</comment_count>
    <who name="Per Arne Vollan">pvollan</who>
    <bug_when>2017-10-19 09:58:56 -0700</bug_when>
    <thetext>(In reply to Alexey Proskuryakov from comment #4)
&gt; This count just affects how frequently EWS updates its code, and re-runs
&gt; webkitpy tests. I don&apos;t think that it&apos;s likely that changing the number will
&gt; help with bots getting stuck.
&gt; 
&gt; Perhaps you are seeing rdar://problem/35074576?

That could very well be the case.

I also found this python crash log on one of the stuck EWS bots:

SIGTERM signal receivedTraceback(most recent call last):
  File &quot;/home/buildbot/WebKit/Tools/Scripts/webkitpy/layout_tests/run_webkit_tests.py&quot;, line 456, in &lt;module&gt;
    sys.exit(main(sys.argv[1:], sys.stdout, sys.stderr))
  File &quot;/home/buildbot/WebKit/Tools/Scripts/webkitpy/layout_tests/run_webkit_tests.py&quot;, line 89, in main
    run_details = run(port, options, args, stderr)
  File &quot;/home/buildbot/WebKit/Tools/Scripts/webkitpy/layout_tests/run_webkit_tests.py&quot;, line 449, in run
    run_details = manager.run(args)
  File &quot;/home/buildbot/WebKit/Tools/Scripts/webkitpy/layout_tests/controllers/manager.py&quot;, line 249, in run
    initial_results, retry_results, enabled_pixel_tests_in_retry = self._run_test_subset(default_device_tests, tests_to_skip)
  File &quot;/home/buildbot/WebKit/Tools/Scripts/webkitpy/layout_tests/controllers/manager.py&quot;, line 273, in _run_test_subset
    initial_results = self._run_tests(tests_to_run, tests_to_skip, self._options.repeat_each, self._options.iterations, int(self._options.child_processes), retrying=False)
  File &quot;/home/buildbot/WebKit/Tools/Scripts/webkitpy/layout_tests/controllers/manager.py&quot;, line 330, in _run_tests
    return self._runner.run_tests(self._expectations, test_inputs, tests_to_skip, num_workers, retrying)
  File &quot;/home/buildbot/WebKit/Tools/Scripts/webkitpy/layout_tests/controllers/layout_test_runner.py&quot;, line 123, in run_tests
    pool.run((&apos;test_list&apos;, shard.name, shard.test_inputs) for shard in all_shards)
  File &quot;/home/buildbot/WebKit/Tools/Scripts/webkitpy/common/message_pool.py&quot;, line 97, in run
    self.wait()
  File &quot;/home/buildbot/WebKit/Tools/Scripts/webkitpy/common/message_pool.py&quot;, line 127, in wait
    self._start_workers()
  File &quot;/home/buildbot/WebKit/Tools/Scripts/webkitpy/common/message_pool.py&quot;, line 109, in _start_workers
    worker.start()
  File &quot;/home/buildbot/WebKit/Tools/Scripts/webkitpy/common/message_pool.py&quot;, line 239, in start
    super(_Worker, self).start()
  File &quot;/usr/lib/python2.7/multiprocessing/process.py&quot;, line 130, in start
    self._popen = Popen(self)
  File &quot;/usr/lib/python2.7/multiprocessing/forking.py&quot;, line 126, in __init__
    code = process_obj._bootstrap()
  File &quot;/usr/lib/python2.7/multiprocessing/process.py&quot;, line 258, in _bootstrap
    self.run()
  File &quot;/home/buildbot/WebKit/Tools/Scripts/webkitpy/common/message_pool.py&quot;, line 257, in run
    worker.handle(message.name, message.src, *message.args)
  File &quot;/home/buildbot/WebKit/Tools/Scripts/webkitpy/layout_tests/controllers/layout_test_runner.py&quot;, line 261, in handle
    self._run_test(test_input, test_list_name)
  File &quot;/home/buildbot/WebKit/Tools/Scripts/webkitpy/layout_tests/controllers/layout_test_runner.py&quot;, line 285, in _run_test
    result = self._run_test_with_or_without_timeout(test_input, test_timeout_sec, stop_when_done)
  File &quot;/home/buildbot/WebKit/Tools/Scripts/webkitpy/layout_tests/controllers/layout_test_runner.py&quot;, line 328, in _run_test_with_or_without_timeout
    return self._run_test_in_this_thread(test_input, stop_when_done)
  File &quot;/home/buildbot/WebKit/Tools/Scripts/webkitpy/layout_tests/controllers/layout_test_runner.py&quot;, line 409, in _run_test_in_this_thread
    return self._run_single_test(self._driver, test_input, stop_when_done)
  File &quot;/home/buildbot/WebKit/Tools/Scripts/webkitpy/layout_tests/controllers/layout_test_runner.py&quot;, line 413, in _run_single_test
    self._name, driver, test_input, stop_when_done)
  File &quot;/home/buildbot/WebKit/Tools/Scripts/webkitpy/layout_tests/controllers/single_test_runner.py&quot;, line 46, in run_single_test
    return runner.run()
  File &quot;/home/buildbot/WebKit/Tools/Scripts/webkitpy/layout_tests/controllers/single_test_runner.py&quot;, line 105, in run
    return self._run_compare_test()
  File &quot;/home/buildbot/WebKit/Tools/Scripts/webkitpy/layout_tests/controllers/single_test_runner.py&quot;, line 108, in _run_compare_test
    driver_output = self._driver.run_test(self._driver_input(), self._stop_when_done)
  File &quot;/home/buildbot/WebKit/Tools/Scripts/webkitpy/port/driver.py&quot;, line 693, in run_test
    return self._driver.run_test(driver_input, stop_when_done)
  File &quot;/home/buildbot/WebKit/Tools/Scripts/webkitpy/port/driver.py&quot;, line 228, in run_test
    self.error_from_test, crash_log = self._get_crash_log(text, self.error_from_test, newer_than=start_time)
  File &quot;/home/buildbot/WebKit/Tools/Scripts/webkitpy/port/driver.py&quot;, line 245, in _get_crash_log
    return self._port._get_crash_log(self._crashed_process_name, self._crashed_pid, stdout, stderr, newer_than, target_host=self._target_host)
  File &quot;/home/buildbot/WebKit/Tools/Scripts/webkitpy/port/win.py&quot;, line 396, in _get_crash_log
    crash_log = crash_logs.find_newest_log(name, system_pid, include_errors=True, newer_than=newer_than)
  File &quot;/home/buildbot/WebKit/Tools/Scripts/webkitpy/common/system/crashlogs.py&quot;, line 53, in find_newest_log
    return self._find_newest_log_win(process_name, pid, include_errors, newer_than)
  File &quot;/home/buildbot/WebKit/Tools/Scripts/webkitpy/common/system/crashlogs.py&quot;, line 106, in _find_newest_log_win
    logs = self._host.filesystem.files_under(self._crash_log_directory, file_filter=is_crash_log)
  File &quot;/home/buildbot/WebKit/Tools/Scripts/webkitpy/common/system/filesystem.py&quot;, line 132, in files_under
    for (dirpath, dirnames, filenames) in os.walk(path):
  File &quot;/usr/lib/python2.7/os.py&quot;, line 296, in walk
    for x in walk(new_path, topdown, onerror, followlinks):
  File &quot;/usr/lib/python2.7/os.py&quot;, line 278, in walk
    names = listdir(top)
  File &quot;/usr/lib/python2.7/encodings/utf_8.py&quot;, line 15, in decode
    def decode(input, errors=&apos;strict&apos;):</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1374938</commentid>
    <comment_count>6</comment_count>
      <attachid>324239</attachid>
    <who name="Per Arne Vollan">pvollan</who>
    <bug_when>2017-11-27 08:33:14 -0800</bug_when>
    <thetext>Comment on attachment 324239
Patch

Thanks for reviewing!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1374940</commentid>
    <comment_count>7</comment_count>
      <attachid>324239</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2017-11-27 08:34:23 -0800</bug_when>
    <thetext>Comment on attachment 324239
Patch

Rejecting attachment 324239 from commit-queue.

Failed to run &quot;[&apos;/Volumes/Data/EWS/WebKit/Tools/Scripts/webkit-patch&apos;, &apos;--status-host=webkit-queues.webkit.org&apos;, &apos;--bot-id=webkit-cq-03&apos;, &apos;apply-attachment&apos;, &apos;--no-update&apos;, &apos;--non-interactive&apos;, 324239, &apos;--port=mac&apos;]&quot; exit_code: 2 cwd: /Volumes/Data/EWS/WebKit

Last 500 characters of output:
&apos;--force&apos;, &apos;--reviewer&apos;, u&apos;Darin Adler&apos;]&quot; exit_code: 1 cwd: /Volumes/Data/EWS/WebKit

Parsed 2 diffs from patch file(s).
patching file Tools/ChangeLog
Hunk #1 succeeded at 1 with fuzz 3.
patching file Tools/EWSTools/start-queue-win.sh
Hunk #2 FAILED at 62.
1 out of 2 hunks FAILED -- saving rejects to file Tools/EWSTools/start-queue-win.sh.rej

Failed to run &quot;[u&apos;/Volumes/Data/EWS/WebKit/Tools/Scripts/svn-apply&apos;, &apos;--force&apos;, &apos;--reviewer&apos;, u&apos;Darin Adler&apos;]&quot; exit_code: 1 cwd: /Volumes/Data/EWS/WebKit

Full output: http://webkit-queues.webkit.org/results/5375340</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1374969</commentid>
    <comment_count>8</comment_count>
    <who name="Per Arne Vollan">pvollan</who>
    <bug_when>2017-11-27 09:44:29 -0800</bug_when>
    <thetext>Committed r225178: &lt;https://trac.webkit.org/changeset/225178/webkit&gt;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1378917</commentid>
    <comment_count>9</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2017-12-06 16:47:08 -0800</bug_when>
    <thetext>&lt;rdar://problem/35896588&gt;</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>324239</attachid>
            <date>2017-10-19 08:45:39 -0700</date>
            <delta_ts>2017-11-27 08:34:23 -0800</delta_ts>
            <desc>Patch</desc>
            <filename>bug-178517-20171019084534.patch</filename>
            <type>text/plain</type>
            <size>1713</size>
            <attacher name="Per Arne Vollan">pvollan</attacher>
            
              <data encoding="base64">SW5kZXg6IFRvb2xzL0NoYW5nZUxvZwo9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBUb29scy9DaGFuZ2VMb2cJKHJl
dmlzaW9uIDIyMzY4OCkKKysrIFRvb2xzL0NoYW5nZUxvZwkod29ya2luZyBjb3B5KQpAQCAtMSwz
ICsxLDE0IEBACisyMDE3LTEwLTE5ICBQZXIgQXJuZSBWb2xsYW4gIDxwdm9sbGFuQGFwcGxlLmNv
bT4KKworICAgICAgICBbV2luXSBUaGUgbnVtYmVyIG9mIHdlYmtpdC1wYXRjaCBpdGVyYXRpb25z
IG9uIEVXUyBzaG91bGQgYmUgY29uZmlndXJhYmxlLgorICAgICAgICBodHRwczovL2J1Z3Mud2Vi
a2l0Lm9yZy9zaG93X2J1Zy5jZ2k/aWQ9MTc4NTE3CisKKyAgICAgICAgUmV2aWV3ZWQgYnkgTk9C
T0RZIChPT1BTISkuCisKKyAgICAgICAgQWRkIGEgbmV3IFJFU0VUX0FGVEVSX0lURVJBVElPTiBh
cmd1bWVudCB0byB0aGUgRVdTIHNoZWxsIHNjcmlwdC4KKworICAgICAgICAqIEVXU1Rvb2xzL3N0
YXJ0LXF1ZXVlLXdpbi5zaDoKKwogMjAxNy0xMC0xOCAgUnlvc3VrZSBOaXdhICA8cm5pd2FAd2Vi
a2l0Lm9yZz4KIAogICAgICAgICBEb24ndCBleHBvc2UgcmF3IEhUTUwgaW4gcGFzdGVib2FyZCB0
byB0aGUgd2ViIGNvbnRlbnQKSW5kZXg6IFRvb2xzL0VXU1Rvb2xzL3N0YXJ0LXF1ZXVlLXdpbi5z
aAo9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09Ci0tLSBUb29scy9FV1NUb29scy9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lci1pdGVyYXRpb24gJFJFU0VUX0FGVEVSX0lURVJB
VElPTgogICAgICAgICBlY2hvICJUQVNLOiBraWxsIG9sZCBwcm9jZXNzZXMiCiAgICAgICAgIH4v
V2ViS2l0L1Rvb2xzL0J1aWxkU2xhdmVTdXBwb3J0L2tpbGwtb2xkLXByb2Nlc3NlcwogICAgIGRv
bmUK
</data>
<flag name="review"
          id="343882"
          type_id="1"
          status="+"
          setter="darin"
    />
    <flag name="commit-queue"
          id="346831"
          type_id="3"
          status="-"
          setter="commit-queue"
    />
          </attachment>
      

    </bug>

</bugzilla>