Repository navigation
Conversation
|
Merging to
After your PR is submitted to the merge queue, this comment will be automatically updated with its status. If the PR fails, failure details will also be posted here |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Walkthrough
Priority: ➖ Normal Merge Risk | ⚪ Minimal · up to
|
1d9e48c to
94e2722
Compare
|
This PR hasn't seen activity in a week! Should it be merged, closed, or further worked on? If you want to keep it open, please remove the |
|
Keeping this open. I'll pick it up when I start on Nov 2. |
After SES accepted an email, a failure to build its saved copy or to read the team's engagement setting made the run report the step as failed. Keep the step sent, log a warning on the run, and count the failure in cdp_email_bookkeeping_failures_total by stage. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
94e2722 to
76b1114
Compare
|
Moved to #127174 so CI runs. |
Problem
A workflow email step can show as failed even though the recipient got the email.
email_failedwith that error.Note
🔵 Merge risk: low · one-way door (merge-risk rubric)
Changes
cdp_email_bookkeeping_failures_total, counts each fault bystage.Before:
flowchart LR A[Provider accepts email] --> B[Bookkeeping fails] --> C[Run fails or email_failed] classDef phRed fill:#f54e00,stroke:#f54e00,color:#fff; classDef phBlue fill:#1d4aff,stroke:#1d4aff,color:#fff; classDef phYellow fill:#f9bd2b,stroke:#f9bd2b,color:#000; class A phRed; class B phBlue; class C phYellow;After:
flowchart LR A[Provider accepts email] --> B[Bookkeeping fails] --> C[Sent outcome, warning and counter] classDef phRed fill:#f54e00,stroke:#f54e00,color:#fff; classDef phBlue fill:#1d4aff,stroke:#1d4aff,color:#fff; classDef phYellow fill:#f9bd2b,stroke:#f9bd2b,color:#000; class A phRed; class B phBlue; class C phYellow;This replaces the earlier version of this PR, which sat on top of #112859 and the stack down to the local SES container from #112316. It now targets master alone, and drops the local-development doc paragraph that described that container suite.
How did you test this code?
Test rationale: one parameterized case next to the existing engagement-capture tests. SES accepts the send through the
sesV2Clientspy, then either the saved copy or the engagement setting read fails.email_sentwithoutemail_failed,success: trueon the VM stack, the run-log warning, and exactly one SES call.Received: "Asset row fault", the other with a thrown error.email.service.test.ts, all green.Earlier evidence (stacked version on top of #112859, container-based)
Release status
Docs update
None. The earlier version documented this in the local-development guide's container section, which no longer exists.
🤖 Agent context
Autonomy: Human-driven (agent-assisted)
Agent: T3 Code / Claude Code, Claude Opus 5.5 (rebuild on master). The earlier stacked version: T3 Code / Codex, GPT-6.1 Sol.
tdd,writing-tests,pr,writing-pr-descriptions,writing-voice,merge-risk.sesV2Clientspy.