Releases: cloudflare/pint
Releases · cloudflare/pint
v0.86.0
Added
- Added promql/nan check.
Changed
- promql/vector_matching was refactored heavily
to be faster and more accurate.
Fixed
- Fixed false positive reports from promql/impossible
when functions likeabs(),clamp_min(),hour(),ln(),
histogram_quantile(), ortimestamp()wrap aggregations that already remove
labels. - Fixed a crash in promql/aggregate when
nameregexp is not set. - Fixed alerts/template not populating
$annotationsmap, causing template expansion to always return
empty values for annotation references. - Fixed rule/label not matching regex key
patterns on recording rules. - Fixed bare
# pint disable promql/seriescomments having no effect
on promql/series checks. - Fixed
pint_rule_file_ownermetric using symlink target path instead
of symlink name, making it inconsistent withpint_problemmetric. - Fixed swapped label name and URL in
promql/vector_matching error message
when both sides of a binary operation are missing a label. - Fixed false positive promql/range_query
reports when Prometheus retention flag cannot be parsed. - Fixed promql/counter not checking bare
counter metrics used without any wrapping function.
v0.85.0
Added
- Added promql/offset check that warns when a PromQL
query uses anoffsetlarger than configured Prometheus retention. - Added support for Prometheus v3.12.0 experimental PromQL functions:
start(),end(),range(),step().
Changed
- BitBucket reporter no longer creates Code Insight annotations.
All problems are now reported as pull request comments.
Fixed
- Fixed query/cost suggesting recording rules with
incompatible label matchers. - Fixed query/cost suggesting recording rules when
the query and recording rule use different aggregation grouping
(e.g.sum by(job)vssum without(instance)).
v0.84.0
Added
- GitHub and GitLab reporters will now automatically delete outdated general
comments from previouspint ciruns.
Changed
- Reported problems will now trim more parts of the query for which the problem is
reported, to make it easier to read. - Reduced the number of low-value reports about smelly regexp selectors from the
promql/regexp check.
v0.83.0
Added
- rule/dependency check now supports
ignoreGroupMismatch
option for ignoring specific metrics when checking for cross-group
dependencies - #1795.
Changed
- Reported problems will now trim parts of the query for which the problem is reported
to make it easier to read.
Fixed
- GitHub and GitLab reporter was trying to create comments on incorrect lines.
v0.82.3
Fixed
- Fixed incorrect reports from promql/regexp when empty match group is used.
v0.82.2
Fixed
- rule/dependency won't report warnings when one
query uses a recording rules that produce a static value (vector(1)).
If the value is always the same the lag doesn't matter and it's a false positive.
v0.82.1
Fixed
- GitHub and GitLab reporter was trying to create comments on unmodified files, which is not allowed.
v0.82.0
Changed
- rule/dependency cross-group dependency check now
only reports problems for recording rules.
Fixed
- Fixed a panic when running
pint ci.
v0.81.1
Fixed
- Fixed GitLab reporter sending invalid line position when a comment is placed
on a modified line in the diff, causing a 400 error from GitLab API. - GitHub and GitLab reporters will now correctly handle MRs between two feature branches.
v0.81.0
Changed
- When running
pint cipint will now usegit diffto calculate modified lines
instead ofgit blame. - Broken symlinks and unreadable files in the rules directory are now reported
as yaml/parse problems instead of causing a fatal error.
Fixed
- Fixed parser not handling
\r\nline endings correctly. - alerts/count check will now more accurately estimate alert counts.