kishikawakatsumi / xcresulttool

A GitHub Action that generates a human-readable test report from the Xcode result bundle and shows it on GitHub Checks.
MIT License
361 stars 68 forks source link

Decrease the size of action #709

Open yan-zaitsev-hs opened 1 year ago

yan-zaitsev-hs commented 1 year ago

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.

yan-zaitsev-hs commented 1 year ago

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

tonyarnold commented 1 year ago

I'm seeing this now as well.

rolandkakonyi commented 1 year ago

Same here, with self-hosted runners this action times out pretty often.