Skip to content

Make PC_MemSize regression checks independent of zlib implementation - #389

Open
devrimgunduz wants to merge 1 commit into
pgpointcloud:masterfrom
devrimgunduz:tests-zlib-ng-memsize
Open

devrimgunduz wants to merge 1 commit into
pgpointcloud:masterfrom
devrimgunduz:tests-zlib-ng-memsize

Conversation

@devrimgunduz

Copy link
Copy Markdown
Contributor

The pointcloud regression test fails on distributions whose system zlib is zlib-ng (e.g. Fedora 44):

-  716
+  740

The dimensional patch tests sum PC_MemSize(), which includes the zlib-compressed size of every dimension. zlib-ng produces larger deflate output than classic zlib (e.g. 10 vs 8 bytes for the same 8-byte input at level 9), so the exact sums (716 and 8773) depend on the zlib implementation.

This PR checks Bool_And(PC_MemSize(pa) > 0) instead of asserting exact compressed sizes. Verified: all 3 tests pass on PG 14 with zlib-ng 2.3.3.

🤖 Generated with Claude Code

The dimensional patch tests summed PC_MemSize(), which includes the
zlib-compressed size of each dimension. zlib-ng (the system zlib on
Fedora 40+ and others) produces larger deflate output than classic zlib,
so the sums (716 and 8773) differ and the pointcloud test fails.

Check that PC_MemSize() is positive instead of asserting exact sizes.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

This branch has not been deployed

No deployments
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