Repository navigation
test(feishu): consolidate backoff coverage at its owner - #134289
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed August 31, 2026, 1:01 PM ET / 17:01 UTC. ClawSweeper reviewWhat this changesThe PR moves Feishu backoff-helper tests into Merge readinessThe test-only cleanup appears correct and has no blocking review finding. It remains open for normal maintainer handling because it is maintainer-labeled. Priority: P3 Review scores
Verification
How this fits togetherFeishu reply dispatch starts and stops typing reactions through the typing owner. That owner classifies rate-limit responses, rethrows backoff failures, and lets the keepalive guard stop retries. flowchart LR
A[Feishu reply] --> B[Reply dispatcher]
B --> C[Typing reaction owner]
C --> D[Backoff classifier]
D --> E[Backoff error rethrow]
E --> F[Keepalive guard]
Decision needed
Why: Automated cleanup should not close a maintainer-labeled PR, although source review found no defect requiring a repair lane. Before merge
Agent review detailsSecurityNone. PR surfaceTests -59. Total -59 across 2 files. View PR surface stats
Review metrics
Technical reviewBest possible solution: Keep the classifier coverage beside Do we have a high-confidence way to reproduce the issue? Not applicable — this is a test-only cleanup, not a report of a failing user flow; the removed test never invoked the typing owner. Is this the best way to solve the issue? Yes — locating the helper contract beside AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 43686bcb0a45. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Maintainer review completed for this test-only cleanup. Read the latest ClawSweeper review and its remaining action: ordinary maintainer handling after exact-head checks. No actionable findings or additional rank-up changes remain. The 161-case classifier/dispatcher proof and full changed-file checks pass, and required CI is green for 2fac7f2. Proceeding through the native prepare/merge workflow under the requested test-maintenance batch. Direct typing create/delete rethrow coverage remains a named follow-up; the removed simulated rethrow test did not cover that boundary. |
|
Merged through the native squash workflow. The response observation was interrupted by concurrent main movement; read-only reconciliation confirmed prepared head 2fac7f2 landed as b99512eefe5a48b15624ef2f03270844523d09da. No second merge request was sent. Exact-head CI and the 161-case focused/sibling proof passed. |
What Problem This Solves
The file named
typing.test.tsexercises only the extracted backoff classifier. It also repeats a catch/rethrow implementation inside the test, which cannot detect a regression in the real typing owner.Why This Change Was Made
Rename the suite to
typing-backoff.test.ts, retain every classifier and response input in explicit tables, and check error identity and metadata together for both backoff codes. Remove the copied catch/rethrow demonstration and consolidate its duplicate class checks.User Impact
Coverage now clearly belongs to the backoff owner. All distinct classifier inputs, response codes, rejection inputs and error metadata assertions remain. Production +0/-0; tests +90/-149. This is a coverage cleanup, with no elapsed-time speedup claim.
Evidence
Existing follow-up: add direct create/delete owner tests for backoff rethrow in
typing.ts. The removed simulation did not cover that boundary, and this PR does not claim otherwise.