Skip to content

fix(pusher): log the durable projection failure's exception class - #23945

Merged
Git-on-my-level merged 1 commit into
mainfrom
lane/pusherdur
Oct 29, 2026
Merged

Git-on-my-level merged 1 commit into
mainfrom
lane/pusherdur

Conversation

@Git-on-my-level

@Git-on-my-level Git-on-my-level commented Oct 29, 2026 •

Copy link
Copy Markdown
Member

What

The 10-28/29 RCA of the fleet-wide routers.pusher WARNING "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 the reason label collapses every non-conflict failure into transient.

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_budget now 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.sh with BACKEND_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.

View guided diff Turn on auto-fix

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.
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 29, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-29T04:35:28.398287Z 5a56576 PR opened
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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".

Comment thread backend/routers/pusher.py
# 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__)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge 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 👍 / 👎.

@Git-on-my-level
Git-on-my-level merged commit 2a592bf into main Oct 29, 2026
62 checks passed
@Git-on-my-level
Git-on-my-level deleted the lane/pusherdur branch October 29, 2026 04:41
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