sul-dlss / gis-robot-suite

Robots for GIS accessioning and delivery
Other
9 stars 4 forks source link

Add a step to the end of gisDeliveryWF that cleans the stage path #852

Closed aaron-collier closed 8 months ago

aaron-collier commented 8 months ago

Why was this change made? 🤔

Fixes #840

Cleans up the staging path for the druid by removing the contents data and recursively removing parent directories until a non-empty path is found.

How was this change tested? 🤨

Unit test, verified locally that a close matching druid (i.e. ab987th1234) will not be removed when removing the druid tree for ab123cd4567.

Integration tests:

both show a successful metadata-cleanup step and I verified the druid paths are no longer on the staging directory.

âš¡ âš  If this change involves consuming from other services or writing to shared file systems, test that GIS accessioning works properly in [stage|qa] environment, in addition to specs. âš¡