Skip to content

Coverage reads report when they reach a bound - #1722

Merged
zlareb1 merged 2 commits into
mainfrom
fix/ci-coverage-row-bound
Nov 30, 2026
Merged

zlareb1 merged 2 commits into
mainfrom
fix/ci-coverage-row-bound

Conversation

@zlareb1

@zlareb1 zlareb1 commented Nov 28, 2026 •

Copy link
Copy Markdown
Member

Related: #1704
Related: #1705

Changelog category

  • CI Fix or Improvement

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_for returns 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

  • Wire changes. None.
  • Operator steps. None.
  • Rollback. A revert restores the prior internal return type and its callers. No data migration.

Tests

  • The same tunable-constant test reports the duplicate row bound on clean main and on the affected CI merge trees.
  • On the standalone patch, 188 focused tests, make lint, and make typecheck pass. The whole-tree tunable check reports only DOCSTRING_MAX_LINES, and the format check reports the adoption page assignment. Both also fail on clean main and are tracked in repair #1706.
  • With the separate repair applied locally, the unchanged tunable test, four coverage boundary cases, and the statement-shape check pass. make format and make format-check also pass on that combination.

AI assistance in the code

  • AI-generated. Codex prepared and validated the repair.

Checklist

  • Commits are signed off.
  • The description names operator steps and wire changes.

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_for now returns (rows, capped) instead of rows only. capped is true when the query hits the row limit or when more than COVERAGE_ROW_PATHS (50) source paths were requested, so incompleteness uses the store’s own bounds instead of duplicating them in callers.

test_links._coverage drops the local _COVERAGE_ROWS constant and uses that flag for Links.capped, which surfaces truncation (e.g. test gate causes: ["truncated"]). claim_tests unpacks the tuple but does not yet use the flag. Unit tests and stubs are updated; test_coverage_read_reports_its_path_and_row_bounds covers the four boundary cases.

Reviewed by Cursor Bugbot for commit bf8b733. Bugbot is set up for automated code reviews on this repo. Configure here.

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>
@vercel

vercel Bot commented Nov 28, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
loom-docs Ready Ready Preview Nov 29, 2026 6:40am UTC
loom-telemetry Ready Ready Preview Nov 29, 2026 6:40am UTC

Request Review

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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant