Repository navigation
chore(cron): cover delivery outcomes - #118993
Conversation
|
@clawsweeper review |
1c36f7b to
3fedc93
Compare
|
@clawsweeper review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Codex review: needs maintainer review before merge. Reviewed August 3, 2026, 7:14 PM ET / 23:14 UTC. ClawSweeper reviewWhat this changesAdds a QA scenario and end-to-end tests for cron webhook delivery, failure destinations, skipped-run alerts, and delivery previews. Merge readinessKeep open for protected maintainer review. Current main lacks the four registered QA coverage IDs, and this focused test-only PR adds a valid combined production-boundary path with no blocking correctness finding. Priority: P3 Review scores
Verification
How this fits togetherCron jobs execute commands or agent turns, then record outcomes and route delivery or failure notifications. The added QA scenario drives those paths through loopback webhooks and verifies durable run state and delivery previews. flowchart LR
A[Cron job] --> B[Command or agent run]
B --> C[Persisted run outcome]
C --> D[Webhook and alert routing]
D --> E[Loopback receiver]
C --> F[Delivery preview]
G[QA scenario catalog] --> H[End-to-end test]
Decision needed
Why: The PR is member-authored and carries the protected maintainer label, so the final landing decision requires explicit maintainer handling despite the clean code review. Before merge
Agent review detailsSecurityNone. PR surfaceTests +376, Other +34. Total +410 across 2 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Retain this single primary QA owner for the four automation coverage IDs and land it after a refreshed exact-head review confirms the current maintainer requirements. Do we have a high-confidence way to reproduce the issue? Not applicable: this PR adds regression coverage rather than repairing a reported user-facing failure. The reviewed source establishes the intended test paths, but this read-only review did not execute them. Is this the best way to solve the issue? Yes. It keeps runtime code unchanged while exercising CronService, production webhook senders, durable task history, and the QA catalog; existing focused tests do not own these four primary coverage IDs. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against a78f2c40bf6f. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Rank-up move disposition for reviewed head
Maintainer decision: retain the single primary QA owner for the four automation coverage IDs and land the frozen exact head without rebasing unrelated |
|
Merged via squash.
|
* origin/main: (1301 commits) fix(sms): align MMS retries with network timeouts (openclaw#119002) test(qa): cover composed tool result consumption (openclaw#118991) test(cron): cover delivery outcomes (openclaw#118993) test(qa): cover guarded media fetch boundaries (openclaw#118857) test(qa): cover music generation controls (openclaw#118901) test(qa): cover core vision routing (openclaw#118861) test(qa): cover Gateway usage and memory APIs (openclaw#118995) fix(docker): use authenticated gateway health command (openclaw#118996) test(plugins): align tool fixtures with owner policy (openclaw#118959) test(qa): cover managed gateway service lifecycle (openclaw#118855) test(qa): cover audio proxy and limit handling (openclaw#118863) test(qa): cover PDF extraction dispatch (openclaw#118860) test(ui): add service-worker update primary QA proof (openclaw#118805) test(qa): cover CLI onboarding and plugin install sources (openclaw#118882) test(qa): cover remote logging boundaries (openclaw#118951) fix(sms): retry transient MMS failures before durable adoption (openclaw#118994) test(qa): cover video generation invocation (openclaw#118864) test(qa): cover media reference intake (openclaw#118858) test(qa): cover image generation task lifecycle (openclaw#118915) feat(sms): track Twilio delivery status (openclaw#118665) ...
What Problem This Solves
Four cron automation coverage IDs had no executed primary QA scenario, leaving delivery, failure routing, skipped-run alerts, and delivery previews without durable real-boundary regression proof.
Why This Change Was Made
This adds one registered QA scenario backed by a focused end-to-end Vitest file. It drives the production SSRF-guarded webhook senders against a real loopback HTTP server and verifies persisted job/task-run outcomes and delivery previews. It adds no production code and uses no channel driver or mocked delivery helper for primary proof.
User Impact
No runtime behavior changes. Maintainers gain exact regression coverage for successful webhook delivery, failure destinations, skipped-run alerts, and delivery previews.
Evidence
node scripts/run-vitest.mjs src/cron/cron-delivery-outcomes.e2e.test.ts: 4 tests passed.qaRuntimebuild passed through the no-pnpm path.cron-delivery-outcomesQA suite passed 1/1.automation.webhook-deliveryautomation.failure-destinationsautomation.skipped-run-alertsautomation.delivery-previewsoxfmt, max-lines ratchet,git diff --check, lockfile, scope, and privacy checks passed.node scripts/check-changed.mjs -- ...reached Crabbox routing and stopped because no Testbox provider was available. Per repository policy for trusted source, focused local proof and hosted exact-head CI are the fallback.