Skip to content

test: retry rmtree in the cache-reset reopen proof — chromadb 1.5 flusher race - #397

Merged
jphein merged 1 commit into
mainfrom
fix/reset-test-rmtree-race
Aug 9, 2026
Merged

test: retry rmtree in the cache-reset reopen proof — chromadb 1.5 flusher race#397
jphein merged 1 commit into
mainfrom
fix/reset-test-rmtree-race

Conversation

@jphein

@jphein jphein commented Aug 9, 2026

Copy link
Copy Markdown
Collaborator

CI on #396 (docs-only) exposed a post-sync instability: test_reset_releases_sqlite_lock_for_reopen fails with Directory not empty on slow runners — chromadb 1.5's background segment flusher writes mid-rmtree. Local runs pass repeatedly; CI failed 3.10/3.13 twice each.

The test's proof of lock release is the reopen (a held sqlite lock fails there; on Linux open handles never block deletion anyway) — the delete is cleanup, so it now retries briefly (5 × 0.2 s) before raising.

🤖 Generated with Claude Code

…sher race

Post-v3.7.0-sync CI intermittently fails
test_reset_releases_sqlite_lock_for_reopen with 'Directory not empty':
the new chromadb flushes segment files from a background thread, and on
slow runners a flush lands mid-rmtree. The lock-release proof is the
REOPEN (a held sqlite lock fails there), not the delete — so retry the
delete briefly instead of failing on the flusher race. Passed 3.11 on
rerun, failed 3.10/3.13 twice each (#396 runs).
Copilot AI lite review requested due to automatic review settings August 9, 2026 21:31

Copilot AI 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.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@coderabbitai

coderabbitai Bot commented Aug 9, 2026

Copy link
Copy Markdown

Warning

Review limit reached

@jphein, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 43 minutes

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: d043787c-cd81-4b26-be3f-65c1f9ca0a89

📥 Commits

Reviewing files that changed from the base of the PR and between 4ea41e2 and 2d6c7d2.

📒 Files selected for processing (1)
  • tests/test_mcp_server.py

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@jphein
jphein merged commit 5e17774 into main Aug 9, 2026
13 checks passed
@jphein
jphein deleted the fix/reset-test-rmtree-race branch August 9, 2026 21:37
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.

2 participants