Skip to content

Conversation

@nithinyanna10
Copy link

  • Add _safe_to_log() helper to convert RpcError objects to pickleable dicts
  • Sanitize custom log record attributes before pickling
  • Add regression tests to verify RpcError handling
  • Prevents pickle.PicklingError when RpcError objects are in log extra fields

- Add _safe_to_log() helper to convert RpcError objects to pickleable dicts
- Sanitize custom log record attributes before pickling
- Add regression tests to verify RpcError handling
- Prevents pickle.PicklingError when RpcError objects are in log extra fields
@CLAassistant
Copy link

CLAassistant commented Dec 11, 2025

CLA assistant check
All committers have signed the CLA.

@longcw
Copy link
Contributor

longcw commented Dec 11, 2025

it's already fixed in #4185

- Remove trailing whitespace on lines 17 and 141 in log_queue.py
- Remove unused imports (pickle, threading) from test_log_queue_rpcerror.py
- Stub out openai.AsyncClient in test_summarize to prevent real API calls
- Add monkeypatch fixture to test_summarize to use dummy client
- Patch openai package AsyncClient to prevent network calls in LLM
@nithinyanna10 nithinyanna10 force-pushed the fix/4188-logqueue-rpcerror branch from fb2756d to 141099a Compare December 11, 2025 04:56
@nithinyanna10 nithinyanna10 deleted the fix/4188-logqueue-rpcerror branch December 11, 2025 04:57
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.

3 participants