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

contiv / vpp / 1136
66%

Build:
DEFAULT BRANCH: master
Ran 01 Mar 2018 09:04PM UTC
Jobs 1
Files 31
Run time 2s
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

pending completion
1136

push

travis-ci

tiewei
Add support for Prometheus metrics to KSR (#618)

* Fix race conditions in KSR Reflector and mock key-value data store

After running KSR unit tests with the -race flag, two race conditions
were detected:
- Access to reflector registry was not protected by a mutex
- Access to the mock data store map was not protected by a mutex

This commit fixes both race conditions.

* Refactor Reflector Registry into a separate object

This refactor is needed to fix race conditions by putting
locks in appropriate places. As part of the refactor, the
initialization sequence was simplified by moving common
Reflector initialization into a common routine.

* Add export of KSR metrics into Prometheus

This patch adds support for exporting of collected KSR
metrics (adds, deletes, updates, ...) into Prometheus.
Metrics are collected for each reflector (pods, endpoints,
namespaces, services, polcies, nodes).

* Fix formatting and code analysis errors

* Fix compile errors in ksr_plugin_impl.go

* Add unit tests for the KSR Stats Collector

* Clean up the Stats Collector unit tests

* Add unit tests for the Reflector Registry

* Fix formatting errors in reflector_registry_test.go

4553 of 5977 relevant lines covered (76.18%)

38.37 hits per line

Jobs
ID Job ID Ran Files Coverage
1 1136.1 (GO_BUILD_TAGS=mockvpp) 01 Mar 2018 09:04PM UTC 0
76.18
Travis Job 1136.1
Source Files on build 1136
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #1136
  • 16aec87b on github
  • Prev Build on master (#1130)
  • Next Build on master (#1137)
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