java-manta
java-manta copied to clipboard
Improve Jenkins java-manta-it job and Integration-Tests to clear residual data
-
Create an optional system parameter that is used for all test run directories (eg
~~/stor/java-manta-integration-tests/uuid) . This would allow us to create thatdirname in the jenkins job before execution and then to delete the directory, post a successful/unsuccessful execution. -
Figure out a way to clean up job history and multipart upload history within the integration tests and if any files are being left over in Manta after a successful/unsucessful test run.
#544 once merged will resolve this issue.
This is the current "scrub" job
echo "Scrubbing jobs for user $USER_TO_SCRUB"
mls /$USER_TO_SCRUB/jobs | xargs -n1 -P4 -I{} bash -c "mrm -r /$USER_TO_SCRUB/jobs/{} && echo deleted /$USER_TO_SCRUB/jobs/{}"
echo "Scrubbing jobs-based MPUs for user $USER_TO_SCRUB"
mrm -r /$USER_TO_SCRUB/stor/.multipart-6439b444-9041-11e6-9be2-9f622f483d01/ || true
echo "Scrubbing default integration test folder for user $USER_TO_SCRUB"
mrm -r /$USER_TO_SCRUB/stor/java-manta-integration-tests/
See also MANTA-2954