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

bolshakov / stoplight / 14466914142
100%

Build:
DEFAULT BRANCH: master
Ran 15 Apr 2025 10:13AM UTC
Jobs 3
Files 26
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

15 Apr 2025 10:13AM UTC coverage: 100.0%. Remained the same
14466914142

push

github

web-flow
Performance Optimization: Data Store and Light Operations (#299)

This PR implements several performance optimizations throughout the Stoplight library, with a focus on the data store implementation and light operations.

## Changes

### Redis Data Store
- Implemented Lua scripting for `record_failure` operations, reducing Redis round-trips
- Pre-load Lua scripts during initialization for faster subsequent executions
- Replaced `multi` with `pipelined` where appropriate for improved throughput

### Light Operations
- Optimized `state` method to directly query data store for state without querien for failures 
- Added `cool_off_period_exceeded?` helper method to Failure class for cleaner code
- Simplified Stoplight initialization in the `safely` method

### Memory Data Store
- Split synchronize blocks for better concurrency in `get_all`

#285

25 of 25 new or added lines in 4 files covered. (100.0%)

521 of 521 relevant lines covered (100.0%)

248.64 hits per line

Jobs
ID Job ID Ran Files Coverage
1 ruby-3.4 - 14466914142.1 15 Apr 2025 10:13AM UTC 26
100.0
GitHub Action Run
2 ruby-3.3 - 14466914142.2 15 Apr 2025 10:13AM UTC 26
100.0
GitHub Action Run
3 ruby-3.2 - 14466914142.3 15 Apr 2025 10:13AM UTC 26
100.0
GitHub Action Run
Source Files on build 14466914142
  • Tree
  • List 26
  • Changed 4
  • Source Changed 0
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 7399a138 on github
  • Prev Build on master (#14464967390)
  • Next Build on master (#14495460167)
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

© 2025 Coveralls, Inc