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

contiv / vpp / 1136 / 1
66%
master: 66%

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

01 Mar 2018 08:58PM UTC coverage: 76.175% (+0.8%) from 75.396%
GO_BUILD_TAGS=mockvpp

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

Source Files on job 1136.1 (GO_BUILD_TAGS=mockvpp)
  • Tree
  • List 0
  • Changed 9
  • Source Changed 2
  • Coverage Changed 9
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 1
  • Travis Job 1136.1
  • 16aec87b on github
  • Prev Job for GO_BUILD_TAGS=mockvpp on master (#1130.1)
  • Next Job for GO_BUILD_TAGS=mockvpp on master (#1137.1)
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