Skip to content

Add regression test for cancelling pool gardener - #28

Merged
samuel-williams-shopify merged 1 commit into
mainfrom
test-condition-wait-cancellation
Jul 28, 2026
Merged

Add regression test for cancelling pool gardener#28
samuel-williams-shopify merged 1 commit into
mainfrom
test-condition-wait-cancellation

Conversation

@samuel-williams-shopify

Copy link
Copy Markdown
Contributor

Summary

  • Add a focused regression test for cancelling the pool gardener while it is blocked in ConditionVariable#wait.
  • Assert the task outcome directly through Task#wait, which re-raises unexpected failures.

This extracts the regression test from #27 without carrying its library-level workaround. The underlying CRuby issue was fixed by ruby/ruby#12158 and backported in Ruby 3.2.7 and Ruby 3.3.7.

Testing

  • sus test/async/pool/controller.rb
  • 34 passed, 55 assertions

@samuel-williams-shopify
samuel-williams-shopify force-pushed the test-condition-wait-cancellation branch from 934da07 to f7944c7 Compare July 28, 2026 00:04
@samuel-williams-shopify
samuel-williams-shopify force-pushed the test-condition-wait-cancellation branch from f7944c7 to ec88c53 Compare July 28, 2026 00:05
@samuel-williams-shopify
samuel-williams-shopify merged commit 7b74332 into main Jul 28, 2026
36 of 40 checks passed
@samuel-williams-shopify
samuel-williams-shopify deleted the test-condition-wait-cancellation branch July 28, 2026 00:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant