You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Consider removing the image cleanup logic in pipelines #1213
These steps can add a fair amount of execution time, especially on Windows agents. Some recent runs have shown this taking 5 minutes on a Windows agent.
At the time this was implemented, build agents were potentially reused between runs and it was important to keep the state of the agents clean. Since then, however, we're using stateless pools that provide fresh agents each time. So there really isn't much need to clean the agent. The one exception might be for cases where we would run out of disk space. That's most likely to happen in the .NET Framework pipeline.
So, by default, I propose that we eliminate the clean steps. If it's necessary to clean for disk space purposes, this is something that can be opted into.
[Triage] There is more investigation to be done here. We should take special care to make sure we don't include any of the Microsoft hosted runners' cached images (windows, linux) in our build output. At the very least we could remove the cleanup step from the end of the build.
Activity
lbussell commentedon Mar 21, 2024
[Triage] There is more investigation to be done here. We should take special care to make sure we don't include any of the Microsoft hosted runners' cached images (windows, linux) in our build output. At the very least we could remove the cleanup step from the end of the build.
lbussell commentedon Apr 2, 2024
Removed the majority of the cleanup steps with #1229.