prometheus/model
cui 54d4f527a0
Some checks are pending
buf.build / lint and publish (push) Waiting to run
CI / Go tests (push) Waiting to run
CI / More Go tests (push) Waiting to run
CI / Go tests for Prometheus upgrades and downgrades (push) Waiting to run
CI / Go tests with previous Go version (push) Waiting to run
CI / UI tests (push) Waiting to run
CI / Go tests on Windows (push) Waiting to run
CI / Mixins tests (push) Waiting to run
CI / Compliance testing (push) Waiting to run
CI / Build Prometheus for common architectures (push) Waiting to run
CI / Build Prometheus for all architectures (push) Waiting to run
CI / Report status of build Prometheus for all architectures (push) Blocked by required conditions
CI / Check generated parser (push) Waiting to run
CI / golangci-lint (push) Waiting to run
CI / fuzzing (push) Waiting to run
CI / codeql (push) Waiting to run
CI / Publish main branch artifacts (push) Blocked by required conditions
CI / Publish release artefacts (push) Blocked by required conditions
CI / Publish UI on npm Registry (push) Blocked by required conditions
govulncheck / Run govulncheck (push) Waiting to run
Scorecards supply-chain security / Scorecards analysis (push) Waiting to run
textparse: fix NaN canonicalization check in OpenMetrics getFloatValue (#18399)
* textparse: fix NaN canonicalization check in OpenMetrics getFloatValue
* textparse: add tests for OpenMetrics summary NaN quantiles

getFloatValue was testing p.exemplarVal instead of the parsed float when normalizing NaN to the canonical representation, so metric values that were NaN were not normalized correctly.

Extend TestOpenMetricsParse with nansum summary lines and cmpopts.EquateNaNs in requireEntries so NaN float values compare equal after canonicalization.

Signed-off-by: Weixie Cui <cuiweixie@gmail.com>
Signed-off-by: cui <cuiweixie@gmail.com>
Co-authored-by: George Krajcsovits <krajorama@users.noreply.github.com>
2026-05-12 15:45:59 +02:00
..
exemplar Remove copyright date from headers (#17785) 2026-01-05 13:46:21 +01:00
histogram histogram, textparse: fix two panics in compactBuckets for malformed input 2026-03-31 17:37:09 +02:00
labels chore: fix emptyStringTest issues from gocritic (#18226) 2026-03-04 08:24:50 +01:00
metadata refactor(appenderV2): add TSDB AppenderV2 implementation 2025-12-09 10:39:43 +00:00
relabel [REFACTOR] Relabel: Remove unnecessary Process() function 2026-02-06 10:50:16 +00:00
rulefmt rulefmt: warn when multi-document rule files are detected (#18114) 2026-04-09 14:40:18 +02:00
textparse textparse: fix NaN canonicalization check in OpenMetrics getFloatValue (#18399) 2026-05-12 15:45:59 +02:00
timestamp Use time.UnixMilli() and t.UnixMilli() for slightly cleaner timestamp conversions 2026-04-01 19:02:48 -04:00
value Remove copyright date from headers (#17785) 2026-01-05 13:46:21 +01:00