tisonkun opened a new pull request, #24:
URL: https://github.com/apache/datasketches-tck/pull/24

   ## Summary
   
   `apache/datasketches-tck` currently generates and publishes cross-language 
serialization snapshots for C++, Go, and Java, while Apache DataSketches Rust 
did not yet have a generator adapter or published corpus in the TCK.
   
   This pull request integrates the Rust snapshot generator introduced in 
apache/datasketches-rust#382 and publishes the initial Rust serialization 
corpus:
   
   - Add `[snapshot.rust]` configuration support in `config.toml` and 
`internal/snapshots/config.go`, plus CLI support in `cmd/tck` (`snapshots check 
<cpp|go|java|rust|all>` and `snapshots update [cpp|go|java|rust] [revision]`).
   - Add `internal/snapshots/rust.go` and register the `rust` generator to run 
`cargo run --release --locked --package snapshots -- --output-dir <dir>` and 
collect `*_rust.sk` files into `serialization_test_data/rust_generated_files`.
   - Add `rustStability` in `internal/snapshots/stability.go` (with unit tests 
in `stability_test.go`), classifying the 27 compacted probabilistic snapshots 
(`density_*` with `n >= 100`, `kll_*` with `n >= 1000`, and `req_float_*` with 
`n >= 100`) as `unstable` and the remaining 149 deterministic snapshots 
(including fixed-seed Bloom and Xor filters) as `stable`.
   - Pin `rust = "1.100.0"` in `mise.toml` for local development and scheduled 
snapshot updates, and document `rust` in `docs/serialization-snapshots.md`.
   - Publish 176 `*_rust.sk` serialization snapshots across 12 sketch families 
(`bloom`, `countmin`, `cpc`, `density`, `frequencies`, `hll`, `kll`, `req`, 
`tdigest`, `theta`, `tuple`, and `xor`).
   
   > [!NOTE]
   > `config.toml` currently pins commit 
`4ef634f6d532ecd7cbd8a5d416cc756d07628911` from apache/datasketches-rust#382 
and should be updated to the merged `main` commit once 
apache/datasketches-rust#382 lands.
   
   ## Validation
   
   - `mise run check` and `go test -race ./...`
   - `mise run tck -- snapshots update rust 
4ef634f6d532ecd7cbd8a5d416cc756d07628911` and repeated `mise run tck -- 
snapshots check rust` runs (0 blocking changes; all 149 `stable` snapshots 
reproduced byte-for-byte, and only the 27 `unstable` compacted snapshots varied)
   - Cross-language deserialization and parity checks of the 176 `*_rust.sk` 
snapshots against `apache/datasketches-java` (`-P check_rust_files`) and 
`apache/datasketches-cpp`
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to