Skip to content

Fix Guava BloomFilter interoperability and add cross-language tests - #26

Merged
OldPanda merged 7 commits into
masterfrom
fix/guava-p0-compatibility
Oct 8, 2026
Merged

OldPanda merged 7 commits into
masterfrom
fix/guava-p0-compatibility

Conversation

@OldPanda

@OldPanda OldPanda commented Oct 8, 2026

Copy link
Copy Markdown
Owner

Summary

Improve compatibility with Bloom filters serialized by Java Guava and add bidirectional integration tests against Guava 33.7.2.

Changes

  • Fix MURMUR128_MITZ_32 to match Java’s signed 32-bit overflow behavior.
  • Add explicit Guava-compatible funnels:
    • INTEGER_FUNNEL
    • LONG_FUNNEL
    • UTF8_STRING_FUNNEL
    • BYTE_ARRAY_FUNNEL
  • Preserve the previous implicit encoding as LEGACY_FUNNEL.
  • Allow funnel selection when creating or loading filters.
  • Document Java-to-Python funnel mappings.
  • Add fixed serialization vectors for both BloomFilter strategies.
  • Add real Java/Guava integration tests covering:
    • Guava serialization → Python deserialization
    • Python serialization → Guava deserialization
    • Byte-for-byte serialization round trips
    • Identical mightContain behavior across more than 5,000 deterministic probes
    • Integer, long, UTF-8 string, and byte-array funnels
  • Add a dedicated CI job using checksum-verified Guava 33.7.2.

Compatibility

Existing callers that do not specify a funnel continue using the historical LEGACY_FUNNEL behavior.

For reliable Guava interoperability, callers should explicitly select the same funnel used by Java.

Testing

  • 22 tests passed
  • 39 subtests passed
  • Bidirectional tests passed against Guava 33.7.2
  • Black formatting passed
  • Strict mypy checks passed
  • Bandit security scan passed
  • No whitespace errors detected

Security

The CI integration job downloads a pinned Guava JAR over HTTPS and verifies its SHA-256 checksum before compiling or executing it.

No new runtime network or subprocess behavior is added to the library.

@OldPanda

OldPanda commented Oct 8, 2026

Copy link
Copy Markdown
Owner Author

@codex review the pr

@codecov

codecov Bot commented Oct 8, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (b779ff8) to head (91011e9).

Additional details and impacted files
@@             Coverage Diff             @@
##           master       #26      +/-   ##
===========================================
+ Coverage   96.15%   100.00%   +3.84%     
===========================================
  Files           3         4       +1     
  Lines         208       279      +71     
===========================================
+ Hits          200       279      +79     
+ Misses          8         0       -8     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 8, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-08T06:33:39.872951Z 91011e9 Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 17b476888b

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread bloomfilter/funnel.py Outdated
@OldPanda

OldPanda commented Oct 8, 2026

Copy link
Copy Markdown
Owner Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: a7fa23761d

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread bloomfilter/funnel.py Outdated
@OldPanda

OldPanda commented Oct 8, 2026

Copy link
Copy Markdown
Owner Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 6f0ae9d5a5

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread bloomfilter/funnel.py Outdated
@OldPanda

OldPanda commented Oct 8, 2026

Copy link
Copy Markdown
Owner Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. What shall we delve into next?

Reviewed commit: 91011e9e56

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@OldPanda
OldPanda merged commit 985a856 into master Oct 8, 2026
21 checks passed
@OldPanda
OldPanda deleted the fix/guava-p0-compatibility branch October 8, 2026 06:38
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