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

"Compaction isn't available on this platform" error running PG test suite on ppc64le #423

Closed
voxik opened this issue Feb 1, 2022 · 1 comment

Comments

@voxik
Copy link

voxik commented Feb 1, 2022

Trying to execute test suite of pg gem on ppc64le, I observe a following error:

... snip ...

  1) GC.compact should compact PG::TypeMapByClass #328
     Failure/Error: GC.verify_compaction_references(toward: :empty, double_heap: true)
     NotImplementedError:
       Compaction isn't available on this platform
     # <internal:gc>:257:in `verify_compaction_references'
     # ./spec/pg/gc_compact_spec.rb:58:in `block (2 levels) i

... snip ...

This is surprising, given that the test suite seems to do reasonable effort to guard this behavior:

describe "GC.compact", if: GC.respond_to?(:compact) do

Therefore I have reported this behavior to Ruby upstream. Unfortunately, it seems that the guard above is not enough by design. Is there any chance to guard not just the compact method availability, but also its functionality?

For the moment, I'm going to disable the entire test file on ppc64le.

@larskanis
Copy link
Collaborator

OK, I didn't know, that there are platforms without GC.compact. I'll change the test suite to check for usability of these functions.

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

No branches or pull requests

2 participants