Commit Graph
3 Commits
Author SHA1 Message Date
lukaszraczylo b6ddf3d7c8 refactor(shared-state): drop the unused local arm of sharedBreaker
Every caller keeps its own local breaker and reads only sharedOpen, so the
local arm in sharedBreaker (isOpen, recordFailureLocal, breakerLocal) was
reached only by tests.
A per-id failure count since the last success replaces it, because
recordSuccess still needs it to decide whether a fleet reset write is due.
Tests now read sharedOpen. A failover test pins that the caller's local
breaker still opens while the store is down.
2026-11-26 07:48:05 +00:00
lukaszraczylo 00bb36d29d test(yaegi): probe backoff reset, not-applied flag and log limit
The probe now runs the breaker backoff reset, the not-applied flag
through redisStore against a dead address, and the rate-limited loop
log under the interpreter. The flag probe found the fmt.Errorf wrap
problem.
2026-11-26 04:20:12 +00:00
lukaszraczylo 4c25cfc546 test(yaegi): exercise shared breaker and in-flight under yaegi
The probe trips a shared breaker through one interpreted instance over an in-memory store. It checks that a second instance sees the breaker open after one refresh and sees it closed after a success. It also sums in-flight counts across two instances. A mismatch fails make yaegi-check.
2026-11-26 03:43:01 +00:00