Repository navigation
fix(pusher): log the durable projection failure's exception class - #23945
Conversation
The 10-28/29 RCA of the fleet-wide "Durable audio projection failure; receipts requeued for retry" warning could not name the failing exception from prod logs: flush_refs' catch-all logs no exception detail and the reason label collapses every non-conflict failure to "transient". Since rev 208 (10-26 23:04Z) the requeue:terminal ratio is exactly 2.00 every hour (the PROJECTION_RETRY_BUDGET), i.e. zero retries ever succeed — the dominant class is deterministic, but which exception it is cannot be determined without this line. Log the exception CLASS NAME only — never its message, which can carry user-identifying object paths — once per failed attempt, on both the requeue and terminal arms. No behavior, metric, or existing log line changes.
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 5a56576611
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| # user-identifying object paths) is logged on both arms so an | ||
| # RCA can split read-back mismatches from transport timeouts | ||
| # without redeploying. | ||
| logger.warning('Durable audio projection failure class: %s', type(exc).__name__) |
There was a problem hiding this comment.
Document the new pusher diagnostic in the pipeline guide
This adds a diagnostic to the listen/pusher WebSocket projection path, but the commit updates only the router and its test. backend/AGENTS.md explicitly requires listen/pusher WebSocket changes to update backend/docs/listen_pusher_pipeline.mdx in the same PR. Add a brief note describing the per-attempt exception-class warning and its deliberate omission of exception messages so the owning pipeline guide stays aligned with the operational diagnostics.
AGENTS.md reference: backend/AGENTS.md:L163-L163
Useful? React with 👍 / 👎.
What
The 10-28/29 RCA of the fleet-wide
routers.pusherWARNING "Durable audio projection failure; receipts requeued for retry" (report:data/run-2026-10-13-two-lane-nemotron/pusherdur-rca-2026-10-29.md) could not name the exception class from production logs:flush_refs' catch-all logs no exception detail, and thereasonlabel collapses every non-conflict failure intotransient.Why it matters: since pusher rev 208 (2026-10-26 23:04Z, first roll of #23690) the requeue:terminal log ratio is exactly 2.00 in every hour (the
PROJECTION_RETRY_BUDGET), i.e. zero requeued batches are ever rescued — the dominant failure class is deterministic (read-back family per the #23690 review's deferred-P2), but the actual exception can no longer be identified without redeploying instrumentation.Changes
backend/routers/pusher.py:except Exception→except Exception as exc; one new WARNING per failed projection attempt —Durable audio projection failure class: <type name>— emitted on both the requeue and terminal arms. The exception's message is deliberately never logged (it can embed user-identifying object paths).backend/tests/unit/test_audio_durable_outbox.py:test_transient_projection_failure_drops_after_the_retry_budgetnow also asserts the class line fires exactly once per failed attempt and carries only the type name.No behavior, metric, label-vocabulary, or existing log-line changes.
Verification
backend/test.shwithBACKEND_UNIT_TEST_FILE_LIST=tests/unit/test_audio_durable_outbox.py: 63 passed.python3 backend/scripts/verify_pusher_rollout_gate.py: OK.Failure-Class: none
Reason: pure observability logging; no failure-handling or classification path changes (the dominant prod failure class is unchanged by this PR — it only becomes nameable).
Line-Count-Exception: backend/routers/pusher.py | 1551 -> 1556 | +5 lines: one per-attempt exception-class WARNING (type name only) plus its safety comment — the fleet RCA gap this closes; no split is warranted for a single log line.
Follow-up tracked on the two-lane initiative (anx event eebc3f01): classify the deterministic read-back mismatch as terminal-on-first-attempt (own reason, like the conflict arm) once this logging confirms the class split in prod.