Repository navigation
Use sipHash128 instead of MD5 in test 05565_uniq_exact_variadic_chunked_keys - #130141
Conversation
…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]>
Internal second-model review: adjudication log (click to expand)Pre-publication review by an independent model (engine: codex; 0 findings), plus my own cold review of the diff (0 findings).
Severity: ❌ blocker / Session id: cron:clickhouse-review-slot-9:20261108-120300 |
Pre-PR validation gate (click to expand)
Session id: cron:clickhouse-impl-slot-7:20261108-114800 |
|
cc @alexey-milovidov, could you review this and add the |
|
Workflow [PR], commit [bf5793d] Summary: ✅ AI ReviewSummaryPR #130141 replaces Missing context / blind spots
Final VerdictStatus: ✅ Approve. |
7e1ef32
Related: #129941
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
Use
sipHash128instead ofMD5in the stateless test05565_uniq_exact_variadic_chunked_keys, so it also passes when OpenSSL FIPS mode is enabled.Description
05565_uniq_exact_variadic_chunked_keys(added in #129941) fingerprints every serializeduniqExact*Stateashex(MD5(hex(state))). In FIPS modeMD5throwsCode: 344 ... Function MD5 is not available in FIPS mode. (SUPPORT_IS_DISABLED)at analysis, so the test fails at its first state query (query 12, line 42). The FIPS job runs only in the private CI (CH Inc sync), so I cannot link a public failing job.The hash only compresses a long hex string into a 128-bit fingerprint. The change replaces
MD5withsipHash128(no OpenSSL, alsoFixedString(16)) at all 69 call sites, the same substitution as #125750 and #125527, and keeps the test in the FIPS job instead of skipping it there. Only the fingerprint fields of the.referencechange; I derived them from a run printing both hashes of each state, whoseMD5halves equal the old reference, so the new reference fingerprints the same states.Validation: with FIPS mode turned on through
OPENSSL_CONF(default_properties = fips=yes), master's test fails with the reported error and the fixed test passes 20/20 with randomized settings. This config does not load the FIPS provider module, so it is not a full FIPS build. Without FIPS the fixed test passes 50/50 with randomized settings, with unchanged run time.Workflow [PR]
Sync PR [sync-upstream/pr/130141]
Version info
26.11.1.1671-master(included in26.11and later)