Skip to content

Fix tests for ruby 3, which no longer skips C stack frames #13

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

Merged
merged 4 commits into from
Oct 25, 2021
Merged

Conversation

dylanahsmith
Copy link
Contributor

As discussed in #9, ruby 3 no longer skips C stack frames, so the tests need to be updated to reflect this.

There are also now allocations that are made lazily in ruby that also need to be accounted by forcing their memoization before counting allocations in test_no_object_allocations.

Lastly, I've switched to Github Actions for CI

Allocations started being done more lazily, so they wouldn't be done
unnecessarily, but they are memoized. So we just need to run the block
once before measuring for the test to ignore the memiozed allocations.
@dylanahsmith dylanahsmith merged commit 7bd007a into main Oct 25, 2021
@dylanahsmith dylanahsmith deleted the ruby3 branch October 25, 2021 14:20
@shopify-shipit shopify-shipit bot temporarily deployed to rubygems February 4, 2022 15:56 Inactive
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.

2 participants