Skip to content

Improve function_prop_fuzzer - #104352

Merged
alexbakharew merged 1 commit into
masterfrom
abakharew/function_prop_fuzzer-improvement
May 11, 2026
Merged

alexbakharew merged 1 commit into
masterfrom
abakharew/function_prop_fuzzer-improvement

Conversation

@alexbakharew

@alexbakharew alexbakharew commented May 8, 2026 •

Copy link
Copy Markdown
Contributor

Changelog category (leave one):

  • CI Fix or Improvement (changelog entry is not required)

Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):

...

Documentation entry for user-facing changes

  • Documentation is written (mandatory for new features)

Version info

  • Merged into: 26.5.1.511

@clickhouse-gh

clickhouse-gh Bot commented May 8, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [PR], commit [ce3c36f]

Summary: ✅


AI Review

Summary

This PR improves from_gtest_run fallback handling when gtest.json is missing by extracting crash hints from logs and synthesizing a failed sub-result. The direction is good, but the synthesized test-name logic currently mishandles common negative/composite --gtest_filter values and can misattribute failures downstream.

Findings

⚠️ Majors

  • [ci/praktika/result.py:792] gtest_filter.rstrip(".*") produces invalid synthetic names for real filters used in CI (for example -FunctionsStress.* becomes -FunctionsStress). This synthetic name is later used by reporting/CIDB attribution and can lead to misleading failure attribution.
    Suggested fix: only derive a name from simple positive filters (Suite.Test, Suite.*); for negative/composite filters (-..., ...:...) use unknown.
Tests
  • ⚠️ Add unit coverage for synthesized crash-result naming with representative filters: empty filter, Suite.*, Suite.Test, negative-only filter (-Suite.*), and composite filter (A.*:B.*).
ClickHouse Rules
Item Status Notes
Deletion logging ➖
Serialization versioning ➖
Core-area scrutiny ✅
No test removal ✅
Experimental gate ➖
No magic constants ✅
Backward compatibility ⚠️ Synthetic crash test naming changes behavior of downstream attribution in existing CI flows with negative filters
SettingsChangesHistory.cpp ➖
PR metadata quality ✅
Safe rollout ⚠️ Misattribution risk in CI report consumers until filter handling is constrained
Compilation time ✅
No large/binary files ✅
Final Verdict

Status: ⚠️ Request changes

Minimum required actions:

  1. Make synthetic crash test-name derivation robust for negative/composite gtest_filter values (fallback to unknown when ambiguous).
  2. Add tests for filter-to-name mapping edge cases to prevent regression.

@clickhouse-gh clickhouse-gh Bot added the pr-ci label May 8, 2026
Comment thread ci/praktika/result.py
result.info = sanitizer_info or info
result.info = crash_info or info
# Synthesize a failed sub-result so the job summary is not empty.
crashed_test = gtest_filter.rstrip(".*") or "unknown"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

gtest_filter.rstrip(".*") is not safe for general gtest filters. In this repo we run unit tests with --gtest_filter=-FunctionsStress.*, so this line synthesizes -FunctionsStress as a fake test name. That value then flows into report/CIDB matching and can misattribute failures.

Please normalize only when the filter is a simple positive pattern (e.g. Suite.Test or Suite.*), and fall back to unknown for negative or composite filters (-..., ...:..., etc.).

@alexbakharew
alexbakharew added this pull request to the merge queue May 11, 2026
Merged via the queue into master with commit c1dc389 May 11, 2026
165 checks passed
@alexbakharew
alexbakharew deleted the abakharew/function_prop_fuzzer-improvement branch May 11, 2026 10:18
@robot-clickhouse-ci-1 robot-clickhouse-ci-1 added the pr-synced-to-cloud The PR is synced to the cloud repo label May 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr-ci pr-synced-to-cloud The PR is synced to the cloud repo

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants