[Buildbot-commits] [Buildbot] #845: shutil.copytree timeout for mode=copy

Buildbot nobody at buildbot.net
Fri Oct 28 13:46:36 UTC 2011


#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


More information about the Commits mailing list