ruby-core@ruby-lang.org archive (unofficial mirror)
 help / color / mirror / Atom feed
* [ruby-core:77493] [Ruby trunk Bug#12812] Added Coverage#result=
       [not found] <redmine.issue-12812.20161006002448@ruby-lang.org>
@ 2016-10-06  0:24 ` ryand-ruby
  2016-10-06  0:32 ` [ruby-core:77494] [Ruby trunk Bug#12812][Assigned] " hsbt
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 5+ messages in thread
From: ryand-ruby @ 2016-10-06  0:24 UTC (permalink / raw)
  To: ruby-core

Issue #12812 has been reported by Ryan Davis.

----------------------------------------
Bug #12812: Added Coverage#result=
https://bugs.ruby-lang.org/issues/12812

* Author: Ryan Davis
* Status: Open
* Priority: Normal
* Assignee: 
* ruby -v: 
* Backport: 2.1: UNKNOWN, 2.2: UNKNOWN, 2.3: UNKNOWN
----------------------------------------
Originally submitted here: https://github.com/ruby/ruby/pull/1456

This exposes Coverage.result in a slightly more writeable way and allows coverage analysis to reset to a baseline in a safe way.

Note, I wasn't able to figure out how to invalidate the cached pointers in the VM bytecode, so this does `rb_ary_replace` across all the arrays instead. I'd love to see this improved so it were cleaner.

This is ongoing work to improve the current state of code coverage analysis. I'll be giving a talk on this at rubyconf 2016.

I should also add, this applies cleanly to (at least) 2.3 as well.

---Files--------------------------------
coverage_result_set.diff (1.49 KB)


-- 
https://bugs.ruby-lang.org/

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [ruby-core:77494] [Ruby trunk Bug#12812][Assigned] Added Coverage#result=
       [not found] <redmine.issue-12812.20161006002448@ruby-lang.org>
  2016-10-06  0:24 ` [ruby-core:77493] [Ruby trunk Bug#12812] Added Coverage#result= ryand-ruby
@ 2016-10-06  0:32 ` hsbt
  2016-10-06  3:30 ` [ruby-core:77496] [Ruby trunk Bug#12812] " ryand-ruby
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 5+ messages in thread
From: hsbt @ 2016-10-06  0:32 UTC (permalink / raw)
  To: ruby-core

Issue #12812 has been updated by Hiroshi SHIBATA.

Status changed from Open to Assigned
Assignee set to Yusuke Endoh

----------------------------------------
Bug #12812: Added Coverage#result=
https://bugs.ruby-lang.org/issues/12812#change-60759

* Author: Ryan Davis
* Status: Assigned
* Priority: Normal
* Assignee: Yusuke Endoh
* ruby -v: 
* Backport: 2.1: UNKNOWN, 2.2: UNKNOWN, 2.3: UNKNOWN
----------------------------------------
Originally submitted here: https://github.com/ruby/ruby/pull/1456

This exposes Coverage.result in a slightly more writeable way and allows coverage analysis to reset to a baseline in a safe way.

Note, I wasn't able to figure out how to invalidate the cached pointers in the VM bytecode, so this does `rb_ary_replace` across all the arrays instead. I'd love to see this improved so it were cleaner.

This is ongoing work to improve the current state of code coverage analysis. I'll be giving a talk on this at rubyconf 2016.

I should also add, this applies cleanly to (at least) 2.3 as well.

---Files--------------------------------
coverage_result_set.diff (1.49 KB)


-- 
https://bugs.ruby-lang.org/

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [ruby-core:77496] [Ruby trunk Bug#12812] Added Coverage#result=
       [not found] <redmine.issue-12812.20161006002448@ruby-lang.org>
  2016-10-06  0:24 ` [ruby-core:77493] [Ruby trunk Bug#12812] Added Coverage#result= ryand-ruby
  2016-10-06  0:32 ` [ruby-core:77494] [Ruby trunk Bug#12812][Assigned] " hsbt
@ 2016-10-06  3:30 ` ryand-ruby
  2019-01-21  8:37 ` [ruby-core:91206] " mame
  2019-04-27 22:27 ` [ruby-core:92450] " mame
  4 siblings, 0 replies; 5+ messages in thread
From: ryand-ruby @ 2016-10-06  3:30 UTC (permalink / raw)
  To: ruby-core

Issue #12812 has been updated by Ryan Davis.


This patch url will stay up to date better than a file attachment. I'm getting feedback from Nobu and fixing things:

https://github.com/ruby/ruby/pull/1456.patch

----------------------------------------
Bug #12812: Added Coverage#result=
https://bugs.ruby-lang.org/issues/12812#change-60762

* Author: Ryan Davis
* Status: Assigned
* Priority: Normal
* Assignee: Yusuke Endoh
* ruby -v: 
* Backport: 2.1: UNKNOWN, 2.2: UNKNOWN, 2.3: UNKNOWN
----------------------------------------
Originally submitted here: https://github.com/ruby/ruby/pull/1456

This exposes Coverage.result in a slightly more writeable way and allows coverage analysis to reset to a baseline in a safe way.

Note, I wasn't able to figure out how to invalidate the cached pointers in the VM bytecode, so this does `rb_ary_replace` across all the arrays instead. I'd love to see this improved so it were cleaner.

This is ongoing work to improve the current state of code coverage analysis. I'll be giving a talk on this at rubyconf 2016.

I should also add, this applies cleanly to (at least) 2.3 as well.



-- 
https://bugs.ruby-lang.org/

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [ruby-core:91206] [Ruby trunk Bug#12812] Added Coverage#result=
       [not found] <redmine.issue-12812.20161006002448@ruby-lang.org>
                   ` (2 preceding siblings ...)
  2016-10-06  3:30 ` [ruby-core:77496] [Ruby trunk Bug#12812] " ryand-ruby
@ 2019-01-21  8:37 ` mame
  2019-04-27 22:27 ` [ruby-core:92450] " mame
  4 siblings, 0 replies; 5+ messages in thread
From: mame @ 2019-01-21  8:37 UTC (permalink / raw)
  To: ruby-core

Issue #12812 has been updated by mame (Yusuke Endoh).

Status changed from Assigned to Feedback

Sorry for leaving this ticket untouched.

I cannot remember the detailed story of this ticket, but since 2.6, coverage library has supported `Coverage.result(stop: false, clear: false)`.  Is it enough?  I still think `Coverage.result=` is too powerful.

----------------------------------------
Bug #12812: Added Coverage#result=
https://bugs.ruby-lang.org/issues/12812#change-76443

* Author: zenspider (Ryan Davis)
* Status: Feedback
* Priority: Normal
* Assignee: mame (Yusuke Endoh)
* Target version: 
* ruby -v: 
* Backport: 2.1: UNKNOWN, 2.2: UNKNOWN, 2.3: UNKNOWN
----------------------------------------
Originally submitted here: https://github.com/ruby/ruby/pull/1456

This exposes Coverage.result in a slightly more writeable way and allows coverage analysis to reset to a baseline in a safe way.

Note, I wasn't able to figure out how to invalidate the cached pointers in the VM bytecode, so this does `rb_ary_replace` across all the arrays instead. I'd love to see this improved so it were cleaner.

This is ongoing work to improve the current state of code coverage analysis. I'll be giving a talk on this at rubyconf 2016.

I should also add, this applies cleanly to (at least) 2.3 as well.



-- 
https://bugs.ruby-lang.org/

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [ruby-core:92450] [Ruby trunk Bug#12812] Added Coverage#result=
       [not found] <redmine.issue-12812.20161006002448@ruby-lang.org>
                   ` (3 preceding siblings ...)
  2019-01-21  8:37 ` [ruby-core:91206] " mame
@ 2019-04-27 22:27 ` mame
  4 siblings, 0 replies; 5+ messages in thread
From: mame @ 2019-04-27 22:27 UTC (permalink / raw)
  To: ruby-core

Issue #12812 has been updated by mame (Yusuke Endoh).

Status changed from Feedback to Rejected

I'd like to close this issue tentatively.  Feel free to reopen if you still think it is needed.

----------------------------------------
Bug #12812: Added Coverage#result=
https://bugs.ruby-lang.org/issues/12812#change-77801

* Author: zenspider (Ryan Davis)
* Status: Rejected
* Priority: Normal
* Assignee: mame (Yusuke Endoh)
* Target version: 
* ruby -v: 
* Backport: 2.1: UNKNOWN, 2.2: UNKNOWN, 2.3: UNKNOWN
----------------------------------------
Originally submitted here: https://github.com/ruby/ruby/pull/1456

This exposes Coverage.result in a slightly more writeable way and allows coverage analysis to reset to a baseline in a safe way.

Note, I wasn't able to figure out how to invalidate the cached pointers in the VM bytecode, so this does `rb_ary_replace` across all the arrays instead. I'd love to see this improved so it were cleaner.

This is ongoing work to improve the current state of code coverage analysis. I'll be giving a talk on this at rubyconf 2016.

I should also add, this applies cleanly to (at least) 2.3 as well.



-- 
https://bugs.ruby-lang.org/

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2019-04-27 22:27 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <redmine.issue-12812.20161006002448@ruby-lang.org>
2016-10-06  0:24 ` [ruby-core:77493] [Ruby trunk Bug#12812] Added Coverage#result= ryand-ruby
2016-10-06  0:32 ` [ruby-core:77494] [Ruby trunk Bug#12812][Assigned] " hsbt
2016-10-06  3:30 ` [ruby-core:77496] [Ruby trunk Bug#12812] " ryand-ruby
2019-01-21  8:37 ` [ruby-core:91206] " mame
2019-04-27 22:27 ` [ruby-core:92450] " mame

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).