<?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>97465</bug_id>
          
          <creation_ts>2012-09-24 10:33:05 -0700</creation_ts>
          <short_desc>test-webkitpy fails on windows when running with more than one child process</short_desc>
          <delta_ts>2012-09-25 15:23:40 -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>528+ (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></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Lucas Forschler">lforschler</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>lforschler</cc>
    
    <cc>roger_fong</cc>
    
    <cc>thorton</cc>
    
    <cc>webkit.review.bot</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>726816</commentid>
    <comment_count>0</comment_count>
    <who name="Lucas Forschler">lforschler</who>
    <bug_when>2012-09-24 10:33:05 -0700</bug_when>
    <thetext>On the mac windows debug test bot, the python tests are constantly failing.

I&apos;ve noticed that passing in -j 1 (to run with only one child process) seems to fix the issue.  the stack trace is as follows:


$ python ./Tools/Scripts/test-webkitpy -v -j 2
Suppressing most webkitpy logging while running unit tests.
Skipping tests in the following modules or packages because they are really,
lly, slow:
    webkitpy.common.checkout.scm.scm_unittest
    (https://bugs.webkit.org/show_bug.cgi?id=31818; use --all to include)

Running the tests ...Traceback (most recent call last):
  File &quot;/home/buildbot/slave/windows-debug-tests/build/OpenSource/Tools/Scri
webkitpy/test/main.py&quot;, line 227, in &lt;module&gt;
    sys.exit(main())
  File &quot;/home/buildbot/slave/windows-debug-tests/build/OpenSource/Tools/Scri
webkitpy/test/main.py&quot;, line 69, in main
    return not tester.run()
  File &quot;/home/buildbot/slave/windows-debug-tests/build/OpenSource/Tools/Scri
webkitpy/test/main.py&quot;, line 119, in run
    return self._run_tests(names)
  File &quot;/home/buildbot/slave/windows-debug-tests/build/OpenSource/Tools/Scri
webkitpy/test/main.py&quot;, line 154, in _run_tests
    test_runner.run(parallel_tests, self._options.child_processes)
  File &quot;/home/buildbot/slave/windows-debug-tests/build/OpenSource/Tools/Scri
webkitpy/test/runner.py&quot;, line 52, in run
    with message_pool.get(self, self.worker_factory, num_workers) as pool:
  File &quot;/home/buildbot/slave/windows-debug-tests/build/OpenSource/Tools/Scri
webkitpy/common/message_pool.py&quot;, line 61, in get
    return _MessagePool(caller, worker_factory, num_workers, worker_startup_
y_secs, host)
  File &quot;/home/buildbot/slave/windows-debug-tests/build/OpenSource/Tools/Scri
webkitpy/common/message_pool.py&quot;, line 79, in __init__
    self._messages_to_worker = multiprocessing.Queue()
  File &quot;/usr/lib/python2.6/multiprocessing/__init__.py&quot;, line 213, in Queue
    return Queue(maxsize)
  File &quot;/usr/lib/python2.6/multiprocessing/queues.py&quot;, line 37, in __init__
    self._rlock = Lock()
  File &quot;/usr/lib/python2.6/multiprocessing/synchronize.py&quot;, line 117, in __i
_
    SemLock.__init__(self, SEMAPHORE, 1, 1)
  File &quot;/usr/lib/python2.6/multiprocessing/synchronize.py&quot;, line 49, in __in

    sl = self._semlock = _multiprocessing.SemLock(kind, value, maxvalue)
OSError: [Errno 17] File exists</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>726819</commentid>
    <comment_count>1</comment_count>
    <who name="Lucas Forschler">lforschler</who>
    <bug_when>2012-09-24 10:35:11 -0700</bug_when>
    <thetext>On the one mac bot we have, running with j=1 takes about 70 seconds.  It is not significantly faster running parallel (around 40 seconds), so we could turn off parallel running to get the bot back online.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>726847</commentid>
    <comment_count>2</comment_count>
      <attachid>165412</attachid>
    <who name="Lucas Forschler">lforschler</who>
    <bug_when>2012-09-24 11:03:24 -0700</bug_when>
    <thetext>Created attachment 165412
Tell Windows bot to use only one child process</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>727991</commentid>
    <comment_count>3</comment_count>
      <attachid>165412</attachid>
    <who name="Tim Horton">thorton</who>
    <bug_when>2012-09-25 14:59:28 -0700</bug_when>
    <thetext>Comment on attachment 165412
Tell Windows bot to use only one child process

Is there a bug to actually fix the failure?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>728013</commentid>
    <comment_count>4</comment_count>
      <attachid>165412</attachid>
    <who name="WebKit Review Bot">webkit.review.bot</who>
    <bug_when>2012-09-25 15:23:37 -0700</bug_when>
    <thetext>Comment on attachment 165412
Tell Windows bot to use only one child process

Clearing flags on attachment: 165412

Committed r129561: &lt;http://trac.webkit.org/changeset/129561&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>728014</commentid>
    <comment_count>5</comment_count>
    <who name="WebKit Review Bot">webkit.review.bot</who>
    <bug_when>2012-09-25 15:23:40 -0700</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>165412</attachid>
            <date>2012-09-24 11:03:24 -0700</date>
            <delta_ts>2012-09-25 15:23:37 -0700</delta_ts>
            <desc>Tell Windows bot to use only one child process</desc>
            <filename>97465.patch</filename>
            <type>text/plain</type>
            <size>1646</size>
            <attacher name="Lucas Forschler">lforschler</attacher>
            
              <data encoding="base64">SW5kZXg6IFRvb2xzL0NoYW5nZUxvZwo9PT09PT09PT09PT09PT09P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
c3Rlci5jZmcKPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PQotLS0gVG9vbHMvQnVpbGRTbGF2ZVN1cHBvcnQvYnVpbGQud2Vi
a2l0Lm9yZy1jb25maWcvbWFzdGVyLmNmZwkocmV2aXNpb24gMTI5Mzg3KQorKysgVG9vbHMvQnVp
bGRTbGF2ZVN1cHBvcnQvYnVpbGQud2Via2l0Lm9yZy1jb25maWcvbWFzdGVyLmNmZwkod29ya2lu
ZyBjb3B5KQpAQCAtNDcwLDYgKzQ3MCwxMCBAQCBjbGFzcyBSdW5QeXRob25UZXN0cyhUZXN0V2l0
aEZhaWx1cmVDb3VuCiAgICAgICAgICMgaGVscHMgYW5kIGRvZXMgbm90IHNpZ25pZmljYW50bHkg
cHJvbG9uZyB0aGUgY3ljbGUgdGltZS4KICAgICAgICAgaWYgcGxhdGZvcm0gPT0gJ2d0ayc6CiAg
ICAgICAgICAgICBzZWxmLnNldENvbW1hbmQoc2VsZi5jb21tYW5kICsgWyctLWNoaWxkLXByb2Nl
c3NlcycsICcxJ10pCisgICAgICAgICMgUHl0aG9uIHRlc3RzIGZhaWwgb24gd2luZG93cyBib3Rz
IHdoZW4gcnVubmluZyBtb3JlIHRoYW4gb25lIGNoaWxkIHByb2Nlc3MKKyAgICAgICAgIyBodHRw
czovL2J1Z3Mud2Via2l0Lm9yZy9zaG93X2J1Zy5jZ2k/aWQ9OTc0NjUKKyAgICAgICAgaWYgcGxh
dGZvcm0gPT0gJ3dpbic6CisgICAgICAgICAgICBzZWxmLnNldENvbW1hbmQoc2VsZi5jb21tYW5k
ICsgWyctLWNoaWxkLXByb2Nlc3NlcycsICcxJ10pCiAgICAgICAgIHJldHVybiBzaGVsbC5UZXN0
LnN0YXJ0KHNlbGYpCiAKICAgICBkZWYgY291bnRGYWlsdXJlcyhzZWxmLCBjbWQpOgo=
</data>

          </attachment>
      

    </bug>

</bugzilla>