No retry/backoff for transient network failures (violates MVP contract) #5
Labels
No labels
blocked:commit-ready-failed
blocked:gate-fetch
blocked:gate-lint
blocked:gate-plan
blocked:gate-research
blocked:needs-decision
blocked:needs-human
blocked:no-changes
blocked:verify-failed
bug
deferred
feature-request
in-progress
needs-decompose
needs-triage
quickfix
security/medium
triage-approved
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Mark/yeedi_awmbuild#5
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Severity: Medium
File:
custom_components/yeedi/api.py(no retry logic present)Issue: The MVP contract (
mvp_contract.yamlquality_bars.reliability) explicitly requires:However, the
_requestmethod inapi.pyhas no retry logic. A single transient failure (DNS hiccup, temporary 5xx, connection reset) immediately raisesYeediApiErrorwhich becomesUpdateFailedin the coordinator, marking the update as failed.Fix: Add a retry wrapper with exponential backoff (e.g., using
aiohttp_retryor a simple retry loop for 503/502/connection errors):