Skip to contentSkip to conversation

builders.py: At the end of trigger builds use rm rather than clobber to clean up

yocto-autobuilder2 Steve Sakoman 1 participant 1 message Jul 14, 2020 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

Since clobber is crossing two file systems in this case the worker can delete the files faster than it can move them

Also fixes a occasional race that results in build failures

---
 builders.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
builders.py +2 -2
index 13bfe18..778989b 100644
@@ -377,9 +377,9 @@ def create_parent_builder_factory(buildername, waitname):
 
 
     factory.addStep(steps.ShellCommand(
-                    command=[clob, util.Interpolate("{}/%(prop:buildername)s-%(prop:buildnumber)s".format(config.sharedrepodir))],
+                    command=["rm", "-fr", util.Interpolate("{}/%(prop:buildername)s-%(prop:buildnumber)s".format(config.sharedrepodir))],
                     haltOnFailure=True,
-                    name="Clobber shared repo dir"))
+                    name="Remove shared repo dir"))
 
     return factory
 
Signature · 1 line
2.17.1