Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Increase memory leak test timeout #7992

Merged
merged 1 commit into from
Jun 28, 2023

Conversation

peterzhu2118
Copy link
Member

The test times out on some platforms, so increase the timeout.

@@ -142,7 +142,7 @@ def test_dedent_string
end

def test_no_memory_leak
assert_no_memory_leak(%w(-rripper), "", "#{<<~'end;'}", rss: true)
assert_no_memory_leak(%w(-rripper), "", "#{<<~'end;'}", rss: true, timeout: 60)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This test consumes 22 secs.
Repeating 10M times is needed?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I changed it to 2M times. At 1M times, the test doesn't work on my M1 MacBook Pro (but works on my x86 Linux machine). 2M times is the minimum for my M1.

The test times out on some platforms, so increase the timeout.
@peterzhu2118 peterzhu2118 merged commit 27d3fa2 into ruby:master Jun 28, 2023
92 checks passed
@peterzhu2118 peterzhu2118 deleted the ripper-mem-leak-test-timeout branch June 28, 2023 17:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants