minion: remove old taskdir before execution
ClosedPublic

Authored by kparal on Feb 15 2016, 1:50 PM.

Details

Summary

We were keeping the directory intact, so on persistent minions, files
from old tasks were still kept around together with the freshly copied
files from the current task.

Also escape directories properly when creating them using mkdir.

Test Plan

tested on persistent minion, old files are now deleted before new files are copied over. Also tested on a disposable minion that it does not produce any issues.

Diff Detail

Repository
rLTRN libtaskotron
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
kparal retitled this revision from to minion: remote old taskdir before execution.Feb 15 2016, 1:50 PM
kparal updated this object.
kparal edited the test plan for this revision. (Show Details)
kparal added reviewers: mkrizek, jskladan, tflink, lbrabec.
tflink accepted this revision.Feb 15 2016, 3:01 PM
This revision is now accepted and ready to land.Feb 15 2016, 3:01 PM
This revision was automatically updated to reflect the committed changes.
kparal retitled this revision from minion: remote old taskdir before execution to minion: remove old taskdir before execution.Feb 15 2016, 6:23 PM