Repository navigation
Recognize nested *Settings.cpp files in the feature_docs hook - #113387
Merged
Merged
Conversation
`PurePosixPath.match` treats `**` like a single `*`, so the pattern `src/**/*Settings.cpp` matched `src/Core/Settings.cpp` but not `src/Storages/MergeTree/MergeTreeSettings.cpp`. A pr-feature PR that documents a new MergeTree setting via its `DECLARE` docstring (the source the settings reference pages are autogenerated from) was rejected with "No documentation changes found". Replace the glob with a prefix + suffix check. Seen on #113020 (report: https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=113020&sha=c6ca56a5bc62a9b8c5e1b853f623f4b4d4e19fbe&name_0=PR&name_1=Finish%20Workflow) Co-Authored-By: Claude Fable 5 <[email protected]>
Contributor
|
Workflow [PR], commit [8434321] Summary: ✅ AI ReviewSummaryThis PR replaces the broken Findings
Tests
Final VerdictNeeds changes before merge: the nested-path fix currently weakens the |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Changelog category (leave one):
ci/jobs/scripts/workflow_hooks/feature_docs.pyaccepts embedded settings documentation (theDECLAREdocstrings from which the settings reference pages are autogenerated) by matching changed files against the globsrc/**/*Settings.cpp/src/**/*Settings.hwithPurePosixPath.match. ButPurePosixPath.matchtreats**like a single*, so the glob matchedsrc/Core/Settings.cppandsrc/Core/FormatFactorySettings.h, yet not the more deeply nestedsrc/Storages/MergeTree/MergeTreeSettings.cpp. As a result, apr-featurePR that adds a new MergeTree setting together with itsDECLAREdocstring — the only correct place to document it, sincedocs/reference/settings/**is autogenerated and direct edits there are rejected — failed the hook with "No documentation changes found, please update the documentation".Replace the glob with an explicit
src/prefix + suffix check, keeping the existingDECLARE_SETTING/DECLARE(content-marker requirement.Seen on #113020 (report).
Related: #113020
Version info
26.8.1.785(included in26.8and later)