Repository navigation
Remove leftover service storage purge after production inventory is empty - #1569
Conversation
…is empty Production APP_DB has zero kind=service user_storage_buckets rows. Remove the estimate-backfill purge hook, tighten the live CHECK in migration 0017, and garden the leftover-service docs. Closes #1565. Co-authored-by: me <me@kentcdodds.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (13)
💤 Files with no reviewable changes (5)
Included review availability: Your plan provides up to 2 included reviews per hour; 1 remains after this review. 📝 WalkthroughWalkthroughThe change removes retired ChangesService storage retirement
Estimated code review effort: 3 (Moderate) | ~20 minutes Merge Risk: ⚪ Minimal · up to The PR removes the retired service-storage purge path and rejects new service entries after production inventory reached zero; no actionable merge-blocking risk remains beyond normal checks and review. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches 💡 1📝 Generate docstrings 💡
🧪 Generate unit tests (beta)
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. Comment |
main already used 0017 for package-owned invocation tokens. Co-authored-by: me <me@kentcdodds.com>
|
🔎 Preview deployed: https://kody-pr-1569.kody-a99.workers.dev Worker: Mocks:
|
Preview manual testSeeded user on https://kody-pr-1569.kody-a99.workers.dev (
Migration |
Intent
Finish #1565 now that production
APP_DBhas zero leftoverkind='service'inventory: drop the retired-service purge lane and stop accepting that kind.Summary
user_storage_bucketskinds on 2026-08-19:execute1,job105,package94,repo_session1103,unknown6. Noservicerows.purgeRetiredServiceStorageBucketsfrom thestorage_bucket_estimate_backfilllane and delete the purge module.0018that rebuildsuser_storage_bucketswithout'service'in the CHECK. Fail closed if a leftover row appears.unknown.data-storage.md, ADR 0025, and the runtime-worker transferred-class runbook.Closes #1565.
This supersedes the docs-only gardens in #1566 (runbook + ADR 0025).
Testing
GROUP BY kindcount (Cloudflare API, read-only)npm run migrations:check— 18 files, next prefix 0019vitest run --project node-unit packages/worker/src/storage-buckets— 3 passedvitest run --project workers-unit packages/worker/src/storage-buckets— 7 passed, including CHECK rejection of'service'npm run docs:check-temporalSystem changes
Medium: extends
d1-app-dbCHECK foruser_storage_buckets. Purge-lane TypeScript is inventory bookkeeping around that table, not a new primitive.System recap — extends existing primitives (medium risk)
Mode: recap · Base:
main@c4d75a07· Head:d710e41bClassification: extends — migration 0018 tightens the live
user_storage_buckets.kindCHECK.Primitives touched
d1-app-dbuser_storage_bucketswithout'service'Unmatched paths include the estimate-backfill purge removal and leftover-service doc gardens.
Change flow
Estimate-backfill no longer clears retired service StorageRunner objects; D1 rejects new
kind='service'rows.Summary by CodeRabbit
Bug Fixes
Documentation
Data Integrity