cloudflare / pint

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

Use label source for more checks #1207

Closed prymitive closed 1 day ago

github-actions[bot] commented 1 day 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.65m ± 1%   39.56m ± 3%       ~ (p=0.971 n=10)
CheckRules-4     8.513 ± 2%    8.491 ± 2%       ~ (p=0.579 n=10)
geomean         581.0m        579.6m       -0.25%

              │   old.txt    │               new.txt               │
              │     B/op     │     B/op      vs base               │
FindEntries-4   27.40Mi ± 0%   27.40Mi ± 0%       ~ (p=0.315 n=10)
CheckRules-4    976.9Mi ± 0%   977.2Mi ± 0%       ~ (p=0.579 n=10)
geomean         163.6Mi        163.6Mi       +0.01%

              │   old.txt   │              new.txt               │
              │  allocs/op  │  allocs/op   vs base               │
FindEntries-4   131.7k ± 0%   131.7k ± 0%       ~ (p=0.097 n=10)
CheckRules-4    14.15M ± 0%   14.15M ± 0%       ~ (p=0.315 n=10)
geomean         1.365M        1.365M       +0.01%
codecov-commenter commented 1 day ago

Codecov Report

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

Project coverage is 94.98%. Comparing base (aeb0788) to head (43111f1).

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #1207 +/- ## ======================================= Coverage 94.98% 94.98% ======================================= Files 103 102 -1 Lines 12530 12455 -75 ======================================= - Hits 11901 11830 -71 + Misses 479 475 -4 Partials 150 150 ```

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