clean_buildout_dir= steps.RemoveDirectory( name= util.Interpolate("Clean_build_out_folder"), dir='../build_out', haltOnFailure= False, flunkOnFailure= False, description= util.Interpolate("Cleaning the ../build_out directory"), )
fails on my Windows 10 worker, this nearly-equivalent ShellCommand step shell_clean_buildout_dir= steps.ShellCommand( name= util.Interpolate("Clean_build_out_folder"), command= [ 'rmdir', '/s', '/q', r'..\build_out', ], haltOnFailure= False, flunkOnFailure= False, description= util.Interpolate("Cleaning the ../build_out directory"), ) succeeds.The RemoveDirectory step fails even if I use the Windows backslash path separator dir = r'..\build_out', which should make it more similar to the successful ShellCommand step.
I'd prefer to have a single RemoveDirectory step that would work on both my Windows 10 worker as well as my Linux workers, but I don't know how to diagnose why RemoveDirectory is failing. What is it doing different from the similar ShellCommand step above?
-Greg On 2/26/2021 2:16 PM, Greg Bullock wrote:
How to track down why the RemoveDirectory step fails on my Windows 10 worker? I'm using* Python version: 3.6.8 * Buildbot version: 2.8.3 * Twisted version: 19.10.0On my Windows 10 worker, the RemoveDirectory step consistently fails. The twistd.log shows the failure but gives no details about why it occurs:2021-02-2614:00:28-0800 [-] sending ping 2021-02-2614:00:28-0800 [Broker,0,10.20.0.122] ping finished: success2021-02-2614:00:28-0800 [-] <RemoteCommand 'rmdir' at 140550964187032>: RemoteCommand.run [0] 2021-02-2614:00:28-0800 [Broker,0,10.20.0.122] <RemoteCommand 'rmdir' at 140550964187032> rc=-12021-02-2614:00:28-0800 [-] releaseLocks(RemoveDirectory(name=Interpolate('Clean_%(prop:cmake_fortran)s_x64_build_folder'), dir='build_out', haltOnFailure=False, flunkOnFailure=False, description=Interpolate('Cleaning the build directory for the %(prop:cmake_fortran)s %(prop:cmake_threads)s-threaded %(prop:lib_linking)s-library configuration of GPSII'))): []2021-02-2614:00:28-0800 [-] step 'Clean_gfortran_x64_build_folder' complete: failure (None) 2021-02-2614:00:28-0800 [-] <RemoteShellCommand '['svn', '--version']'>: RemoteCommand.run [1]2021-02-2614:00:28-0800 [-] command '['svn', '--version']' in dir 'build'2021-02-2614:00:28-0800 [Broker,0,10.20.0.122] <RemoteShellCommand '['svn', '--version']'> rc=0Is there a way to enable more detailed diagnostics? And by the way, thank you all who've contributed to this great tool! -Greg _______________________________________________ users mailing list users@buildbot.net https://lists.buildbot.net/mailman/listinfo/users
-- Greg Bullock NorthWest Research Associates 301 Webster St. Monterey, CA 93940 (831) 582-4907 g...@nwra.com
smime.p7s
Description: S/MIME Cryptographic Signature
_______________________________________________ users mailing list users@buildbot.net https://lists.buildbot.net/mailman/listinfo/users