agent
agent copied to clipboard
Bootstrap cancel timeout can leave per-job temporary directories behind
If a per-job bootstrap process is forcibly terminated, any temporary directories it has created (such as in the empty BUILDKITE_REPO
case) will not be cleaned up.
This is hard to solve in the general case since the bootstrap process tree involves user supplied code, but we can at least clean up the directories our agent is responsible for having created.