upload-cloud-storage icon indicating copy to clipboard operation
upload-cloud-storage copied to clipboard

Clean up temporary files for resumable uploads

Open sethvargo opened this issue 3 years ago • 0 comments

TL;DR

For each file, we create a resumable metadata file on disk for the client library. However, we never clean up that file. On managed runners, it's fine because the filesystem is destroyed. But for self-hosted runners, we leak these files over time.

High-level design

  • Create all files in subdirectory dedicated to the workflow number
  • Create post step that deletes the directory when the job has finished

Expected behavior

Don't leak the files.

Observed behavior

No response

Action YAML

not: applicable

Log output

No response

Additional information

No response

sethvargo avatar Apr 19 '22 18:04 sethvargo