Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Decrease the size of action #709

Open
yan-zaitsev-hs opened this issue Apr 19, 2023 · 3 comments
Open

Decrease the size of action #709

yan-zaitsev-hs opened this issue Apr 19, 2023 · 3 comments

Comments

@yan-zaitsev-hs
Copy link

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
Copy link
Author

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
Copy link

I'm seeing this now as well.

@rolandkakonyi
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants