Skip to content

Move Java test fixtures to serialization_test_data/java_generated_files - #535

Open
leerho wants to merge 1 commit into
masterfrom
serialization-test-data-dir
Open

leerho wants to merge 1 commit into
masterfrom
serialization-test-data-dir

Conversation

@leerho

@leerho leerho commented Oct 2, 2026

Copy link
Copy Markdown
Member

The cross-language tests read Java-generated .sk files from a top-level directory named java/, which suggests Java source code. This moves them to serialization_test_data/java_generated_files/, the same layout datasketches-java and datasketches-go use (serialization_test_data/<language>_generated_files), which leaves room for cpp_ and go_generated_files later.

Changes:

  • 14 *_deserialize_from_java tests now read from serialization_test_data/java_generated_files/.
  • serde_compat workflow: checks out datasketches-java into datasketches-java/ instead of java/, and copies its generated files into the new directory.
  • .gitignore: replaces java with serialization_test_data/, datasketches-java/ and *.sk, so sketch snapshots can never be committed or end up in a release.

Verified locally with the current Java snapshots from datasketches-tck (Java pin 059b5a9) in the new directory and -DSERDE_COMPAT=true: all 17 test suites pass, including every [serde_compat] case. With the directory absent, the [serde_compat] cases fail, confirming the tests read the new location.

🤖 Generated with Claude Code

The cross-language tests read Java-generated sketches from a top-level
directory named "java", which suggests Java source code. Read them from
serialization_test_data/java_generated_files instead, the layout used by
datasketches-java and datasketches-go.

- Update the 14 *_deserialize_from_java tests.
- serde_compat workflow: check out Java into datasketches-java and copy
  its generated files into the new directory.
- .gitignore: ignore serialization_test_data/, datasketches-java/ and
  all *.sk files, so snapshots can never be committed or released.

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

Copy link
Copy Markdown

Coverage Report for CI Build 36944539689

Coverage increased (+0.009%) to 82.436%

Details

  • Coverage increased (+0.009%) from the base build.
  • Patch coverage: No coverable lines changed in this PR.
  • No coverage regressions found.

Uncovered Changes

No uncovered changes found.

Coverage Regressions

No coverage regressions found.


Coverage Stats

Coverage Status
Relevant Lines: 21561
Covered Lines: 17774
Line Coverage: 82.44%
Coverage Strength: 1364034.82 hits per line

💛 - Coveralls

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.

2 participants