From acd0c68a074cd47fba486d4d77895e2709be873a Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Sun, 11 Jan 2026 14:51:49 +0900 Subject: [PATCH 1/2] Relax the flaky test threshold on RHEL 10.0 x86_64 --- test/ruby/test_gc_compact.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/ruby/test_gc_compact.rb b/test/ruby/test_gc_compact.rb index 84828d498543aa..7e0c499dd9c82c 100644 --- a/test/ruby/test_gc_compact.rb +++ b/test/ruby/test_gc_compact.rb @@ -324,7 +324,7 @@ def test_moving_arrays_up_heaps }.resume stats = GC.verify_compaction_references(expand_heap: true, toward: :empty) - assert_operator(stats.dig(:moved_up, :T_ARRAY) || 0, :>=, ARY_COUNT - 15) + assert_operator(stats.dig(:moved_up, :T_ARRAY) || 0, :>=, (0.9995 * ARY_COUNT).to_i) refute_empty($arys.keep_if { |o| ObjectSpace.dump(o).include?('"embedded":true') }) end; end From 463a806fb10e4631012d616a3133b4f8cce7938f Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Sun, 11 Jan 2026 15:12:58 +0900 Subject: [PATCH 2/2] Fix `VCS::GIT#branch_beginning` to search since the last relase The ChangeLog in ruby-4.0.0 did not contain entries for 3.5.0. --- tool/lib/vcs.rb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tool/lib/vcs.rb b/tool/lib/vcs.rb index 4f6dc0043283e8..6ebfb9e93b81ad 100644 --- a/tool/lib/vcs.rb +++ b/tool/lib/vcs.rb @@ -448,9 +448,11 @@ def export(revision, url, dir, keep_temp = false) end def branch_beginning(url) - cmd_read(%W[ #{COMMAND} log -n1 --format=format:%H + files = %w[version.h include/ruby/version.h] + year = cmd_read(%W[ #{COMMAND} log -n1 --format=%cd --date=format:%Y #{url} --] + files).to_i + cmd_read(%W[ #{COMMAND} log --format=format:%H --reverse --since=#{year-1}-12-25 --author=matz --committer=matz --grep=started\\.$ - #{url.to_str} -- version.h include/ruby/version.h]) + #{url} --] + files)[/.*/] end def export_changelog(url = '@', from = nil, to = nil, _path = nil, path: _path, base_url: true)