Repository navigation
Qualify grep recovery gaps and stale cursor mappings - #1213
Merged
Merged
Conversation
The missing-source fixture already contained a complete span, and the cursor regression treated the current mapping version as unsupported. Exercise actual gaps and non-current versions while preserving successful coverage. Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
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: #1210
Changelog category
Changelog entry
Exercise missing retained source and non-current grep cursor mappings in regression coverage.
Why
The missing-source fixture already supplied a complete source span among the matching chunks. An empty recovery read therefore correctly removed the partial warning. Add an unrelated method that the query does not match so the fixture has an actual gap. Keep the complete-known-source case separately, including the same exact line assertions.
The cursor regression classified the current line-mapping version as unsupported after the version bump. Cover the preceding and following versions instead. The existing successful cursor round trip covers the current version.
Scope and risk
Two regression fixtures only. No product code, benchmark inputs, grader or runtime changes.
Compatibility, rollout and rollback
Tests
test_grep_recovers_raw_source_before_disclosing_missing_coordinates[missing]andtest_grep_reruns_pools_without_the_current_source_mapping[2]establish the fixture defects. Both also fail on the merged base.make format lint typecheckpasses. Focused formatting and lint also pass after changing the cursor parameters.AI assistance in the code
AI-generated: Codex checked the failed CI logs, source-span recovery and cursor acceptance paths.
I can explain every line of this diff and how it interacts with the rest of Loom.
Checklist