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

uber / ringpop-go / 1564
95%

Build:
DEFAULT BRANCH: dev
Ran 24 Aug 2016 01:43PM UTC
Jobs 4
Files 42
Run time 4min
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
1564

push

travis-ci

web-flow
Feature: Labels (#167)

* Refractor member selection methods to use a predicate.

This will be useful after labels are landed where a user can add a predicate for labels to be set on a node before it will be taken into account when counting them or looking up their addresses.

* Extend the SWIM protocol with gossiping of user defined labels of a node.

* Refactor swim/mode to only expose reachable members via predicates

* remove swim internal predicate from ringpop.go

* Fixing broken tests

* update mocks

* Do not export the ReachableMember predicate as it is a swim internal.

* Remove unused error

* remove outdated comment

* Use public interface of Node over the more internal function in the memberlist

* specify that predicates need to match for (Get|Count)ReachableMembers.

* return error from Set on Labels when setting the label fails.

* reuse the bytes.Buffer for label checksum calculation.

* Add explanation of predicates to memberlist#GetMembers.

* Only reincarnate when labels are updated.

* Initialize maps for labels with initial size when known

* only reincarnate if we have changed the labels by removing 1

* add extra explanation about predicates to memberlist#CountMembers

* reorder functions in NodeInterface

* Choose highest value of the checksum hash for labels to follow the same paradigm of the rest of the function.

* Rename TestMember to MemberMatchesPredicates

* rename reachableMember to memberIsReachable

* Rename LabeledMember to MemberWithLabelAndValue

* Add READEME.md with cram tests for the role-labels examples

* regenerate code with @generated comment on the first line.

* change labels checksum calculation and document the use of xor for future reference.

* add sleep to prevent flappy test and document that a change to the labels causes the membership to reconverge

* Make changes to local node with the membelist.members lock.

* add error to SetLocalLabels... (continued)

302 of 302 new or added lines in 7 files covered. (100.0%)

4401 of 4630 relevant lines covered (95.05%)

4.2 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
3
100.0
swim/memberlist.go

Uncovered Existing Lines

Lines Coverage ∆ File
3
100.0
swim/node.go
Jobs
ID Job ID Ran Files Coverage
1 1564.1 (RUN="make lint") 24 Aug 2016 01:43PM UTC 0
95.05
Travis Job 1564.1
2 1564.2 (RUN="make test-unit") 24 Aug 2016 01:44PM UTC 0
95.01
Travis Job 1564.2
3 1564.3 (RUN="make test-integration") 24 Aug 2016 01:47PM UTC 0
94.97
Travis Job 1564.3
5 1564.5 (RUN="make test-examples") 24 Aug 2016 01:47PM UTC 0
95.01
Travis Job 1564.5
Source Files on build 1564
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #1564
  • d0de5fe1 on github
  • Prev Build on dev (#1552)
  • Next Build on dev (#1575)
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