#845: shutil.copytree timeout for mode=copy
----------------------------+--------------------
Reporter:  phil             |       Owner:
    Type:  defect           |      Status:  new
Priority:  major            |   Milestone:  0.8.+
 Version:  0.7.12           |  Resolution:
Keywords:  windows, simple  |
----------------------------+--------------------

Comment (by phil):

 Hello Dustin

 I've only used Python for configuring buildbot and Twisted is a box of
 magic to me but you make it sound like we could replace the

         if runtime.platformType != "posix":
             self.sendStatus({'header': "Since we're on a non-POSIX
 platform, "
             "we're not going to try to execute cp in a subprocess, but
 instead "
             "use shutil.copytree(), which will block until it is complete.
 "
             "fromdir: %s, todir: %s\n" % (fromdir, todir)})

             shutil.copytree(fromdir, todir)

             d = defer.succeed(0)
         else:

 by something such as

         if runtime.platformType != "posix":

             d = ?.deferToThread(shutil.copy, fromdir, todir)

             # add some error callback here?

             return d
         else:

 to resolve the timeout issue?

-- 
Ticket URL: <http://trac.buildbot.net/ticket/845#comment:12>
Buildbot <http://buildbot.net/>
Buildbot: build/test automation
------------------------------------------------------------------------------
The demand for IT networking professionals continues to grow, and the
demand for specialized networking skills is growing even more rapidly.
Take a complimentary Learning@Cisco Self-Assessment and learn 
about Cisco certifications, training, and career opportunities. 
http://p.sf.net/sfu/cisco-dev2dev
_______________________________________________
Buildbot-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/buildbot-commits

Reply via email to