Repository navigation
Coverage reads report when they reach a bound - #1722
Merged
Merged
Conversation
The test gate reads the coverage store's result and uses the store's bounds to report incomplete evidence. This removes its duplicate row limit. Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This was referenced Nov 28, 2026
Open
Keep the test-link walk from main and have its coverage read use the store's existing row and path bounds. Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com>
This was referenced Nov 29, 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.
Related: #1704
Related: #1705
Changelog category
Changelog entry
None.
Why
The tunable-constant check rejects a second copy of the coverage store's 2,000-row bound in the test gate. The store can report when it reaches either of its read bounds, so callers can flag incomplete evidence using the same bounds as the query. Failed check on main
Scope and risk
coverage_rows_forreturns the rows and whether the query reached the row bound or skipped paths beyond the path bound. The test gate reports that flag with its evidence. The two callers use the existing query, ordering, and bounds.Compatibility, rollout and rollback
Tests
mainand on the affected CI merge trees.make lint, andmake typecheckpass. The whole-tree tunable check reports onlyDOCSTRING_MAX_LINES, and the format check reports the adoption page assignment. Both also fail on cleanmainand are tracked in repair #1706.make formatandmake format-checkalso pass on that combination.AI assistance in the code
Checklist
Note
Low Risk
Internal API and wiring only; query bounds and behavior stay the same, with clearer truncation signaling for test gate evidence.
Overview
coverage_rows_fornow returns(rows, capped)instead of rows only.cappedis true when the query hits the row limit or when more thanCOVERAGE_ROW_PATHS(50) source paths were requested, so incompleteness uses the store’s own bounds instead of duplicating them in callers.test_links._coveragedrops the local_COVERAGE_ROWSconstant and uses that flag forLinks.capped, which surfaces truncation (e.g. test gatecauses: ["truncated"]).claim_testsunpacks the tuple but does not yet use the flag. Unit tests and stubs are updated;test_coverage_read_reports_its_path_and_row_boundscovers the four boundary cases.Reviewed by Cursor Bugbot for commit bf8b733. Bugbot is set up for automated code reviews on this repo. Configure here.