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

hyperglass-community / hyperglass / 45276045496
89%

Build:
DEFAULT BRANCH: main
Ran 23 Nov 2026 10:05PM UTC
Jobs 2
Files 462
Run time 1min
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

23 Nov 2026 10:04PM UTC coverage: 87.706% (+0.2%) from 87.551%
45276045496

push

github

web-flow
fix(state): give the shared Redis pool connect and socket timeouts (#596)

* fix(state): give the shared Redis connection pool socket timeouts

While Redis was unreachable, every state read through the shared pool waited
as long as the operating system waits on a TCP connection before the request
got its 503, holding a thread-pool thread the whole time.

The pool now sets socket_connect_timeout and socket_timeout from the new
HYPERGLASS_REDIS_CONNECT_TIMEOUT (default 3) and HYPERGLASS_REDIS_SOCKET_TIMEOUT
(default 5) settings. A timeout raises redis-py's TimeoutError, which the API
already answers with a 503.

* fix(state): bound the Redis timeout settings and fail startup once on an unreachable Redis

Infinite or huge timeouts passed validation and then made socket.settimeout
raise OverflowError, which is not a Redis error. Both settings are now finite,
more than 0 and at most 300.

When run() failed because Redis was unreachable, its failure handler cleared
state and unregistered plugins, both of which wait on Redis again and replace
the original error. It now re-raises a Redis connection or timeout error at once.

823 of 1104 branches covered (74.55%)

Branch coverage included in aggregate %.

216 of 222 new or added lines in 5 files covered. (97.3%)

19823 of 22436 relevant lines covered (88.35%)

24.91 hits per line

Uncovered Changes

Lines Coverage ∆ File
5
96.0
hyperglass/exceptions/tests/test_redis_timeout_response.py
1
97.67
hyperglass/state/tests/test_run_redis_unreachable.py
Jobs
ID Job ID Ran Files Coverage
1 backend - 45276045496.1 23 Nov 2026 10:09PM UTC 329
88.98
GitHub Action Run
2 frontend - 45276045496.2 23 Nov 2026 10:05PM UTC 133
80.72
GitHub Action Run
Source Files on build 45276045496
  • Tree
  • List 462
  • Changed 3
  • Source Changed 3
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #45276045496
  • 163b5ff9 on github
  • Prev Build on main (#45175932999)
  • Next Build on main (#45276087374)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc