question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

MSBuild Integration not Cleaning Up Temp Folder?

See original GitHub issue

When 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:closed
  • Created 3 years ago
  • Comments:13

github_iconTop GitHub Comments

1reaction
stefannikoleicommented, May 12, 2020

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

1reaction
Stefanie899commented, May 5, 2020

After further testing, this appears to already be resolved in version 2.8.1. My bad, I should have verified that first 🤦 .

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found