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

prometheus / client_ruby / 531
100%
master: 100%

Build:
Build:
LAST BUILD BRANCH: fix_with_labels
DEFAULT BRANCH: master
Ran 28 Oct 2019 12:08PM UTC
Jobs 4
Files 64
Run time 3min
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
531

Pull #164

travis-ci

web-flow
Fix bug where different label orders lead to different results

In the DirectFileStore, in order to store the labels hash on disk, we
turn it into a "querystring". The way this is done, we'll end up with
different strings if the same hash is passed in with its keys in
different order.

Since this string is used to index into the file where we store the data,
this will lead to two different values being stored for the same hash.
This is fine in cases where the aggregation is :SUM, because they end up
getting summed when the Client is summarizing. But in :ALL aggregation,
for example, you will end up with one value or the other, randomly.

The test in this commit reproduces this problem.

This way of serializing the labels is a bit slower (see PR for details),
but it's not a huge impact in the big scheme of things, and it leads to
the correct result.
Pull Request #164: Fix bug where different label orders lead to different results

17 of 17 new or added lines in 2 files covered. (100.0%)

2991 of 2991 relevant lines covered (100.0%)

44.63 hits per line

Jobs
ID Job ID Ran Files Coverage
1 531.1 (2.3.8) 28 Oct 2019 12:08PM UTC 0
100.0
Travis Job 531.1
2 531.2 (2.4.5) 28 Oct 2019 12:08PM UTC 0
100.0
Travis Job 531.2
3 531.3 (2.5.3) 28 Oct 2019 12:08PM UTC 0
100.0
Travis Job 531.3
5 531.5 (jruby-9.1.9.0) 28 Oct 2019 12:11PM UTC 0
0.0
Travis Job 531.5
Source Files on build 531
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #531
  • Pull Request #164
  • PR Base - master (#529)
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