Skip to content

test(sync): shrink the tombstone cap fixture - #3080

Merged
kunickiaj merged 1 commit into
mainfrom
fix/slow-tombstone-test
Nov 29, 2026
Merged

kunickiaj merged 1 commit into
mainfrom
fix/slow-tombstone-test

Conversation

@kunickiaj

@kunickiaj kunickiaj commented Nov 29, 2026 •

Copy link
Copy Markdown
Owner

Description

The sustained-delete test repeatedly counted 50,000 unverified tombstones in SQLite and exceeded Vitest’s 5-second limit on CI. The test now uses a cap of 250 and checks after each batch that eviction removes the oldest unverified entries first without touching verified entries or another sender’s entries. A separate assertion checks that the production cap is still 50,000. The test timeout is unchanged.

Type of Change

  • 🚀 Feature (new functionality)
  • 🐛 Bug fix (fixes an issue)
  • 📚 Documentation (docs-only change)
  • 🔧 Maintenance (refactor, chore, CI, etc.)
  • 🧪 Testing (test-only changes)

Testing

  • Relevant checks pass locally (pnpm run tsc, pnpm run lint:delta -- --base 224bd297e, and the isolated file)
  • Added/updated tests for changes
  • Manually verified changes work as expected

pnpm exec vitest run --maxWorkers=2 --reporter=verbose packages/core/src/sync-apply-tombstone.test.ts passed all 18 tests. The affected test took 1,070 ms before and 35 ms after in the same isolated setup.

Checklist

  • Code follows project style
  • Self-review completed
  • Documentation updated (if needed)
  • No new warnings introduced

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 29, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-29T06:16:16.809526Z 5389f25 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

Copy link
Copy Markdown
Owner Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

kunickiaj commented Nov 29, 2026 •

Copy link
Copy Markdown
Owner Author

Merge activity

  • Nov 29, 6:30 AM UTC: A user started a stack merge that includes this pull request via Graphite.
  • Nov 29, 6:31 AM UTC: @kunickiaj merged this pull request with Graphite.

@kunickiaj
kunickiaj merged commit f09d431 into main Nov 29, 2026
23 checks passed
@kunickiaj
kunickiaj deleted the fix/slow-tombstone-test branch November 29, 2026 06:31
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