Page MenuHomeSoftware Heritage

Remove donwloaded package files once they have been processed
ClosedPublic

Authored by anlambert on May 14 2019, 5:04 PM.

Details

Summary

In order to regain some disk space while executing the npm loader, remove dowloaded package
files once they have been processed, including:

  • package version tarballs: remove them once their content have been unpacked
  • unpacked package version files: remove them once processed for their load into the archive

Diff Detail

Repository
rDLDNPM npm loader
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

olasd added a subscriber: olasd.

Looks good, thanks!

swh/loader/npm/client.py
196

while you're moving this around you can switch the interpolation to a comma

swh/loader/npm/loader.py
246

Same remark here

This revision is now accepted and ready to land.May 14 2019, 5:08 PM

Update: use proper way for debug logs interpolation

This revision was automatically updated to reflect the committed changes.