Skip to content

Improve batch worker error log serialization and test assertions#591

Draft
cmraible wants to merge 1 commit intomainfrom
improve-error-logging
Draft

Improve batch worker error log serialization and test assertions#591
cmraible wants to merge 1 commit intomainfrom
improve-error-logging

Conversation

@cmraible
Copy link
Collaborator

Summary

  • Updated batch worker error logging to use Pino's err field so error message and stack are serialized in structured logs
  • Added a reusable in-memory log capture utility for tests at test/utils/log-capture.ts
  • Migrated batch worker unit tests to assert emitted log output instead of logger spy calls, including error serialization checks

@coderabbitai
Copy link

coderabbitai bot commented Feb 26, 2026

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch improve-error-logging

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 and usage tips.

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