Skip to content

fix(cron): classify network retry errors#85344

Merged
steipete merged 1 commit into
mainfrom
fix/cron-network-retry-codes
May 22, 2026
Merged

fix(cron): classify network retry errors#85344
steipete merged 1 commit into
mainfrom
fix/cron-network-retry-codes

Conversation

@steipete

Copy link
Copy Markdown
Contributor

Summary

  • Extract cron one-shot retry classification into resolveCronExecutionRetryHint.
  • Treat common network error codes (EAI_AGAIN, EHOSTUNREACH, EHOSTDOWN, ENETRESET, ENETUNREACH, EPIPE) as network when cron.retry.retryOn is restricted to network.
  • Add focused regression coverage and changelog entry.

Verification

  • pnpm format:check CHANGELOG.md src/cron/retry-hint.ts src/cron/retry-hint.test.ts src/cron/service/timer.ts
  • git diff --check
  • pnpm check:changed via Testbox tbx_01ks7rp7bzvzc9gx16k5q1nt9e
  • node scripts/run-vitest.mjs src/cron/retry-hint.test.ts via Testbox tbx_01ks7rtr8a6a50fvpnv3b9djsh (3 passed)
  • /Users/steipete/Projects/agent-scripts/skills/autoreview/scripts/autoreview --mode local (clean)

Behavior addressed: one-shot cron jobs with cron.retry.retryOn: ["network"] could skip retrying common network-code failures such as EAI_AGAIN because those codes were classified outside the small cron network regex.
Real environment tested: Blacksmith Testbox through Crabbox, provider blacksmith-testbox.
Exact steps or command run after this patch: node scripts/run-vitest.mjs src/cron/retry-hint.test.ts and pnpm check:changed.
Evidence after fix: focused Testbox run tbx_01ks7rtr8a6a50fvpnv3b9djsh passed 3 retry-hint tests; changed gate tbx_01ks7rp7bzvzc9gx16k5q1nt9e exited 0.
Observed result after fix: network-only retry policy now marks those network-code strings retryable with category network.
What was not tested: no live provider outage was induced; this is deterministic cron retry classification coverage plus CI-parity changed checks.

@openclaw-barnacle openclaw-barnacle Bot added size: S maintainer Maintainer-authored PR labels May 22, 2026
@clawsweeper

clawsweeper Bot commented May 22, 2026

Copy link
Copy Markdown
Contributor

ClawSweeper status: review started.

I am starting a fresh review of this pull request: fix(cron): classify network retry errors This is item 1/1 in the current shard. Shard 0/1.

This placeholder means the worker is alive and reading the current context. I will edit this same comment with the actual review when the claws are done clicking.

Crustacean status: shell secured, claws on keyboard, evidence pebbles being sorted.

@steipete steipete merged commit ebfb834 into main May 22, 2026
115 of 117 checks passed
@steipete steipete deleted the fix/cron-network-retry-codes branch May 22, 2026 12:07
@steipete

Copy link
Copy Markdown
Contributor Author

Landed in ebfb834.

Proof:

  • pnpm format:check CHANGELOG.md src/cron/retry-hint.ts src/cron/retry-hint.test.ts src/cron/service/timer.ts
  • git diff --check
  • pnpm check:changed via Testbox tbx_01ks7rp7bzvzc9gx16k5q1nt9e (exit 0)
  • node scripts/run-vitest.mjs src/cron/retry-hint.test.ts via Testbox tbx_01ks7rtr8a6a50fvpnv3b9djsh (3 passed)
  • autoreview: /Users/steipete/Projects/agent-scripts/skills/autoreview/scripts/autoreview --mode local clean, no accepted/actionable findings
  • GitHub PR checks were clean/mergeable before merge; only duplicate cancelled automation and neutral CodeQL summary were ignored.

SebTardif pushed a commit to SebTardif/openclaw that referenced this pull request May 24, 2026
SebTardif pushed a commit to SebTardif/openclaw that referenced this pull request May 24, 2026
SebTardif pushed a commit to SebTardif/openclaw that referenced this pull request May 24, 2026
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request May 24, 2026
galiniliev pushed a commit to galiniliev/openclaw that referenced this pull request May 25, 2026
SebTardif pushed a commit to SebTardif/openclaw that referenced this pull request May 26, 2026
SebTardif pushed a commit to SebTardif/openclaw that referenced this pull request May 26, 2026
SebTardif pushed a commit to SebTardif/openclaw that referenced this pull request May 26, 2026
jameslcowan pushed a commit to jameslcowan/openclaw that referenced this pull request Jun 2, 2026
SYU8384 pushed a commit to SYU8384/openclaw that referenced this pull request Jun 3, 2026
sablehead pushed a commit to sablehead/openclaw that referenced this pull request Jun 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintainer Maintainer-authored PR size: S

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant