cloudflare / pint

Prometheus rule linter/validator
https://cloudflare.github.io/pint/
Apache License 2.0
877 stars 53 forks source link

Allow disabling/enabling checks via rules #1171

Closed prymitive closed 1 month ago

codecov-commenter commented 1 month ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 94.84%. Comparing base (4fc90c8) to head (4a23865).

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #1171 +/- ## ========================================== + Coverage 94.83% 94.84% +0.01% ========================================== Files 104 104 Lines 12179 12204 +25 ========================================== + Hits 11550 11575 +25 Misses 480 480 Partials 149 149 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

github-actions[bot] commented 1 month ago

Benchmark diff:

goos: linux
goarch: amd64
pkg: github.com/cloudflare/pint/cmd/pint
cpu: AMD EPYC 7763 64-Core Processor                
              │   old.txt   │              new.txt               │
              │   sec/op    │   sec/op     vs base               │
FindEntries-4   39.78m ± 1%   39.79m ± 3%       ~ (p=0.579 n=10)
CheckRules-4     8.530 ± 2%    8.485 ± 2%       ~ (p=0.315 n=10)
geomean         582.5m        581.0m       -0.25%

              │   old.txt    │               new.txt               │
              │     B/op     │     B/op      vs base               │
FindEntries-4   27.41Mi ± 0%   27.41Mi ± 0%       ~ (p=0.971 n=10)
CheckRules-4    988.4Mi ± 0%   989.0Mi ± 0%       ~ (p=0.393 n=10)
geomean         164.6Mi        164.6Mi       +0.03%

              │   old.txt   │              new.txt               │
              │  allocs/op  │  allocs/op   vs base               │
FindEntries-4   131.9k ± 0%   131.9k ± 0%       ~ (p=0.220 n=10)
CheckRules-4    14.30M ± 0%   14.30M ± 0%       ~ (p=0.579 n=10)
geomean         1.373M        1.373M       -0.00%