On Tue, Dec 14, 2021 at 10:52:26PM +0200, Andreas Gustafsson wrote:
> All,
> 
> The TNF testbed is currently failing to start new builds because it is
> unable to remove the objdirs from previous builds using the Python
> equivalent of "rm -rf".
> 
> Specifically, after the i386 build fails the way it currently does,
> the objdir contains two directories with mode 0111, which rm -rf is
> unable to remove:
> 
>   obj/distrib/i386/cdroms/bootcd/cdrom/var/spool/ftp/hidden
>   obj/distrib/i386/cdroms/bootcd-com/cdrom/var/spool/ftp/hidden
> 
> The work-around is to manually chmod the directories to 0755 before
> removing the objdir, but until I get around to automating that on the
> testbed, you can expect a reduced level of automated testing service.
> Also, you may want to be on the lookout for this failure mode in your
> own builds (or the cleanup after them).

I see chmod-ing this directory appear in the build logs:

Creating rootfs...
chmod +r work/var/spool/ftp/hidden
/bracket/obj4/tooldir.NetBSD-9.99.92-amd64/bin/nbmakefs -M 1751121920 -m 
1751121920                      -B 1234                                         
-F work.spec -N work/etc                                                        
                        -o bsize=16384,fsize=2048,density=8192                  
        work.rootfs work

So I guess if the previous step fails, you can't rm the directory.

pgoyette pointed out that my symlink is also a file, and I hope fixing
this is enough to fix all the cryptic issues.

Reply via email to