Skip to content

Ruby: Don't run tests with forking threads by default#1255

Merged
marcoroth merged 1 commit into
mainfrom
test-forking
Feb 28, 2026
Merged

Ruby: Don't run tests with forking threads by default#1255
marcoroth merged 1 commit into
mainfrom
test-forking

Conversation

@marcoroth

@marcoroth marcoroth commented Feb 28, 2026

Copy link
Copy Markdown
Owner

This pull request updates the Ruby test suite to not require the fork_helper in a normal run. Initially, we added the forking helpers so we could isolate segfaults in the Parser/Ruby native extension when running the full test suite.

But this hasn't been happening a lot anymore, so the more than 2x slowdown is not worth to have on regular runs.

Instead, we rename/flip the NO_TIMEOUT to FORK_TESTS. If we are not forking, we are now showing a message to remind people that they could be running the tests in forking mode by passing the new FORK_TESTS environment variable to isolate a potential crash/segfault in one of the tests.

@github-actions

github-actions Bot commented Feb 28, 2026

Copy link
Copy Markdown

🌿 Interactive Playground and Documentation Preview

A preview deployment has been built for this pull request. Try out the changes live in the interactive playground:


🌱 Grown from commit 2b965d3


✅ Preview deployment has been cleaned up.

@pkg-pr-new

pkg-pr-new Bot commented Feb 28, 2026

Copy link
Copy Markdown
npx https://pkg.pr.new/@herb-tools/formatter@1255
npx https://pkg.pr.new/@herb-tools/language-server@1255
npx https://pkg.pr.new/@herb-tools/linter@1255

commit: 2b965d3

@marcoroth marcoroth merged commit faf5af8 into main Feb 28, 2026
20 checks passed
@marcoroth marcoroth deleted the test-forking branch February 28, 2026 02:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant