beads/internal/github
Harry 00b78da749 Add retry logic to Jira client and jitter to all tracker HTTP clients
- Add retry with exponential backoff to Jira doRequest (was single-attempt)
- Add MaxRetries, RetryDelay, MaxResponseSize constants to jira/types.go
- Add response body size limit via io.LimitReader to Jira client
- Handle permanent errors (400/401/403/404) without retry
- Parse Retry-After header for rate-limited responses
- Add jitter (0-50% of delay) to backoff in all 5 tracker clients:
  GitHub, GitLab, Linear, ADO, and Jira
- Guard rand.Int64N against zero delay to prevent panics
- Add retry tests: 429, 503, no-retry-on-400, max-retries-exceeded

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-03-30 09:11:19 -07:00
..
client.go Add retry logic to Jira client and jitter to all tracker HTTP clients 2026-03-30 09:11:19 -07:00
fieldmapper.go feat: add GitHub Issues integration (tracker plugin) (GH#2373) 2026-03-10 15:53:31 -07:00
mapping.go feat: add GitHub Issues integration (tracker plugin) (GH#2373) 2026-03-10 15:53:31 -07:00
mapping_test.go feat: add GitHub Issues integration (tracker plugin) (GH#2373) 2026-03-10 15:53:31 -07:00
tracker.go feat: add GitHub Issues integration (tracker plugin) (GH#2373) 2026-03-10 15:53:31 -07:00
tracker_test.go feat: add GitHub Issues integration (tracker plugin) (GH#2373) 2026-03-10 15:53:31 -07:00
types.go feat: add GitHub Issues integration (tracker plugin) (GH#2373) 2026-03-10 15:53:31 -07:00
types_test.go feat: add GitHub Issues integration (tracker plugin) (GH#2373) 2026-03-10 15:53:31 -07:00