• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

safe-global / safe-client-gateway / 23799998584
90%

Build:
DEFAULT BRANCH: main
Ran 31 Mar 2026 01:35PM UTC
Jobs 2
Files 1112
Run time 5min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

31 Mar 2026 01:31PM UTC coverage: 89.632% (-0.001%) from 89.633%
23799998584

push

github

web-flow
fix(circuit-breaker): fix request tracking in HALF_OPEN state (#2991)

## Summary

Fix two concurrency-related bugs in the circuit breaker where in-flight requests cause incorrect behavior:
1. In HALF_OPEN state, completed test requests don't free their slot, blocking new requests even after the downstream service has recovered.
2. In OPEN state, late-arriving failures from in-flight requests inflate the failure count past the threshold (e.g. `25/20`).

## Changes

- **`recordSuccess`**: Decrement `halfOpenRequestCounts` when a request completes successfully in HALF_OPEN state, freeing the slot for new test requests.
- **`recordFailure`**: Early return when the circuit is already OPEN, preventing in-flight requests from recording redundant failures.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

3219 of 4032 branches covered (79.84%)

Branch coverage included in aggregate %.

3 of 3 new or added lines in 1 file covered. (100.0%)

3 existing lines in 3 files now uncovered.

15160 of 16473 relevant lines covered (92.03%)

573.85 hits per line

Coverage Regressions

Lines Coverage ∆ File
1
83.33
-16.67% src/modules/backbone/domain/entities/__tests__/backbone.builder.ts
1
93.55
-3.23% src/modules/notifications/routes/v1/entities/__tests__/create-registration-v2.dto.builder.ts
1
93.33
-2.67% src/modules/notifications/routes/v1/notifications.controller.ts
Jobs
ID Job ID Ran Files Coverage
1 run-integration-tests - 23799998584.1 31 Mar 2026 01:36PM UTC 2141
78.87
GitHub Action Run
2 run-unit-tests - 23799998584.2 31 Mar 2026 01:35PM UTC 1950
57.2
GitHub Action Run
Source Files on build 23799998584
  • Tree
  • List 1112
  • Changed 309
  • Source Changed 1
  • Coverage Changed 309
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #23799998584
  • 9d62d3b4 on github
  • Prev Build on main (#23792724295)
  • Next Build on main (#23809601090)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc