MSBuild Integration not Cleaning Up Temp Folder?
See original GitHub issueWhen coverlet runs for my solution, it generates a number of files in my %localappdata%\Temp
folder. These files range from 50MB to 100MB, and there are ~15 each time it runs. This obviously adds up quickly given we are running tests with coverage every 2 hours (over 1GB of temp files every time).
I’m wondering if this is a bug or if we need to write a script to automate this (seems potentially dangerous if another process writes .tmp
files to that folder, as there’s no real way to determine which files came from coverlet). Currently we are manually cleaning up our Jenkins server periodically as it fills up the disk, which is not ideal.
Should the MSBuild integration be deleting these files after it finishes collecting coverage?
Issue Analytics
- State:
- Created 3 years ago
- Comments:13
Top Results From Across the Web
The temp folder is not cleaned up properly since vso agent ...
Since moving to VSO agent 2.126.0, I've been having this kind of intermittent issues: Is there a way to cleanup the _temp folder...
Read more >How can I change the folder that Exec tasks in a csproj file ...
msbuild - How can I change the folder that Exec tasks in a csproj file generates its temporary exec. cmd files in? -...
Read more >Windows: Warn when TEMP directory is not writable
Executing cacls C:\Windows\Temp /E /G everyone:F as administrator made the pain go away.
Read more >Errors MSB3027 and MSB3021, cannot copy file
I tried several thing, permissions on temp folder, changing temp folder to a different folder/drive. Nothing…
Read more >Troubleshoot pipeline runs - Azure DevOps
Learn how to troubleshoot pipeline runs in Azure Pipelines and Team Foundation Server.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Yes we have an Antivirus on that build machine. I will try to get it disabled and have a look again probably the files will get deleted 😃
I do not have any warnings in my console. When disabling the antivirus does not help, i will try to active the logging over my cake build.
Already ty for your fast replies
After further testing, this appears to already be resolved in version
2.8.1
. My bad, I should have verified that first 🤦 .