Repository navigation
Add 5 tests for coverage gaps in src/Client, src/Parsers, src/Storages - #129029
Merged
alexbakharew merged 3 commits intoNov 4, 2026
Merged
Conversation
…orages` - `05493_pipe_operators_malformed_clauses` for `parseImpl` in `src/Parsers/ParserPipeOperators.cpp`, release hash e44688d05cbc - `05494_client_ai_sql_generation_paths` for `generateSQL` in `src/Client/AI/AISQLGenerator.cpp`, release hash 6b52668dc44f - `05495_part_moves_between_shards_step_retry` for `step` in `src/Storages/MergeTree/PartMovesBetweenShardsOrchestrator.cpp`, release hash b2bebaab3681 - `05496_client_login_oauth_discovery` for `ensureOAuthEndpointsResolved` in `src/Client/JWTProvider.cpp`, release hash 1415c4cab3b2 - `05497_logsql_unpack_json_options` for `parsePipeUnpack` in `src/Parsers/LogsQL/LogsQLTextPipes.cpp`, release hash 5f14d19f5976 Written by the coverage agent, verified against the master coverage baselines.
Contributor
|
Workflow [PR], commit [f3e0857] Summary: ✅ AI ReviewSummaryPR #129029 adds five stateless tests covering malformed pipe clauses, interactive AI SQL generation, shard-move failure accounting, OAuth endpoint discovery, and LogsQL Missing context / blind spots
Final VerdictStatus: ✅ Approve. No inline findings to post. LLVM Coverage ReportMeasured on commit f3e0857.
Changed lines: Uncovered code analysis did not run: No coverable C/C++ source files changed (contrib/ is excluded from coverage). Newly covered: +983 lines in 80 files (-145 lines lost coverage) · Details |
src/Client, src/Parsers, src/Storagessrc/Client, src/Parsers, src/Storages (+406 covered lines)
src/Client, src/Parsers, src/Storages (+406 covered lines)src/Client, src/Parsers, src/Storages
Repair round of the coverage agent for PR ClickHouse#129029: the fixes of all open review threads in one commit. Verified again against the master coverage baselines; release hash c43c55ee5ee3.
Repair round of the coverage agent for PR ClickHouse#129029: the fixes of all open review threads in one commit. Verified again against the master coverage baselines; release hash c4839c4d2011.
clickgapai
marked this pull request as ready for review
November 3, 2026 21:03
This was referenced Nov 4, 2026
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.
Newly covered: +983 lines in 80 files (-145 lines lost coverage), reported by the CI job
LLVM Coveragefor commit f3e0857.Expected from the agent's gates: 406 lines in the target files (169 of 180 target lines of the 5 functions), measured on the CI coverage build of each test's baseline commit, target file only.
Test-only PR from the coverage agent: 5 stateless tests, one per uncovered function, each verified by the agent's gates and released under its own content hash. The AI code review is the review of these tests; a test with an open review thread or a failing CI job is repaired in place or removed from this PR by the agent.
05494_client_ai_sql_generation_pathsgenerateSQLsrc/Client/AI/AISQLGenerator.cpp05495_part_moves_between_shards_step_retrystepsrc/Storages/MergeTree/PartMovesBetweenShardsOrchestrator.cpp05496_client_login_oauth_discoveryensureOAuthEndpointsResolvedsrc/Client/JWTProvider.cpp05493_pipe_operators_malformed_clausesparseImplsrc/Parsers/ParserPipeOperators.cpp05497_logsql_unpack_json_optionsparsePipeUnpacksrc/Parsers/LogsQL/LogsQLTextPipes.cppAdd test for
generateSQLinAISQLGenerator.cppTest-only PR from the coverage agent. Review: is the gap real, is the test right.
Adds
tests/queries/0_stateless/05494_client_ai_sql_generation_paths, which executes code that no stateless test on master executes:generateSQLinsrc/Client/AI/AISQLGenerator.cpp, lines 26-106 (source at db92feff771a). The function had 35 executable lines with 0 hits in the 4 LLVM coverage baselines of master (db92fef, d1032a1, 44cf9c0, 8b3e78c).Why this test is needed: This test is needed because
generateSQLis a SQL-reachable candidate that drives AI SQL generation, tool-display callbacks and the success-versus-empty result path, and those lines are still uncovered.What the test asserts: The test asserts a user-visible result by sending a fixed prompt through the SQL generation path and checking that the returned query text is the cleaned SQL string extracted from the model response.
Measured on the CI coverage build of
db92feff771a. A line counts as uncovered only when it has 0 hits in all 4 baselines.tests/queries/0_statelessThe test was written by an AI agent (a Nerve worker on Claude) from a task of a deterministic census, verified by the gates above, and released under content hash
c4839c4d2011. It was renumbered from05446_client_ai_sql_generation_pathsat publication. The PR is a draft until a person has reviewed it. Replies to review comments come from the agent's owner, not from the agent.Add test for
stepinPartMovesBetweenShardsOrchestrator.cppTest-only PR from the coverage agent. Review: is the gap real, is the test right.
Adds
tests/queries/0_stateless/05495_part_moves_between_shards_step_retry, which executes code that no stateless test on master executes:stepinsrc/Storages/MergeTree/PartMovesBetweenShardsOrchestrator.cpp, lines 121-200 (source at a3c1418967fb). The function had 40 executable lines with 0 hits in the 4 LLVM coverage baselines of master (a3c1418, bc84324, 8e3eb7a, 39d97ae).Why this test is needed: This test is needed because this SQL-reachable candidate still misses the leader-side step setup that acquires ZooKeeper and selects the next pending move entry to process.
What the test asserts: It asserts that a SQL workflow which triggers a part move on the leader enters the orchestration path instead of returning early, so execution reaches lines 122, 125 and 127.
Measured on the CI coverage build of
a3c1418967fb. A line counts as uncovered only when it has 0 hits in all 4 baselines.tests/queries/0_statelessThe test was written by an AI agent (a Nerve worker on Claude) from a task of a deterministic census, verified by the gates above, and released under content hash
b2bebaab3681. It was renumbered from05452_part_moves_between_shards_step_retryat publication. The PR is a draft until a person has reviewed it. Replies to review comments come from the agent's owner, not from the agent.Add test for
ensureOAuthEndpointsResolvedinJWTProvider.cppTest-only PR from the coverage agent. Review: is the gap real, is the test right.
Adds
tests/queries/0_stateless/05496_client_login_oauth_discovery, which executes code that no stateless test on master executes:ensureOAuthEndpointsResolvedinsrc/Client/JWTProvider.cpp, lines 144-221 (source at 54d0c85e4b63). The function had 38 executable lines with 0 hits in the 4 LLVM coverage baselines of master (54d0c85, 67e3c22, 1df150b, 808fe40).Why this test is needed: This test is needed because the SQL-reachable OAuth login path in ensureOAuthEndpointsResolved still lacks coverage for endpoint override handling, discovery fallbacks, and BAD_ARGUMENTS failures.
What the test asserts: It asserts that login either resolves explicit or discovered OAuth endpoints correctly or fails with the documented BAD_ARGUMENTS message when required inputs are missing or discovery data is invalid.
Measured on the CI coverage build of
54d0c85e4b63. A line counts as uncovered only when it has 0 hits in all 4 baselines. Line 146 is exempt from the expected lines: line 146 requires a second getJWT after a server-accepted connection, which a stateless test cannot reach here because the test server has no jwt_validators; lines 165-167 sit behind the createJwtProvider guard, so when line 163 is reached oauth_url is already non-empty and that branch cannot fire Line 165 is exempt from the expected lines: line 146 requires a second getJWT after a server-accepted connection, which a stateless test cannot reach here because the test server has no jwt_validators; lines 165-167 sit behind the createJwtProvider guard, so when line 163 is reached oauth_url is already non-empty and that branch cannot firetests/queries/0_statelessThe test was written by an AI agent (a Nerve worker on Claude) from a task of a deterministic census, verified by the gates above, and released under content hash
1415c4cab3b2. It was renumbered from05483_client_login_oauth_discoveryat publication. The PR is a draft until a person has reviewed it. Replies to review comments come from the agent's owner, not from the agent.Add test for
parseImplinParserPipeOperators.cppTest-only PR from the coverage agent. Review: is the gap real, is the test right.
Adds
tests/queries/0_stateless/05493_pipe_operators_malformed_clauses, which executes code that no stateless test on master executes:parseImplinsrc/Parsers/ParserPipeOperators.cpp, lines 167-577 (source at 1df150bae26c). The function had 38 executable lines with 0 hits in the 4 LLVM coverage baselines of master (1df150b, 9dfe51c, 808fe40, c189bd9).Why this test is needed: This test is needed because parseImpl has a SQL-reachable candidate path for pipe operators where SELECT, EXTEND, and SET clauses reject malformed lists or replacements during parser rewrites.
What the test asserts: The test asserts that pipe syntax with malformed SELECT, EXTEND, or SET input is parsed into the expected user-visible syntax error or accepted rewrite result for those branches.
Measured on the CI coverage build of
1df150bae26c. A line counts as uncovered only when it has 0 hits in all 4 baselines.tests/queries/0_statelessThe test was written by an AI agent (a Nerve worker on Claude) from a task of a deterministic census, verified by the gates above, and released under content hash
e44688d05cbc. It was renumbered from05480_pipe_operators_malformed_clausesat publication. The PR is a draft until a person has reviewed it. Replies to review comments come from the agent's owner, not from the agent.Add test for
parsePipeUnpackinLogsQLTextPipes.cppTest-only PR from the coverage agent. Review: is the gap real, is the test right.
Adds
tests/queries/0_stateless/05497_logsql_unpack_json_options, which executes code that no stateless test on master executes:parsePipeUnpackinsrc/Parsers/LogsQL/LogsQLTextPipes.cpp, lines 503-658 (source at e6c0a8e34e89). The function had 29 executable lines with 0 hits in the 4 LLVM coverage baselines of master (e6c0a8e, f832936, 54d0c85, 1df150b).Why this test is needed: This parser path handles optional source selection, field lists, preserve_keys, result_prefix, and fallback behavior for LogsQL unpack pipes, and the selected target lines cover SQL-reachable branches that are still uncovered.
What the test asserts: The test should assert that unpack_json with explicit fields and preserve_keys returns the expected extracted and preserved values through the user-visible query result.
Measured on the CI coverage build of
e6c0a8e34e89. A line counts as uncovered only when it has 0 hits in all 4 baselines.tests/queries/0_statelessThe test was written by an AI agent (a Nerve worker on Claude) from a task of a deterministic census, verified by the gates above, and released under content hash
5f14d19f5976. It was renumbered from05493_logsql_unpack_json_optionsat publication. The PR is a draft until a person has reviewed it. Replies to review comments come from the agent's owner, not from the agent.Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
...
Version info
26.11.1.1311-master(included in26.11and later)