We recently tried to upgrade to simplecov-0.8.1 and discovered that our builds began hanging for 1 hour and finally ended with messages like the following:
C:/Ruby193/lib/ruby/gems/1.9.1/gems/lockfile-2.1.0/lib/lockfile.rb:250:in `unlink': Permission denied - D:/BuildAgent/work/2db3d5008923a037/artifacts/coverage/.resultset.json.lockfile (Errno::EACCES)
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/lockfile-2.1.0/lib/lockfile.rb:250:in `rescue in block (3 levels) in lock'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/lockfile-2.1.0/lib/lockfile.rb:211:in `block (3 levels) in lock'
from C:/Ruby193/lib/ruby/1.9.1/timeout.rb:54:in `timeout'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/lockfile-2.1.0/lib/lockfile.rb:206:in `block (2 levels) in lock'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/lockfile-2.1.0/lib/lockfile.rb:430:in `block in create_tmplock'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/lockfile-2.1.0/lib/lockfile.rb:488:in `create'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/lockfile-2.1.0/lib/lockfile.rb:422:in `create_tmplock'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/lockfile-2.1.0/lib/lockfile.rb:204:in `block in lock'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/lockfile-2.1.0/lib/lockfile.rb:517:in `block (2 levels) in attempt'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/lockfile-2.1.0/lib/lockfile.rb:517:in `catch'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/lockfile-2.1.0/lib/lockfile.rb:517:in `block in attempt'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/lockfile-2.1.0/lib/lockfile.rb:517:in `loop'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/lockfile-2.1.0/lib/lockfile.rb:517:in `attempt'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/lockfile-2.1.0/lib/lockfile.rb:201:in `lock'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/simplecov-0.8.1/lib/simplecov.rb:52:in `result'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/simplecov-0.8.1/lib/simplecov/configuration.rb:139:in `block in at_exit'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/simplecov-0.8.1/lib/simplecov/defaults.rb:54:in `call'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/simplecov-0.8.1/lib/simplecov/defaults.rb:54:in `block in <top (required)>'
C:/Ruby193/bin/ruby.exe -S rspec <spec-file-list> --color --format n --format h -o artifacts/spec_results.html failed
I'm not sure if this is just a lockfile problem, or if simplecov or lockfile have been tested to work on Windows or not.
We recently tried to upgrade to simplecov-0.8.1 and discovered that our builds began hanging for 1 hour and finally ended with messages like the following:
I'm not sure if this is just a lockfile problem, or if simplecov or lockfile have been tested to work on Windows or not.