sharing the trend file

sharing the trend file

We have build servers where multiple users are running simultaneous builds of the same projects. I don't want to save a trend file for each user. I would like to share that trend file among all users. Are there any known concurrency issues with that?

thanks!


RE: sharing the trend file

I realized NCover is using SQLite. So I think I have my answer http://www.sqlite.org/faq.html#q5


RE: sharing the trend file

Keep in mind that NCover was never designed to handle two instances of the application writing to the same trend file. We never built transactional support into recovering from a write lock condition that is raised by Sqlite in multi user conditions.

In the best case, everything will work just fine. In the worst case, you get a mangled execution instance, totally throwing off all of the trend data, requiring you to manually kill that execution from the database.

If you do corrupt the file, you can follow this blog post to remove the bad execution.

http://www.wwwlicious.com/2011/04/truncating-ncover-trends-with-msbuild.html

Again, this feature is not supported by NCover, use at your own risk.

Joe Feser