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

predis / predis / 22723904332
93%

Build:
DEFAULT BRANCH: main
Ran 05 Mar 2026 03:05PM UTC
Jobs 1
Files 621
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

05 Mar 2026 03:01PM UTC coverage: 92.905% (+0.01%) from 92.892%
22723904332

push

github

web-flow
Fix sentinel discovery methods not catching StreamInitException (#1650)

* Fix sentinel discovery methods not catching StreamInitException

The getMaster(), getSlaves(), and updateSentinels() methods only catch
ConnectionException when connecting to Sentinel nodes. StreamInitException
(thrown by stream_socket_client() failures) extends PredisException directly,
not ConnectionException, so it propagates uncaught — preventing fallback to
the next Sentinel node.

This causes complete application failure when any single Sentinel is
unreachable, even if other Sentinels are healthy.

Add StreamInitException to the catch clause using a union type in all three
methods. This is more precise than catching PredisException, which would
also swallow ServerException (e.g. "ERR No such master with that name")
and mask configuration errors.

See also #1577 which applied a similar fix to retryCommandOnFailure().

* Fix coding standards and add changelog entry

- Remove spaces around | in union catch (php-cs-fixer)
- Add CHANGELOG.md entry for #1650

* Codestlye fixes

---------

Co-authored-by: Wolfgang Kerschbaumer <wolfgang.kerschbaumer@bergfex.at>
Co-authored-by: vladvildanov <vladyslav.vildanov@redis.com>

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

20 existing lines in 1 file now uncovered.

8328 of 8964 relevant lines covered (92.9%)

113.97 hits per line

Uncovered Existing Lines

Lines Coverage ∆ File
20
91.76
0.06% src/Connection/Replication/SentinelReplication.php
Jobs
ID Job ID Ran Files Coverage
1 22723904332.1 05 Mar 2026 03:05PM UTC 621
92.9
GitHub Action Run
Source Files on build 22723904332
  • Tree
  • List 621
  • Changed 2
  • Source Changed 1
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #22723904332
  • d0f6671a on github
  • Prev Build on main (#22322290884)
  • Next Build on main (#22724044665)
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