Skip to content

memoize SimpleCov::Configuration#coverage_path - #453

Merged
colszowka merged 1 commit into
simplecov-ruby:masterfrom
paddor:master
Jan 26, 2016
Merged

colszowka merged 1 commit into
simplecov-ruby:masterfrom
paddor:master

Conversation

@paddor

@paddor paddor commented Jan 26, 2016

Copy link
Copy Markdown
Contributor

This is to avoid calling FileUtils.mkdir_p like 50 times, like visible here when $DEBUG = true:

[...]
Finished in 0.20738 seconds (files took 0.69467 seconds to load)
42 examples, 1 failure, 1 pending

Exception `Errno::EEXIST' at /Users/paddor/.rubies/ruby-2.3.0/lib/ruby/2.3.0/fileutils.rb:253 - File exists @ dir_s_mkdir - /Users/paddor/src/ruby/cztop/coverage
Exception `Errno::EEXIST' at /Users/paddor/.rubies/ruby-2.3.0/lib/ruby/2.3.0/fileutils.rb:253 - File exists @ dir_s_mkdir - /Users/paddor/src/ruby/cztop/coverage
Exception `Errno::EEXIST' at /Users/paddor/.rubies/ruby-2.3.0/lib/ruby/2.3.0/fileutils.rb:253 - File exists @ dir_s_mkdir - /Users/paddor/src/ruby/cztop/coverage
Exception `Errno::EEXIST' at /Users/paddor/.rubies/ruby-2.3.0/lib/ruby/2.3.0/fileutils.rb:253 - File exists @ dir_s_mkdir - /Users/paddor/src/ruby/cztop/coverage
Exception `Errno::EEXIST' at /Users/paddor/.rubies/ruby-2.3.0/lib/ruby/2.3.0/fileutils.rb:253 - File exists @ dir_s_mkdir - /Users/paddor/src/ruby/cztop/coverage
Exception `Errno::EEXIST' at /Users/paddor/.rubies/ruby-2.3.0/lib/ruby/2.3.0/fileutils.rb:253 - File exists @ dir_s_mkdir - /Users/paddor/src/ruby/cztop/coverage
Exception `Errno::EEXIST' at /Users/paddor/.rubies/ruby-2.3.0/lib/ruby/2.3.0/fileutils.rb:253 - File exists @ dir_s_mkdir - /Users/paddor/src/ruby/cztop/coverage
Exception `Errno::EEXIST' at /Users/paddor/.rubies/ruby-2.3.0/lib/ruby/2.3.0/fileutils.rb:253 - File exists @ dir_s_mkdir - /Users/paddor/src/ruby/cztop/coverage
Exception `Errno::EEXIST' at /Users/paddor/.rubies/ruby-2.3.0/lib/ruby/2.3.0/fileutils.rb:253 - File exists @ dir_s_mkdir - /Users/paddor/src/ruby/cztop/coverage
Exception `Errno::EEXIST' at /Users/paddor/.rubies/ruby-2.3.0/lib/ruby/2.3.0/fileutils.rb:253 - File exists @ dir_s_mkdir - /Users/paddor/src/ruby/cztop/coverage
Exception `Errno::EEXIST' at /Users/paddor/.rubies/ruby-2.3.0/lib/ruby/2.3.0/fileutils.rb:253 - File exists @ dir_s_mkdir - /Users/paddor/src/ruby/cztop/coverage
Exception `Errno::EEXIST' at /Users/paddor/.rubies/ruby-2.3.0/lib/ruby/2.3.0/fileutils.rb:253 - File exists @ dir_s_mkdir - /Users/paddor/src/ruby/cztop/coverage
Exception `Errno::EEXIST' at /Users/paddor/.rubies/ruby-2.3.0/lib/ruby/2.3.0/fileutils.rb:253 - File exists @ dir_s_mkdir - /Users/paddor/src/ruby/cztop/coverage
Exception `Errno::EEXIST' at /Users/paddor/.rubies/ruby-2.3.0/lib/ruby/2.3.0/fileutils.rb:253 - File exists @ dir_s_mkdir - /Users/paddor/src/ruby/cztop/coverage
[Coveralls] Outside the CI environment, not sending data.
Exception `Errno::EEXIST' at /Users/paddor/.rubies/ruby-2.3.0/lib/ruby/2.3.0/fileutils.rb:253 - File exists @ dir_s_mkdir - /Users/paddor/src/ruby/cztop/coverage
Exception `Errno::EEXIST' at /Users/paddor/.rubies/ruby-2.3.0/lib/ruby/2.3.0/fileutils.rb:253 - File exists @ dir_s_mkdir - /Users/paddor/src/ruby/cztop/coverage
Exception `Errno::EEXIST' at /Users/paddor/.rubies/ruby-2.3.0/lib/ruby/2.3.0/fileutils.rb:253 - File exists @ dir_s_mkdir - /Users/paddor/src/ruby/cztop/coverage
Exception `Errno::EEXIST' at /Users/paddor/.rubies/ruby-2.3.0/lib/ruby/2.3.0/fileutils.rb:253 - File exists @ dir_s_mkdir - /Users/paddor/src/ruby/cztop/coverage
Exception `Errno::EEXIST' at /Users/paddor/.rubies/ruby-2.3.0/lib/ruby/2.3.0/fileutils.rb:253 - File exists @ dir_s_mkdir - /Users/paddor/src/ruby/cztop/coverage
Exception `Errno::EEXIST' at /Users/paddor/.rubies/ruby-2.3.0/lib/ruby/2.3.0/fileutils.rb:253 - File exists @ dir_s_mkdir - /Users/paddor/src/ruby/cztop/coverage
Exception `Errno::EEXIST' at /Users/paddor/.rubies/ruby-2.3.0/lib/ruby/2.3.0/fileutils.rb:253 - File exists @ dir_s_mkdir - /Users/paddor/src/ruby/cztop/coverage
Exception `Errno::EEXIST' at /Users/paddor/.rubies/ruby-2.3.0/lib/ruby/2.3.0/fileutils.rb:253 - File exists @ dir_s_mkdir - /Users/paddor/src/ruby/cztop/coverage
Exception `Errno::EEXIST' at /Users/paddor/.rubies/ruby-2.3.0/lib/ruby/2.3.0/fileutils.rb:253 - File exists @ dir_s_mkdir - /Users/paddor/src/ruby/cztop/coverage
Exception `Errno::EEXIST' at /Users/paddor/.rubies/ruby-2.3.0/lib/ruby/2.3.0/fileutils.rb:253 - File exists @ dir_s_mkdir - /Users/paddor/src/ruby/cztop/coverage
Exception `Errno::EEXIST' at /Users/paddor/.rubies/ruby-2.3.0/lib/ruby/2.3.0/fileutils.rb:253 - File exists @ dir_s_mkdir - /Users/paddor/src/ruby/cztop/coverage
Exception `Errno::EEXIST' at /Users/paddor/.rubies/ruby-2.3.0/lib/ruby/2.3.0/fileutils.rb:253 - File exists @ dir_s_mkdir - /Users/paddor/src/ruby/cztop/coverage
Exception `Errno::EEXIST' at /Users/paddor/.rubies/ruby-2.3.0/lib/ruby/2.3.0/fileutils.rb:253 - File exists @ dir_s_mkdir - /Users/paddor/src/ruby/cztop/coverage
Exception `Errno::EEXIST' at /Users/paddor/.rubies/ruby-2.3.0/lib/ruby/2.3.0/fileutils.rb:253 - File exists @ dir_s_mkdir - /Users/paddor/src/ruby/cztop/coverage
Exception `Errno::EEXIST' at /Users/paddor/.rubies/ruby-2.3.0/lib/ruby/2.3.0/fileutils.rb:253 - File exists @ dir_s_mkdir - /Users/paddor/src/ruby/cztop/coverage
Exception `Errno::EEXIST' at /Users/paddor/.rubies/ruby-2.3.0/lib/ruby/2.3.0/fileutils.rb:253 - File exists @ dir_s_mkdir - /Users/paddor/src/ruby/cztop/coverage
Exception `Errno::EEXIST' at /Users/paddor/.rubies/ruby-2.3.0/lib/ruby/2.3.0/fileutils.rb:253 - File exists @ dir_s_mkdir - /Users/paddor/src/ruby/cztop/coverage
Exception `Errno::EEXIST' at /Users/paddor/.rubies/ruby-2.3.0/lib/ruby/2.3.0/fileutils.rb:253 - File exists @ dir_s_mkdir - /Users/paddor/src/ruby/cztop/coverage
Exception `Errno::EEXIST' at /Users/paddor/.rubies/ruby-2.3.0/lib/ruby/2.3.0/fileutils.rb:253 - File exists @ dir_s_mkdir - /Users/paddor/src/ruby/cztop/coverage
Exception `Errno::EEXIST' at /Users/paddor/.rubies/ruby-2.3.0/lib/ruby/2.3.0/fileutils.rb:253 - File exists @ dir_s_mkdir - /Users/paddor/src/ruby/cztop/coverage
Exception `Errno::EEXIST' at /Users/paddor/.rubies/ruby-2.3.0/lib/ruby/2.3.0/fileutils.rb:253 - File exists @ dir_s_mkdir - /Users/paddor/src/ruby/cztop/coverage
Exception `Errno::EEXIST' at /Users/paddor/.rubies/ruby-2.3.0/lib/ruby/2.3.0/fileutils.rb:253 - File exists @ dir_s_mkdir - /Users/paddor/src/ruby/cztop/coverage
Exception `Errno::EEXIST' at /Users/paddor/.rubies/ruby-2.3.0/lib/ruby/2.3.0/fileutils.rb:253 - File exists @ dir_s_mkdir - /Users/paddor/src/ruby/cztop/coverage
Exception `Errno::EEXIST' at /Users/paddor/.rubies/ruby-2.3.0/lib/ruby/2.3.0/fileutils.rb:253 - File exists @ dir_s_mkdir - /Users/paddor/src/ruby/cztop/coverage
Exception `Errno::EEXIST' at /Users/paddor/.rubies/ruby-2.3.0/lib/ruby/2.3.0/fileutils.rb:253 - File exists @ dir_s_mkdir - /Users/paddor/src/ruby/cztop/coverage
Exception `Errno::EEXIST' at /Users/paddor/.rubies/ruby-2.3.0/lib/ruby/2.3.0/fileutils.rb:253 - File exists @ dir_s_mkdir - /Users/paddor/src/ruby/cztop/coverage
Exception `Errno::EEXIST' at /Users/paddor/.rubies/ruby-2.3.0/lib/ruby/2.3.0/fileutils.rb:253 - File exists @ dir_s_mkdir - /Users/paddor/src/ruby/cztop/coverage
Exception `Errno::EEXIST' at /Users/paddor/.rubies/ruby-2.3.0/lib/ruby/2.3.0/fileutils.rb:253 - File exists @ dir_s_mkdir - /Users/paddor/src/ruby/cztop/coverage
Exception `Errno::EEXIST' at /Users/paddor/.rubies/ruby-2.3.0/lib/ruby/2.3.0/fileutils.rb:253 - File exists @ dir_s_mkdir - /Users/paddor/src/ruby/cztop/coverage

colszowka added a commit that referenced this pull request Jan 26, 2016
memoize SimpleCov::Configuration#coverage_path
@colszowka
colszowka merged commit 619e522 into simplecov-ruby:master Jan 26, 2016
@colszowka

Copy link
Copy Markdown
Collaborator

👍 Thanks!

colszowka added a commit that referenced this pull request Jan 26, 2016
@paddor

paddor commented Jan 26, 2016

Copy link
Copy Markdown
Contributor Author

Welcome!

craiglittle pushed a commit to craiglittle/simplecov that referenced this pull request Feb 13, 2016
jsonn pushed a commit to jsonn/pkgsrc that referenced this pull request Feb 17, 2016
## Enhancements

## Bugfixes

0.11.2 2016-02-03 ([changes](simplecov-ruby/simplecov@v0.11.1...v0.11.2))
=================

## Enhancements

* Do not globally pollute Array and Hash with `merge_resultset` utility methods. See [#449](simplecov-ruby/simplecov#449) (thanks @amatsuda)
* Do not `mkdir_p` the `coverage_path` on every access of the method (See [#453](simplecov-ruby/simplecov#453) (thanks @paddor)
* Fixes a Ruby warning related to the `track_files` configuration. See [#447](simplecov-ruby/simplecov#447) (thanks @craiglittle)
* Add a group for background jobs to default Rails profile. See [#442](simplecov-ruby/simplecov#442) (thanks @stve)

## Bugfixes

* Fix root_filter evaluates SimpleCov.root before initialization. See [#437](simplecov-ruby/simplecov#437) (thanks @tmtm)
msk pushed a commit to msk/pkgsrc that referenced this pull request May 11, 2026
## Enhancements

## Bugfixes

0.11.2 2016-02-03 ([changes](simplecov-ruby/simplecov@v0.11.1...v0.11.2))
=================

## Enhancements

* Do not globally pollute Array and Hash with `merge_resultset` utility methods. See [#449](simplecov-ruby/simplecov#449) (thanks @amatsuda)
* Do not `mkdir_p` the `coverage_path` on every access of the method (See [#453](simplecov-ruby/simplecov#453) (thanks @paddor)
* Fixes a Ruby warning related to the `track_files` configuration. See [#447](simplecov-ruby/simplecov#447) (thanks @craiglittle)
* Add a group for background jobs to default Rails profile. See [#442](simplecov-ruby/simplecov#442) (thanks @stve)

## Bugfixes

* Fix root_filter evaluates SimpleCov.root before initialization. See [#437](simplecov-ruby/simplecov#437) (thanks @tmtm)
jperkin pushed a commit to TritonDataCenter/pkgsrc that referenced this pull request May 14, 2026
## Enhancements

## Bugfixes

0.11.2 2016-02-03 ([changes](simplecov-ruby/simplecov@v0.11.1...v0.11.2))
=================

## Enhancements

* Do not globally pollute Array and Hash with `merge_resultset` utility methods. See [#449](simplecov-ruby/simplecov#449) (thanks @amatsuda)
* Do not `mkdir_p` the `coverage_path` on every access of the method (See [#453](simplecov-ruby/simplecov#453) (thanks @paddor)
* Fixes a Ruby warning related to the `track_files` configuration. See [#447](simplecov-ruby/simplecov#447) (thanks @craiglittle)
* Add a group for background jobs to default Rails profile. See [#442](simplecov-ruby/simplecov#442) (thanks @stve)

## Bugfixes

* Fix root_filter evaluates SimpleCov.root before initialization. See [#437](simplecov-ruby/simplecov#437) (thanks @tmtm)
tsutsui pushed a commit to tsutsui/pkgsrc that referenced this pull request Oct 17, 2026
## Enhancements

## Bugfixes

0.11.2 2016-02-03 ([changes](simplecov-ruby/simplecov@v0.11.1...v0.11.2))
=================

## Enhancements

* Do not globally pollute Array and Hash with `merge_resultset` utility methods. See [#449](simplecov-ruby/simplecov#449) (thanks @amatsuda)
* Do not `mkdir_p` the `coverage_path` on every access of the method (See [#453](simplecov-ruby/simplecov#453) (thanks @paddor)
* Fixes a Ruby warning related to the `track_files` configuration. See [#447](simplecov-ruby/simplecov#447) (thanks @craiglittle)
* Add a group for background jobs to default Rails profile. See [#442](simplecov-ruby/simplecov#442) (thanks @stve)

## Bugfixes

* Fix root_filter evaluates SimpleCov.root before initialization. See [#437](simplecov-ruby/simplecov#437) (thanks @tmtm)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants