Repository navigation
Skip the log entries of test_mask_sensitive_info's own system.query_log probes in its server log checks - #124691
Conversation
check_logs() grepped the whole server log for each checked string and skipped only lines containing the probe's SQL prefix. The probe itself logs the string, and with apply_string_filters_during_scan = 1 the LIKE conjunct alone is moved to PREWHERE: the PREWHERE trace lines and the multi-line "Original PREWHERE DAG:" dump print it without the prefix (continuation lines carry no query id at all). The Azurite account key is shared by several tests, so the connection-string probe of test_table_functions_object_storage_cluster failed the later test_backup_table_azure_named_collection and test_iceberg_cluster_function (seen on ClickHouse#124507). Run the probes with a fixed query id prefix and drop every log entry of such a query, header and continuation lines, before grepping. All other log lines are still checked. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ters_during_scan = 1 The probe-entry log filter only matters when the probe's LIKE conjunct is moved to PREWHERE alone, which needs apply_string_filters_during_scan = 1 (default false). Without it the module passes with or without the filter, so a revert of the filter would stay green. Pin the setting on the probe query only (client flag, the probe's SQL is unchanged), so every run of the module exercises the path the filter guards. 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; 2 rounds, 1 finding) plus my own review (2 rounds, 1 finding).
Severity: ❌ blocker / Session id: cron:clickhouse-review-slot-11:20261008-164700 |
Pre-PR validation gate (click to expand)
Session id: cron:clickhouse-impl-slot-5:20261008-155600 |
|
Workflow [PR], commit [a746958] Summary: ✅ AI ReviewSummaryThis test-only PR fixes Final Verdict
|
Related: #124507
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
...
Description
test_mask_sensitive_info/test.py::test_iceberg_cluster_functionfails on #124507 (Integration tests (amd_llvm_coverage, 4/8), again on its headc23830da) withassert not node.contains_in_log('Eby8...', exclusion_substring='SELECT COUNT() FROM system.query_log WHERE query LIKE ').The secret in the log is the test's own probe, not a server leak.
check_logs()greps the whole server log and skips only lines containing the probe's SQL prefix, but the probe... WHERE query LIKE '%<secret>%' AND query NOT LIKE '<prefix>%'logs<secret>itself. Withapply_string_filters_during_scan = 1(the new default in #124507) theLIKEhalf alone is moved to PREWHERE, and the PREWHERE trace lines and the multi-lineOriginal PREWHERE DAG:dump print<secret>without the prefix. The Azurite account key is shared by several tests, so the connection-string probe oftest_table_functions_object_storage_clusterfails the latertest_backup_table_azure_named_collectionandtest_iceberg_cluster_function.The probes now run with a
mask_sensitive_info_probe_query id prefix, and the server log checks drop every log entry of such a query, including the continuation lines of multi-line messages, before grepping. The probes also run withapply_string_filters_during_scan = 1, so the module exercises this path on every run.Validation with a master debug build, whole module: the new test passes (3 runs), and with the old log check it fails exactly those two tests. A wrong prefix in the filter brings both failures back, and a non-probe query that logs the key is still caught.
Workflow [PR]
Sync PR [sync-upstream/pr/124691]
Version info
26.10.1.1981-master(included in26.10and later)