feat: Log per-object warehouse delivery outcomes - #8170
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
2 Skipped Deployments
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #8170 +/- ##
=======================================
Coverage 98.71% 98.71%
=======================================
Files 1530 1531 +1
Lines 61201 61234 +33
=======================================
+ Hits 60413 60446 +33
Misses 788 788 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughThe change adds persistent warehouse delivery logs with delivered and rejected outcomes. Each log stores the connection, S3 key, row count, error details, and creation time. A daily task deletes logs older than 60 days. Unit tests cover successful delivery, rejected delivery, and retention cleanup. Observability documentation now contains updated source-code references. Estimated code review effort: 3 (Moderate) | ~20 minutes 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 |
Docker builds report
|
|
@coderabbitai review |
|
@themis-blindfold review |
✅ private-cloud · depot-ubuntu-latest-16 — run #18894 (attempt 1)Playwright Test Results (private-cloud - depot-ubuntu-latest-16)Details
🗂️ Previous results✅ private-cloud · depot-ubuntu-latest-arm-16 — run #18894 (attempt 1)Playwright Test Results (private-cloud - depot-ubuntu-latest-arm-16)Details
✅ oss · depot-ubuntu-latest-arm-16 — run #18895 (attempt 1)Playwright Test Results (oss - depot-ubuntu-latest-arm-16)Details
✅ oss · depot-ubuntu-latest-arm-16 — run #18894 (attempt 1)Playwright Test Results (oss - depot-ubuntu-latest-arm-16)Details
✅ oss · depot-ubuntu-latest-16 — run #18894 (attempt 1)Playwright Test Results (oss - depot-ubuntu-latest-16)Details
✅ oss · depot-ubuntu-latest-16 — run #18895 (attempt 1)Playwright Test Results (oss - depot-ubuntu-latest-16)Details
✅ private-cloud · depot-ubuntu-latest-arm-16 — run #18892 (attempt 1)Playwright Test Results (private-cloud - depot-ubuntu-latest-arm-16)Details
✅ private-cloud · depot-ubuntu-latest-16 — run #18892 (attempt 1)Playwright Test Results (private-cloud - depot-ubuntu-latest-16)Details
✅ oss · depot-ubuntu-latest-arm-16 — run #18893 (attempt 1)Playwright Test Results (oss - depot-ubuntu-latest-arm-16)Details
✅ oss · depot-ubuntu-latest-arm-16 — run #18892 (attempt 1)Playwright Test Results (oss - depot-ubuntu-latest-arm-16)Details
✅ oss · depot-ubuntu-latest-16 — run #18893 (attempt 1)Playwright Test Results (oss - depot-ubuntu-latest-16)Details
✅ oss · depot-ubuntu-latest-16 — run #18892 (attempt 1)Playwright Test Results (oss - depot-ubuntu-latest-16)Details
|
Visual Regression19 screenshots compared. See report for details. |
✅ Action performedReview finished.
|
There was a problem hiding this comment.
Actionable comments posted: 2
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: ASSERTIVE
Plan: Pro Plus
Run ID: 1b53207f-652a-4db7-a7a0-3b1b0c011494
📒 Files selected for processing (7)
api/experimentation/constants.pyapi/experimentation/migrations/0012_warehouse_delivery_log.pyapi/experimentation/models.pyapi/experimentation/services.pyapi/experimentation/tasks.pyapi/tests/unit/experimentation/test_tasks.pydocs/docs/deployment-self-hosting/observability/_events-catalogue.md
|
@themis-blindfold review |
⚖️ Themis review: ✅ Ship itAppend-only audit log for per-object warehouse delivery outcomes, with a daily 60-day retention cleanup. The new
📝 Walkthrough
🧪 How to verify
Product take: Foundational step towards retry-capable warehouse delivery (#8149). No user-facing change yet, but the audit trail gives operators visibility into per-object outcomes and sets up the delivery-record model that retries and concurrency control will build on. 🧭 Assumptions & unverified claims
An audit log that deletes itself after 60 days — the kind of record-keeping that respects everyone's storage budget. · reviewed at 0dac30b |
…ullable" This reverts commit 90ffeb4.
Thanks for submitting a PR! Please check the boxes below:
docs/if required so people know about the feature.Changes
Contributes to #8149
WarehouseDeliveryLogmodel: an append-only audit of each delivered or rejected event object, with the rows written and the warehouse's rejection error.(connection, s3_key): at-least-once redelivery legitimately logs an object twice.Retries and concurrency control from #8149 are not part of this PR.
How did you test this code?
Delivery task tests assert the exact log contents for delivered and rejected objects, plus retention cleanup; 36 task tests pass.