Skip to content

Commit 1d98daa

Browse files
committed
Relax RSS limit in test_named_structs_are_not_rooted
The default limit of 2.0 is too tight for RSS measurements on macOS, causing random CI failures when the ratio lands just above 2.0 (e.g. 2.05). Increase to 2.2 to account for normal RSS measurement noise. https://github.com/ruby/ruby/actions/runs/23923072484/job/69773771596 1) Failure: TestStruct::TopStruct#test_named_structs_are_not_rooted [/Users/runner/work/ruby/ruby/src/test/ruby/test_struct.rb:541]: rss: 8781824 => 18006016. Expected 2.050373134328358 to be < 2.0. ruby -v: ruby 4.1.0dev (2026-04-02T21:34:07Z master e957b3a) +PRISM [arm64-darwin23]
1 parent 85146a5 commit 1d98daa

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

test/ruby/test_struct.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -538,7 +538,7 @@ def test_named_structs_are_not_rooted
538538
omit 'skip on riscv64-linux CI machine. See https://github.com/ruby/ruby/pull/13422' if ENV['RUBY_DEBUG'] == 'ci' && /riscv64-linux/ =~ RUBY_DESCRIPTION
539539

540540
# [Bug #20311]
541-
assert_no_memory_leak([], <<~PREP, <<~CODE, rss: true)
541+
assert_no_memory_leak([], <<~PREP, <<~CODE, rss: true, limit: 2.2)
542542
code = proc do
543543
Struct.new("A")
544544
Struct.send(:remove_const, :A)

0 commit comments

Comments
 (0)