Repository navigation
Use sipHash128 instead of MD5 in test 03988_cached_read_big_at - #125527
Conversation
`MD5` throws `SUPPORT_IS_DISABLED` in OpenSSL FIPS builds. ClickHouse#125010 dropped the `stateful`/`long` tags and introduced the `MD5` call, so the test now runs and fails there. `sipHash128` also returns `FixedString(16)`, so `substring(hex(...), 1, 16)` keeps 16-char values and the same Parquet layout. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Internal second-model review: adjudication log (click to expand)Pre-publication review by an independent model (engine: codex; 0 findings) plus my own review (1 finding).
Severity: ❌ blocker / Session id: cron:clickhouse-review-slot-10:20261012-222300 |
Pre-PR validation gate (click to expand)
Session id: cron:clickhouse-impl-slot-4:20261012-220300 |
|
Workflow [PR], commit [8fc8ecb] Summary: ✅ AI ReviewSummaryThis PR replaces Missing context / blind spots
Final Verdict✅ No review findings. The change updates both affected |
CI finish ledger - 8fc8ecbEvery failure below has an owner: a fixing PR (mine or external), or a full-effort fix task
CIDB has no other Session id: cron:our-pr-ci-monitor:20261013-080005 |
6a80f33
…ed_keys The test fingerprints each serialized uniqExact*State as hex(MD5(hex(state))). MD5 is refused in OpenSSL FIPS mode (FunctionMD5 throws SUPPORT_IS_DISABLED at analysis), so in a FIPS build the test fails at its first state query (query 12, line 42) and at every later one. The digest is incidental: it only compresses a long hex string into a 128-bit fingerprint. Replace MD5 with sipHash128 at all 69 call sites: it needs no OpenSSL, exists in every build including Fast test, and returns FixedString(16) like MD5, so the reference keeps its shape and size. Same substitution as ClickHouse#125750 and ClickHouse#125527. The new fingerprints were taken from a run printing both hashes of every state: all 286 MD5 halves equal the old reference and the old-to-new mapping is a bijection, so the reference still asserts the same states. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Related: #125010
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
Use
sipHash128instead ofMD5in the stateless test03988_cached_read_big_at, so it also passes when OpenSSL FIPS mode is enabled.Description
#125010 made
03988_cached_read_big_atgenerate its Parquet data from hash digests, one of themMD5, and dropped thestateful/longtags that kept it out of the OpenSSL FIPS stateless job. In FIPS mode theMD5function throwsSUPPORT_IS_DISABLED("Function MD5 is not available in FIPS mode") when the query is analyzed, so theINSERTthat writes the test file fails on every run there. That job runs only in the private repository's CI (it shows up as aCH Inc syncfailure), so I cannot link a public failing job.MD5only produces 16 hex chars of pseudo-random data here. The change replaces it withsipHash128at both sites (the data and the expected checksum), the same substitution as #116023.sipHash128does not use OpenSSL and also returnsFixedString(16), sosubstring(hex(...), 1, 16)keeps every value at 16 chars and the file keeps the same row groups and column chunk sizes (to within 1 byte).SHA256stays: it is allowed in FIPS mode.Validation: with FIPS mode on through
OPENSSL_CONF(default_properties = fips=yes), master's test fails with the sameCode: 344error and the fixed test no longer hits it. My local build does not load the FIPS provider module, so a complete FIPS run was not possible. Without FIPS the fixed test passes 50/50 against MinIO.🤖 Generated with Claude Code
Workflow [PR]
Sync PR [sync-upstream/pr/125527]
Version info
26.10.1.2361-master(included in26.10and later)