Skip to content

Qualify grep recovery gaps and stale cursor mappings - #1213

Merged
zlareb1 merged 1 commit into
mainfrom
fix/grep-recovery-missing-source-fixture
Nov 23, 2026
Merged

zlareb1 merged 1 commit into
mainfrom
fix/grep-recovery-missing-source-fixture

Conversation

@zlareb1

@zlareb1 zlareb1 commented Nov 23, 2026

Copy link
Copy Markdown
Member

Related: #1210

Changelog category

  • Build/Testing/Packaging Improvement

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

  • Wire: none.
  • Operator steps: none.
  • Rollback: no stored-data changes.

Tests

  • CI failures in test_grep_recovers_raw_source_before_disclosing_missing_coordinates[missing] and test_grep_reruns_pools_without_the_current_source_mapping[2] establish the fixture defects. Both also fail on the merged base.
  • make format lint typecheck passes. Focused formatting and lint also pass after changing the cursor parameters.
  • Local unit and integration tests were not run, as requested. CI runs both regression files; no local test-pass claim.

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

  • Format, lint and type checks pass; local test limitations are reported above.
  • Generated files are unchanged and current.
  • No migrations, plugins, frontend or documentation behavior changes.
  • Commits are signed off.

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 <[email protected]>
@vercel

vercel Bot commented Nov 23, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated
loom-docs Building Building Preview Nov 23, 2026 2:15am UTC

Request Review

@zlareb1
zlareb1 merged commit 3f67307 into main Nov 23, 2026
50 of 51 checks passed
@zlareb1
zlareb1 deleted the fix/grep-recovery-missing-source-fixture branch November 23, 2026 02:17
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