Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test(core): prevent rotation on slow CPUs
The Debian Sparc64 builds fail because the expected values were not within their range: ``` [ RUN ] SummaryTest.quantile_values /home/gjasny/prometheus-cpp/core/tests/summary_test.cc:68: Failure The difference between s.quantile.at(0).value and 0.5 * SAMPLES is 317823, which exceeds 0.05 * SAMPLES, where s.quantile.at(0).value evaluates to 817823, 0.5 * SAMPLES evaluates to 500000, and 0.05 * SAMPLES evaluates to 50000. /home/gjasny/prometheus-cpp/core/tests/summary_test.cc:69: Failure The difference between s.quantile.at(1).value and 0.9 * SAMPLES is 63818, which exceeds 0.01 * SAMPLES, where s.quantile.at(1).value evaluates to 963818, 0.9 * SAMPLES evaluates to 900000, and 0.01 * SAMPLES evaluates to 10000. /home/gjasny/prometheus-cpp/core/tests/summary_test.cc:70: Failure The difference between s.quantile.at(2).value and 0.99 * SAMPLES is 6685, which exceeds 0.001 * SAMPLES, where s.quantile.at(2).value evaluates to 996685, 0.99 * SAMPLES evaluates to 990000, and 0.001 * SAMPLES evaluates to 1000. [ FAILED ] SummaryTest.quantile_values (152010 ms) ``` The reason was that the TimeWindowQuantiles rotated through the buckets due to the long runtime.
- Loading branch information