Skip to content

fix(cleanup): reject malformed legacy intervals before commit - #11740

Merged
BubbleCal merged 1 commit into
mainfrom
t3/reject-invalid-cleanup-interval
Dec 2, 2026
Merged

BubbleCal merged 1 commit into
mainfrom
t3/reject-invalid-cleanup-interval

Conversation

@BubbleCal

@BubbleCal BubbleCal commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor

Summary

A malformed lance.auto_cleanup.interval can be published in the manifest. Later commits still succeed, but the cleanup hook logs a warning and skips automatic cleanup.

Validate the final interval before publication when a transaction explicitly writes the key. The error names the key and explains how to repair it. Datasets with a previously stored malformed interval can still be opened, appended to, updated on other keys, and repaired by replacing or removing the interval. The existing 0 behavior and retention policy rules still apply.

Fixes #11739.

Validation

  • Reproduced on managed Linux with PyLance 15.0.0 and the existing Rust test on origin/main.
  • cargo fmt --all --check
  • cargo clippy --locked --all --tests --benches -- -D warnings
  • Managed Linux regression tests passed on the PR head. All 74 tests passed across the auto_cleanup and dataset::cleanup::tests::retention filters.

@github-actions github-actions Bot added the bug Something isn't working label Dec 2, 2026
@BubbleCal
BubbleCal marked this pull request as ready for review December 2, 2026 11:15

@claude claude Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Claude Code Review

This repository is configured for manual code reviews. Comment @claude review for a one-time review, or @claude review always to subscribe this PR to a review on every future push.

Tip: disable this comment in your organization's Code Review settings.

@lance-gatekeeper lance-gatekeeper Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Gate recommendation: approve.

The final-manifest validation addresses #11739 while keeping inherited malformed settings writable and repairable. No blocking issues found.

@lance-gatekeeper lance-gatekeeper Bot added the K-approved Latest Gatekeeper recommendation permits acceptance. label Dec 2, 2026
@BubbleCal
BubbleCal merged commit c6917ae into main Dec 2, 2026
46 checks passed
@BubbleCal
BubbleCal deleted the t3/reject-invalid-cleanup-interval branch December 2, 2026 11:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working K-approved Latest Gatekeeper recommendation permits acceptance.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug: reject malformed auto-cleanup interval in update_config

2 participants