actions / runner-container-hooks

Runner Container Hooks for GitHub Actions
MIT License
63 stars 41 forks source link

[proposal] Allow the hook to skip copy externals step if those have been provided by runner #168

Open anlesk opened 1 month ago

anlesk commented 1 month ago

Prompted by: https://github.com/actions/runner-container-hooks/issues/82#issuecomment-2140089101

Some of the storage systems are slow when it comes to copy files, especially when the number of files is high. As the part of every prepare job, the hook copies the content of externals into the runner. So far, the contents of externals are node16 and node20 folders, which might take extra 3-15 minutes depending on the storage type to copy.

Would that be possible to pass a flag to skip the step and have those externals being provided by the custom runner's image?

alecrajeev commented 2 weeks ago

Yeah having this option would be super helpful for us as well. There is ~3 minute delay for us here.