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

Can't run Dependabot on Microsoft Hosted Agents due to high disc space demand #1473

Open
Patrick-3000 opened this issue Nov 19, 2024 · 2 comments

Comments

@Patrick-3000
Copy link

Patrick-3000 commented Nov 19, 2024

We switched from free Microsoft Hosted Agents to paid Microsoft Hosted Agents due to the fact that since the update to Dependabot@V2 the 60 minutes timeout of the free agents is not enough anymore to run Dependabot on our repo. Since Dependabot@V2, we need ~2.5 hours, and with the paid agents, we have a timeout of 6 hours, so this issue is solved (with our credit card...).

However, we still can't run Dependabot on our repo due the following error:

##[error]System.IO.IOException: No space left on device : '/home/vsts/agents/3.246.0/_diag/Worker_20241118-151020-utc.log'

I suspect that the generated log file is too big for the 14 GB SSD storage Microsoft provides for us. I tried to reduce the logged data with

DetailedLog: false
logFileVerbosity: quiet

in the YAML file, unfortunatly without success. Is there anything else I could try?

@rhyskoedijk
Copy link
Contributor

@Patrick-3000 thanks for the report. I would assume running out of disk space is primarily caused due to the mass downloading of packages rather than the log itself. I have a project running on MS hosted agents with a couple of thousand of NPM/NuGet dependencies and the last run was about 300K lines (55mb). In saying that, I totally agree that the logging is far too verbose by default and I have been thinking of ways to reduce the output in non-debug runs but not had time to make a change yet. I will look at addressing this in the near future, but I suspect it isn't the root cause of your issue.

Is there any extra information you can share about your project that would help me reduce your issue? What package ecyosystem is the update for? Do you know roughly how many dependencies you have and how many are out of date? Are you able to share your package list?

In some of the very large projects that I've enabled Dependabot for, I've had a lot of success with first doing a manual round of package updates to get everything mostly up to date and then enabling Dependabot after that. It significantly reduces the amount of work Dependabot needs to do initially and lead for far less pipeline timeouts. Just something to consider if that is an option for you.

@Patrick-3000
Copy link
Author

@rhyskoedijk: thanks for your answer, I will try to do manual updates first and come back to you.

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

2 participants