Skip to content

Check ClickHouse spelling in changelog entries - #115362

Merged
alexey-milovidov merged 6 commits into
masterfrom
fix/pr-114926-changelog-spelling
Aug 21, 2026
Merged

alexey-milovidov merged 6 commits into
masterfrom
fix/pr-114926-changelog-spelling

Conversation

@alexey-milovidov

@alexey-milovidov alexey-milovidov commented Aug 18, 2026 •

Copy link
Copy Markdown
Member

Validate the product-name spelling in required PR changelog entries, which are the source of published changelog records excluded by the repository-wide spelling check.

Related: #114926

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):


Workflow [PR]
Sync PR [sync-upstream/pr/115362]

@clickhouse-gh

clickhouse-gh Bot commented Aug 18, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [PR], commit [c669ae9]

Summary: ✅


AI Review

Summary

Shares the repository-wide ClickHouse spelling matcher with the PR-body changelog check and adds focused regression tests for separator variants, URLs, and word-boundary handling. Most earlier review feedback is fixed in the current head, but the gate still treats standalone clickhouse / CLICKHOUSE as canonical changelog prose, so it does not fully enforce the product-name spelling contract this PR claims to add.

Findings

⚠️ Majors

  • [ci/jobs/scripts/check_style/clickhouse_spelling.py:6-7,25-31; ci/jobs/scripts/workflow_hooks/pr_body_check.py:15-18; ci/tests/test_pr_body_check.py:47-54] [dismissed by author -- https://github.com/Check ClickHouse spelling in changelog entries #115362#issuecomment-5356155708] The shared allowlist still marks bare clickhouse and CLICKHOUSE as “correct”, and the new changelog-entry tests lock that behavior in. As a result, a published entry like Add clickhouse support. currently passes unchanged, even though the PR body says it validates product-name spelling in changelog entries. Allowing identifier/tool forms such as clickhouse-local, clickhouse_driver, or CLICKHOUSE_* does not require allowing the same spellings as standalone prose tokens.
    Suggested fix: in the changelog-entry path, reject word-bounded standalone clickhouse / CLICKHOUSE while still exempting explicit identifier contexts (suffix/prefix separators or longer identifiers), and update the allowlist test to cover those accepted contexts instead of bare prose.
Final Verdict
  • Status: ⚠️ Request changes
  • Minimum required action: make the changelog-entry gate reject standalone prose clickhouse / CLICKHOUSE, or narrow the PR title/body to match the weaker behavior it actually enforces.

@clickhouse-gh clickhouse-gh Bot added the pr-ci label Aug 18, 2026
@tiandiwonder tiandiwonder self-assigned this Aug 19, 2026
@clickhouse-gh

clickhouse-gh Bot commented Aug 19, 2026 •

Copy link
Copy Markdown
Contributor

Build profile diff (arm_release)

Comparing c669ae97e with master bddae8d72 (stripped binary size, per-symbol sizes and ThinLTO time; compile times per translation unit against the most recent warmup build that recompiled it).

✅ No significant changes.

Binary sizes
Binary Master PR Δ
programs/clickhouse-stripped 704.40 MiB 701.35 MiB -3.05 MiB (-0.43%)

Only the stripped binary is compared: the official master build keeps debug symbols while PR builds strip them, so the other binaries differ by construction.

Compile time of recompiled translation units

7 translation units recompiled, 16 s compile time in total, 7 of them have a recent master baseline.

Job report

Comment thread ci/tests/test_pr_body_check.py Resolved
Comment thread ci/tests/test_pr_body_check.py Resolved
Comment thread ci/jobs/check_style.py Resolved
Comment thread ci/jobs/check_style.py Resolved
Comment thread ci/tests/test_pr_body_check.py Resolved
Comment thread ci/tests/test_pr_body_check.py Resolved
Restore the enumeration of the six caught spellings in the comment of
`clickhouse_spelling`, which makes the exemption of that module in
`clickhouse_spelling_ignore.txt` load-bearing again; drop the now dead
`ClickhouseBuffer` exemption for `check_style.py`; import the shared module
with a single absolute import; call `clickhouse_misspellings` directly instead
of the passthrough wrapper; and cover `clickHouse` in the changelog-entry test,
naming the URL case for what it pins.
@alexey-milovidov

Copy link
Copy Markdown
Member Author

🕵 On the remaining AI-review finding about bare clickhouse / CLICKHOUSE: this is deliberate and stays. The changelog-entry gate reuses the repository-wide allowlist of ci/jobs/scripts/check_style/clickhouse_spelling.py unchanged, precisely so the two gates cannot drift. Changelog entries routinely and correctly contain clickhouse-local, clickhouse-client, clickhouse_driver, CLICKHOUSE_* environment variables and setting names, and distinguishing those from prose mentions of the product name requires guessing at context - which would reject valid entries. The forms this PR set out to block - Clickhouse, clickHouse, click_house, click-house, CLICK_HOUSE, Click House - are all rejected and covered by tests.

@alexey-milovidov
alexey-milovidov dismissed tiandiwonder’s stale review August 21, 2026 01:21

Because all comments are resolved.

@alexey-milovidov
alexey-milovidov added this pull request to the merge queue Aug 21, 2026
Merged via the queue into master with commit d9bf5eb Aug 21, 2026
176 checks passed
@alexey-milovidov
alexey-milovidov deleted the fix/pr-114926-changelog-spelling branch August 21, 2026 03:10
@robot-ch-test-poll2 robot-ch-test-poll2 added the pr-synced-to-cloud The PR is synced to the cloud repo label Aug 21, 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.

3 participants