Decrease the size of action
yan-zaitsev-hs opened this issue · comments
Hi, I tried to use your action but GitHub job is failing on my self-runner machine with the following errors:
Prepare all required actions
Getting action download info
Download action repository 'kishikawakatsumi/xcresulttool@v1' (SHA:2b37f11669532[8](https://github.com/hotstar/mono-ios/actions/runs/4736975577/jobs/8415681227#step:5:8)d5e503ac8dadca0f1545a51da4)
Warning: Failed to download action 'https://api.github.com/repos/kishikawakatsumi/xcresulttool/tarball/2b37f1166[9](https://github.com/hotstar/mono-ios/actions/runs/4736975577/jobs/8415681227#step:5:9)5328d5e503ac8dadca0f1545a51da4'. Error: The request was canceled due to the configured HttpClient.Timeout of [10](https://github.com/hotstar/mono-ios/actions/runs/4736975577/jobs/8415681227#step:5:10)0 seconds elapsing.
Warning: Back off 28.926 seconds before retry.
Warning: Failed to download action 'https://api.github.com/repos/kishikawakatsumi/xcresulttool/tarball/2b37f116695328d5e503ac8dadca0f1545a51da4'. Error: The request was canceled due to the configured HttpClient.Timeout of 100 seconds elapsing.
Warning: Back off 27.958 seconds before retry.
Error: The request was canceled due to the configured HttpClient.Timeout of 100 seconds elapsing.
The problem is, that machine does not have good enough connection to download 200MB repo.
Do you know if there are exists any way to decrease size of the repo? What I see, a lot of space is taken by tests folder and actually we need to have only dist
folder to run the action.
This is how I solved using the fork:
https://github.com/yan-zaitsev-hs/xcresulttool/tree/release/v1
I delete everything except action.yml & dist folders.
action size decreased from ~200MB to ~500KB
I'm seeing this now as well.
Same here, with self-hosted runners this action times out pretty often.