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

prometheus / client_ruby / 530
100%
master: 100%

Build:
Build:
LAST BUILD BRANCH: fix_with_labels
DEFAULT BRANCH: master
Ran 28 Oct 2019 12:04PM UTC
Jobs 4
Files 96
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
530

push

travis-ci

dmagliola
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.

4485 of 4485 relevant lines covered (100.0%)

44.64 hits per line

Jobs
ID Job ID Ran Files Coverage
1 530.1 (2.3.8) 28 Oct 2019 12:04PM UTC 0
100.0
Travis Job 530.1
2 530.2 (2.4.5) 28 Oct 2019 12:04PM UTC 0
100.0
Travis Job 530.2
3 530.3 (2.5.3) 28 Oct 2019 12:04PM UTC 0
100.0
Travis Job 530.3
5 530.5 (jruby-9.1.9.0) 28 Oct 2019 12:07PM UTC 0
0.0
Travis Job 530.5
Source Files on build 530
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #530
  • 75cde1f5 on github
  • Next Build on fix_label_order_bug (#532)
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