[#116016] [Ruby master Bug#20150] Memory leak in grapheme clusters — "peterzhu2118 (Peter Zhu) via ruby-core" <ruby-core@...>
Issue #20150 has been reported by peterzhu2118 (Peter Zhu).
7 messages
2024/01/04
[#116382] [Ruby master Feature#20205] Enable `frozen_string_literal` by default — "byroot (Jean Boussier) via ruby-core" <ruby-core@...>
Issue #20205 has been reported by byroot (Jean Boussier).
77 messages
2024/01/23
[ruby-core:116174] [Ruby master Bug#20158] Ractor affects Coverage results
From:
"luke-gru (Luke Gruber) via ruby-core" <ruby-core@...>
Date:
2024-01-11 16:36:17 UTC
List:
ruby-core #116174
Issue #20158 has been updated by luke-gru (Luke Gruber).
It sounds like this bug is related to https://bugs.ruby-lang.org/issues/191=
12
----------------------------------------
Bug #20158: Ractor affects Coverage results
https://bugs.ruby-lang.org/issues/20158#change-106187
* Author: janosch-x (Janosch M=FCller)
* Status: Assigned
* Priority: Normal
* Assignee: ko1 (Koichi Sasada)
* ruby -v: ruby 3.3.0preview1 (2023-05-12 master a1b01e7701) [arm64-darwin2=
2]
* Backport: 3.0: UNKNOWN, 3.1: UNKNOWN, 3.2: UNKNOWN, 3.3: UNKNOWN
----------------------------------------
I have a large rspec test suite. I found that if I call a Ractor, the Cover=
age results are strongly affected, i.e. almost all files appear to be uncov=
ered. This happens even if I only ever call a Ractor before the library or =
rspec are required.
Unfortunately, I was not able to build a simple repro yet.
I assume it is a timing thing and only affects larger suites, or it only ha=
ppens if there are multiple files, and maybe if the library lazily requires=
its sub-modules?
However, I guess this should produce the same results when added to the spe=
c_helper.rb of other large suites:
```ruby
# Ractor.new { nil } # uncomment this to affect coverage results
require 'coverage'
Coverage.start
# require library, set up rspec etc.=20
RSpec.configuration.after(:suite) do
# this number is greatly reduced and unstable when calling Ractor above
p Coverage.result.values.sum { |arr| arr.sum(&:to_i) }
end
```
I had this problem in [this library](https://github.com/jaynetics/character=
_set/). The problem affects simplecov users as well, as described [here](ht=
tps://github.com/simplecov-ruby/simplecov/issues/1058).
--=20
https://bugs.ruby-lang.org/
______________________________________________
ruby-core mailing list -- ruby-core@ml.ruby-lang.org
To unsubscribe send an email to ruby-core-leave@ml.ruby-lang.org
ruby-core info -- https://ml.ruby-lang.org/mailman3/postorius/lists/ruby-c=
ore.ml.ruby-lang.org/