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

Slow download #837

Closed
2 of 5 tasks
ahmadalwareh opened this issue Mar 29, 2024 · 4 comments
Closed
2 of 5 tasks

Slow download #837

ahmadalwareh opened this issue Mar 29, 2024 · 4 comments
Assignees
Labels
bug Something isn't working

Comments

@ahmadalwareh
Copy link

Description:
Using this action multiple times repeatedly becomes slow while receiving data from GitHub

Action Version:
v5
v4

Platform:

  • Ubuntu
  • macOS
  • Windows

Runner type:

  • Hosted
  • Self-hosted

Tools version:

Python version 3.11.8

Repro steps:
I've multiple six workflow runners who need to work together and the first three download and set up the Python is 30-40 seconds but the others become slow and take minutes -around 5-10 mins- and the transmitting becomes slow at 1MB/sec

Expected behavior:
Setup Python in seconds even if I'm downloading using multiple workflows at the same time

Actual behavior:
Slow download

@ahmadalwareh ahmadalwareh added bug Something isn't working needs triage labels Mar 29, 2024
@aparnajyothi-y
Copy link

Hello @ahmadalwareh, Thank you for creating this issue and we will look into it :)

@priyagupta108 priyagupta108 self-assigned this Apr 5, 2024
@priyagupta108
Copy link

Hi @ahmadalwareh 👋 , Thank you for your report.
The performance of actions/setup-python action on your self-hosted runners can be influenced by a few key factors:

  • Network bandwidth: Make sure that your network bandwidth is sufficient for the number of concurrent workflows.
  • Disk space: Ensure your self-hosted runner has enough disk space to store the downloaded Python versions.
  • Resource allocation: Check if other processes on your self-hosted runner machine are using significant system resources (CPU, memory, disk I/O).

Additionally, the setup-python action caches the initially installed Python version on your runner for future use. In subsequent runs with the identical Python version, the action retrieves the cached version, bypassing the installation process and speeding up execution as no further downloads are necessary.
Please review these aspects on your self-hosted runner. If the issue persists, kindly provide us with more detailed logs or a public repository to facilitate further investigation.

@priyagupta108
Copy link

Hello @ahmadalwareh, just a gentle ping regarding this issue. Could you please share any updates when you have a moment? Thank you in advance.

@ahmadalwareh
Copy link
Author

Sorry for the late reply, I worked on the suggestion provided here and reconfigured my runner because I forgot to add the RUNNER_TOOL_CACHE environment variable. after that, the download barely took 2 seconds.
Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants