fix(harness): report event log write failures - #542
Conversation
|
@rahul-vanyar is attempting to deploy a commit to the SupaMaus Team on Vercel. A member of the Team first needs to authorize it. |
|
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 (2)
Included review availability: Your plan provides up to 4 included reviews per hour; 3 remain after this review. 📝 WalkthroughWalkthrough
ChangesEvent log recovery
Estimated code review effort: 3 (Moderate) | ~20 minutes Merge Risk: 🟡 Moderate · up to Live event delivery continues during log-write failures, but recovery can lose its incomplete-history marker after a restart, mishandle partial writes, or persist unsanitized identity metadata. These bounded reliability and security risks should be fixed or explicitly accepted before merging. Sequence Diagram(s)sequenceDiagram
participant Publisher
participant EventBus
participant appendFileSync
participant Subscriber
Publisher->>EventBus: publish event
EventBus->>appendFileSync: write redacted event
appendFileSync-->>EventBus: write failure
EventBus->>Subscriber: deliver runtime.error warning
Publisher->>EventBus: publish recovered event
EventBus->>appendFileSync: write pending warning and recovered event
EventBus->>Subscriber: deliver recovered event
Suggested reviewers: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
Full details: Description checkExplanation The description clearly states the behavior changes and verification results. It uses non-template headings and omits the checklist, but it provides the main required information, and screenshots are not applicable because this is not a UI change. Full details: Docstring CoverageExplanation No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 2 files. ✨ Finishing Touches 💡 1🛠️ Fix failing CI checks 💡
🧪 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 |
Summary
runtime.errorper affected thread until logging recoversValidation
pnpm typecheckpnpm exec vitest run server/harness/bus.test.ts(8 passed)git diff --checkpnpm testreaches 2,273 counted tests; its only remaining local failure isserver/drivers/codex-catalog.test.ts, reproduced unchanged onupstream/mainSummary by CodeRabbit