Repository navigation
chore: keep cron cooldown QA incidents distinct - #148151
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. Reviewed September 14, 2026, 7:17 AM ET / 11:17 UTC (Revision 3). ClawSweeper reviewWhat this changesUpdates the cron delivery test to simulate a different failure after cooldown expires, allowing it to verify a second webhook alert. Merge readiness✅ Ready for maintainer review The fixture correction remains useful on current main and matches the documented incident-deduplication contract. No actionable patch defect was found; this maintainer-authored PR should remain open for normal merge handling. Priority: P3 Review scores
Verification
How this fits togetherOpenClaw’s scheduler turns automation outcomes into failure notifications, applying incident deduplication and cooldown before Gateway transport. This QA scenario injects delivery failures and observes webhook requests and persisted outcomes. flowchart LR
A[Simulated delivery failure] --> B[Cron scheduler]
B --> C{New incident and cooldown elapsed}
C -->|Yes| D[Gateway webhook sender]
C -->|No| E[Suppress repeated alert]
D --> F[Local HTTP receiver]
B --> G[Persisted run outcomes]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceTests +7. Total +7 across 1 file. View PR surface stats
Review metricsNone. Technical reviewBest possible solution: Keep scheduler deduplication intact and use distinct failure causes when QA expects distinct transported incidents. Do we have a high-confidence way to reproduce the issue? Yes, from source: current main repeats the same delivery error but expects a second webhook, while the scheduler rejects identical incident signatures even after cooldown. The test was not executed in this read-only review. Is this the best way to solve the issue? Yes. Changing the simulated cause preserves production policy and the existing transport assertions; sibling persistence tests cover repeated-incident suppression. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 6b3e342ddb1e. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (2 earlier review cycles)
|
7cae3a0 to
d45c0ea
Compare
|
@clawsweeper review Exact-head proof for d45c0ea7cc3: src/cron/cron-delivery-outcomes.e2e.test.ts passes 6/6 after rebasing onto current main. Please refresh the review against this head. |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
d45c0ea to
5ec0dc8
Compare
|
Exact-head proof after rebase onto current main: cron delivery outcomes passed 6/6 at 5ec0dc8. @clawsweeper review |
* commit '3c08384584f57787a26da9998488233fc15ccf7e': (122 commits) fix(agents): keep tool result summaries when middleware details exceed shape limits (#147805) test: make full-suite fixtures portable across runtimes (#148247) refactor(qa): share unknown confidence results (#148200) chore(android): remove unused test dependencies and duplicate Wear settings (#148231) test: reuse compiled preflight in startup fixtures (#148330) test(wizard): route recovery integration through database forks (#148337) refactor(plugins): simplify provider auth patch recursion (#147933) fix(cli): drain failed web capability output (#148234) refactor(android): remove unused production helpers (#148233) fix(plugins): scope feed integrity to hosted ClawHub (#148220) test(qa): compare Telegram entities semantically (#148219) test(qa): recognize native Slack exec progress rows (#148217) test(cron): distinguish repeated delivery incidents (#148151) test(qa): preserve restart command ownership (#148218) test(qa): isolate bundled skill CLI gateway state (#148150) test(qa): align process lifecycle contracts (#148149) improve(media): reduce metadata fetched during orphan cleanup (#148244) fix(matrix): retain sync state runtime for deferred persistence (#148152) test: deduplicate gateway watch exit fixtures (#148237) refactor(cli): derive daemon status contract from gatherer (#148108) ...
What Problem This Solves
Resolves a maturity QA failure where the cron delivery test expected two alerts for the same incident even though cooldown deduplication correctly suppressed the duplicate.
Why This Change Was Made
The second forced run now returns a materially different delivery incident, so the test continues to verify threshold and cooldown behavior while also proving a new incident is transported.
User Impact
Cron delivery outcome validation no longer reports a false failure when identical alert incidents are deduplicated.
Evidence
node scripts/run-vitest.mjs src/cron/cron-delivery-outcomes.e2e.test.ts: 6/6 passed.pnpm check:changed: passed.