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

optimizely / agent / 19177705593
87%

Build:
DEFAULT BRANCH: master
Ran 07 Nov 2025 06:35PM UTC
Jobs 1
Files 52
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

07 Nov 2025 06:32PM UTC coverage: 86.321% (+0.1%) from 86.21%
19177705593

push

github

web-flow
[FSSDK-11990] Add Redis cache support for CMAB following ODP cache pattern (#447)

* Add Redis cache support for CMAB following ODP cache pattern

Implement Redis caching for CMAB (Contextual Multi-Armed Bandit)
decisions using the same plugin-based architecture as ODP cache.

Changes:
- Add cmabcache plugin with registry and service implementations
- Implement in-memory LRU cache (size: 10000, TTL: 30m)
- Implement Redis cache with JSON serialization
- Update CMABCacheConfig from struct to service-based map config
- Add comprehensive unit and integration tests (all passing)
- Update config.yaml with new service-based CMAB cache format
- Add cmabcache plugin import to main.go
- Fix cache.go to initialize CMAB cache via plugin system
- Add tests to improve CMAB config parsing coverage

Test coverage:
- In-memory cache tests: 8/8 passing
- Redis cache tests: 8/8 passing
- Integration tests: 8/8 passing
- Config parsing coverage improved for lines 149-167
- All package tests: passing

* Apply linter formatting fixes

* move redis cmab config into existing config

* expose cmab prediction endpoint in config

145 of 164 new or added lines in 6 files covered. (88.41%)

1 existing line in 1 file now uncovered.

2947 of 3414 relevant lines covered (86.32%)

3135.77 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
61.38
0.4% cmd/optimizely/main.go
2
92.86
plugins/cmabcache/services/in_memory_cache.go
4
0.0
plugins/cmabcache/registry.go
12
82.61
plugins/cmabcache/services/redis_cache.go

Uncovered Existing Lines

Lines Coverage ∆ File
1
86.36
0.6% pkg/optimizely/cache.go
Jobs
ID Job ID Ran Files Coverage
1 19177705593.1 07 Nov 2025 06:35PM UTC 52
86.32
GitHub Action Run
Source Files on build 19177705593
  • Tree
  • List 52
  • Changed 3
  • Source Changed 0
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 6632f73a on github
  • Prev Build on master (#18598184760)
  • Next Build on master (#19549408620)
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