Skip to content

Update tools#1884

Merged
prymitive merged 1 commit into
mainfrom
tools
Jun 11, 2026
Merged

Update tools#1884
prymitive merged 1 commit into
mainfrom
tools

Conversation

@prymitive

Copy link
Copy Markdown
Collaborator

No description provided.

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This pull request was validated by pint.

✔️ No problems found

Stats

Stat Value
Version v0.85.0-33-g7f8a881d
Number of rules parsed 22
Number of rules checked 22
Number of problems found 0
Number of offline checks 0
Number of online checks 0
Checks duration 6ms

Problems

No problems reported

@codecov-commenter

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (2dcabe9) to head (7f8a881).

Additional details and impacted files
@@            Coverage Diff            @@
##              main     #1884   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files          114       114           
  Lines        14969     14969           
=========================================
  Hits         14969     14969           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@github-actions

Copy link
Copy Markdown

Benchmark diff:

goos: linux
goarch: amd64
pkg: github.com/cloudflare/pint/cmd/pint
cpu: AMD EPYC 9V74 80-Core Processor                
                             │    old.txt    │              new.txt               │
                             │    sec/op     │    sec/op     vs base              │
GlobFinder                      38.65m ± ∞ ¹   39.37m ± ∞ ¹  +1.87% (p=0.026 n=6)
GitFinder                       580.6m ± ∞ ¹   584.4m ± ∞ ¹       ~ (p=0.240 n=6)
Check/rule/reject               189.7µ ± ∞ ¹   187.8µ ± ∞ ¹       ~ (p=0.061 n=6)
Check/alerts/annotation         550.8µ ± ∞ ¹   526.6µ ± ∞ ¹  -4.40% (p=0.002 n=6)
Check/query/cost                20.65m ± ∞ ¹   20.29m ± ∞ ¹       ~ (p=0.180 n=6)
Check/rule/dependency           24.49m ± ∞ ¹   25.00m ± ∞ ¹  +2.08% (p=0.002 n=6)
Check/promql/series              1.165 ± ∞ ¹    1.155 ± ∞ ¹       ~ (p=0.937 n=6)
Check/alerts/absent             83.46µ ± ∞ ¹   82.32µ ± ∞ ¹  -1.37% (p=0.002 n=6)
Check/rule/label                1.380m ± ∞ ¹   1.426m ± ∞ ¹  +3.28% (p=0.026 n=6)
Check/alerts/for                146.7µ ± ∞ ¹   149.9µ ± ∞ ¹       ~ (p=0.065 n=6)
Check/alerts/comparison         60.25µ ± ∞ ¹   57.04µ ± ∞ ¹  -5.34% (p=0.002 n=6)
Check/promql/regexp             1.418m ± ∞ ¹   1.478m ± ∞ ¹  +4.21% (p=0.002 n=6)
Check/promql/nan                2.655m ± ∞ ¹   2.643m ± ∞ ¹       ~ (p=0.485 n=6)
Check/labels/conflict           2.249m ± ∞ ¹   2.234m ± ∞ ¹       ~ (p=0.240 n=6)
Check/promql/counter            3.255m ± ∞ ¹   3.280m ± ∞ ¹       ~ (p=0.093 n=6)
Check/promql/features          100.99µ ± ∞ ¹   92.62µ ± ∞ ¹  -8.29% (p=0.002 n=6)
Check/promql/syntax             15.43µ ± ∞ ¹   15.35µ ± ∞ ¹       ~ (p=0.058 n=6)
Check/alerts/template           249.5m ± ∞ ¹   255.2m ± ∞ ¹  +2.32% (p=0.026 n=6)
Check/promql/fragile            103.4µ ± ∞ ¹   104.4µ ± ∞ ¹       ~ (p=0.394 n=6)
Check/promql/offset             3.438m ± ∞ ¹   3.363m ± ∞ ¹  -2.18% (p=0.004 n=6)
Check/promql/range_query        3.471m ± ∞ ¹   3.345m ± ∞ ¹  -3.64% (p=0.002 n=6)
Check/rule/duplicate            16.63m ± ∞ ¹   16.91m ± ∞ ¹  +1.69% (p=0.041 n=6)
Check/alerts/external_labels    53.53m ± ∞ ¹   52.51m ± ∞ ¹       ~ (p=0.093 n=6)
Check/alerts/count              14.11m ± ∞ ¹   13.50m ± ∞ ¹       ~ (p=0.132 n=6)
Check/promql/impossible        104.16µ ± ∞ ¹   96.05µ ± ∞ ¹  -7.79% (p=0.002 n=6)
Check/group/interval            4.723µ ± ∞ ¹   4.908µ ± ∞ ¹       ~ (p=0.589 n=6)
Check/promql/rate               5.564m ± ∞ ¹   5.459m ± ∞ ¹  -1.89% (p=0.004 n=6)
Check/promql/vector_matching    21.29m ± ∞ ¹   19.57m ± ∞ ¹  -8.05% (p=0.002 n=6)
RuleIsIdentical                 21.78m ± ∞ ¹   21.50m ± ∞ ¹  -1.28% (p=0.026 n=6)
GetChecksForEntry               293.2m ± ∞ ¹   291.9m ± ∞ ¹       ~ (p=0.180 n=6)
geomean                         2.915m         2.882m        -1.13%
¹ need >= 8 samples for confidence interval at level 0.99

                             │    old.txt    │                new.txt                │
                             │     B/op      │     B/op       vs base                │
GlobFinder                     12.77Mi ± ∞ ¹   12.77Mi ± ∞ ¹       ~ (p=0.937 n=6)
GitFinder                      25.89Mi ± ∞ ¹   25.89Mi ± ∞ ¹       ~ (p=0.818 n=6)
Check/rule/reject                0.000 ± ∞ ¹     0.000 ± ∞ ¹       ~ (p=1.000 n=6) ²
Check/alerts/annotation          0.000 ± ∞ ¹     0.000 ± ∞ ¹       ~ (p=1.000 n=6) ²
Check/query/cost               525.0Ki ± ∞ ¹   525.0Ki ± ∞ ¹       ~ (p=1.000 n=6) ²
Check/rule/dependency          15.90Mi ± ∞ ¹   15.90Mi ± ∞ ¹       ~ (p=1.000 n=6) ²
Check/promql/series            98.53Mi ± ∞ ¹   98.53Mi ± ∞ ¹       ~ (p=0.515 n=6)
Check/alerts/absent            3.812Ki ± ∞ ¹   3.812Ki ± ∞ ¹       ~ (p=1.000 n=6) ²
Check/rule/label               685.7Ki ± ∞ ¹   685.7Ki ± ∞ ¹  +0.00% (p=0.002 n=6)
Check/alerts/for               88.41Ki ± ∞ ¹   88.41Ki ± ∞ ¹       ~ (p=1.000 n=6) ²
Check/alerts/comparison          352.0 ± ∞ ¹     352.0 ± ∞ ¹       ~ (p=1.000 n=6) ²
Check/promql/regexp            477.6Ki ± ∞ ¹   477.6Ki ± ∞ ¹  +0.00% (p=0.002 n=6)
Check/promql/nan               191.6Ki ± ∞ ¹   191.6Ki ± ∞ ¹       ~ (p=1.000 n=6) ²
Check/labels/conflict          275.8Ki ± ∞ ¹   275.8Ki ± ∞ ¹       ~ (p=1.000 n=6) ²
Check/promql/counter           454.8Ki ± ∞ ¹   454.8Ki ± ∞ ¹       ~ (p=0.061 n=6)
Check/promql/features            0.000 ± ∞ ¹     0.000 ± ∞ ¹       ~ (p=1.000 n=6) ²
Check/promql/syntax              0.000 ± ∞ ¹     0.000 ± ∞ ¹       ~ (p=1.000 n=6) ²
Check/alerts/template          112.4Mi ± ∞ ¹   112.4Mi ± ∞ ¹  +0.00% (p=0.002 n=6)
Check/promql/fragile           15.50Ki ± ∞ ¹   15.50Ki ± ∞ ¹       ~ (p=1.000 n=6) ²
Check/promql/offset            418.5Ki ± ∞ ¹   418.5Ki ± ∞ ¹  +0.00% (p=0.002 n=6)
Check/promql/range_query       418.0Ki ± ∞ ¹   418.0Ki ± ∞ ¹  +0.00% (p=0.002 n=6)
Check/rule/duplicate             0.000 ± ∞ ¹     0.000 ± ∞ ¹       ~ (p=1.000 n=6) ²
Check/alerts/external_labels   18.58Mi ± ∞ ¹   18.58Mi ± ∞ ¹  +0.00% (p=0.002 n=6)
Check/alerts/count             1.469Mi ± ∞ ¹   1.466Mi ± ∞ ¹       ~ (p=0.394 n=6)
Check/promql/impossible          704.0 ± ∞ ¹     704.0 ± ∞ ¹       ~ (p=1.000 n=6) ²
Check/group/interval             0.000 ± ∞ ¹     0.000 ± ∞ ¹       ~ (p=1.000 n=6) ²
Check/promql/rate              379.1Ki ± ∞ ¹   379.1Ki ± ∞ ¹       ~ (p=1.000 n=6) ²
Check/promql/vector_matching   8.181Mi ± ∞ ¹   8.181Mi ± ∞ ¹       ~ (p=0.818 n=6)
RuleIsIdentical                  0.000 ± ∞ ¹     0.000 ± ∞ ¹       ~ (p=1.000 n=6) ²
GetChecksForEntry              99.93Mi ± ∞ ¹   99.93Mi ± ∞ ¹       ~ (p=0.721 n=6)
geomean                                    ³                  -0.01%               ³
¹ need >= 8 samples for confidence interval at level 0.99
² all samples are equal
³ summaries must be >0 to compute geomean

                             │   old.txt    │               new.txt                │
                             │  allocs/op   │  allocs/op    vs base                │
GlobFinder                     197.8k ± ∞ ¹   197.8k ± ∞ ¹       ~ (p=1.000 n=6) ²
GitFinder                      243.4k ± ∞ ¹   243.4k ± ∞ ¹       ~ (p=0.924 n=6)
Check/rule/reject               0.000 ± ∞ ¹    0.000 ± ∞ ¹       ~ (p=1.000 n=6) ²
Check/alerts/annotation         0.000 ± ∞ ¹    0.000 ± ∞ ¹       ~ (p=1.000 n=6) ²
Check/query/cost               7.624k ± ∞ ¹   7.624k ± ∞ ¹       ~ (p=1.000 n=6) ²
Check/rule/dependency          7.632k ± ∞ ¹   7.632k ± ∞ ¹       ~ (p=1.000 n=6) ²
Check/promql/series            1.418M ± ∞ ¹   1.418M ± ∞ ¹       ~ (p=1.000 n=6)
Check/alerts/absent             76.00 ± ∞ ¹    76.00 ± ∞ ¹       ~ (p=1.000 n=6) ²
Check/rule/label               11.45k ± ∞ ¹   11.45k ± ∞ ¹       ~ (p=1.000 n=6) ²
Check/alerts/for               1.476k ± ∞ ¹   1.476k ± ∞ ¹       ~ (p=1.000 n=6) ²
Check/alerts/comparison         4.000 ± ∞ ¹    4.000 ± ∞ ¹       ~ (p=1.000 n=6) ²
Check/promql/regexp            8.587k ± ∞ ¹   8.587k ± ∞ ¹       ~ (p=1.000 n=6) ²
Check/promql/nan               3.652k ± ∞ ¹   3.652k ± ∞ ¹       ~ (p=1.000 n=6) ²
Check/labels/conflict          5.724k ± ∞ ¹   5.724k ± ∞ ¹       ~ (p=1.000 n=6) ²
Check/promql/counter           24.14k ± ∞ ¹   24.14k ± ∞ ¹       ~ (p=1.000 n=6) ²
Check/promql/features           0.000 ± ∞ ¹    0.000 ± ∞ ¹       ~ (p=1.000 n=6) ²
Check/promql/syntax             0.000 ± ∞ ¹    0.000 ± ∞ ¹       ~ (p=1.000 n=6) ²
Check/alerts/template          1.046M ± ∞ ¹   1.046M ± ∞ ¹  +0.00% (p=0.002 n=6)
Check/promql/fragile            246.0 ± ∞ ¹    246.0 ± ∞ ¹       ~ (p=1.000 n=6) ²
Check/promql/offset            12.42k ± ∞ ¹   12.42k ± ∞ ¹       ~ (p=1.000 n=6) ²
Check/promql/range_query       12.41k ± ∞ ¹   12.41k ± ∞ ¹       ~ (p=1.000 n=6) ²
Check/rule/duplicate            0.000 ± ∞ ¹    0.000 ± ∞ ¹       ~ (p=1.000 n=6) ²
Check/alerts/external_labels   321.8k ± ∞ ¹   321.8k ± ∞ ¹  +0.00% (p=0.002 n=6)
Check/alerts/count             33.63k ± ∞ ¹   33.58k ± ∞ ¹       ~ (p=0.381 n=6)
Check/promql/impossible         5.000 ± ∞ ¹    5.000 ± ∞ ¹       ~ (p=1.000 n=6) ²
Check/group/interval            0.000 ± ∞ ¹    0.000 ± ∞ ¹       ~ (p=1.000 n=6) ²
Check/promql/rate              8.202k ± ∞ ¹   8.202k ± ∞ ¹       ~ (p=1.000 n=6) ²
Check/promql/vector_matching   90.51k ± ∞ ¹   90.51k ± ∞ ¹       ~ (p=0.167 n=6)
RuleIsIdentical                 0.000 ± ∞ ¹    0.000 ± ∞ ¹       ~ (p=1.000 n=6) ²
GetChecksForEntry              1.654M ± ∞ ¹   1.654M ± ∞ ¹       ~ (p=1.000 n=6)
geomean                                   ³                 -0.00%               ³
¹ need >= 8 samples for confidence interval at level 0.99
² all samples are equal
³ summaries must be >0 to compute geomean

pkg: github.com/cloudflare/pint/internal/diags
                           │   old.txt    │              new.txt               │
                           │    sec/op    │    sec/op     vs base              │
InjectDiagnosticsLongExpr    8.531µ ± ∞ ¹   8.442µ ± ∞ ¹       ~ (p=0.093 n=6)
InjectDiagnosticsShortExpr   1.234µ ± ∞ ¹   1.212µ ± ∞ ¹  -1.78% (p=0.002 n=6)
geomean                      3.244µ         3.198µ        -1.41%
¹ need >= 8 samples for confidence interval at level 0.99

                           │    old.txt    │                new.txt                │
                           │     B/op      │     B/op       vs base                │
InjectDiagnosticsLongExpr    3.578Ki ± ∞ ¹   3.578Ki ± ∞ ¹       ~ (p=1.000 n=6) ²
InjectDiagnosticsShortExpr     304.0 ± ∞ ¹     304.0 ± ∞ ¹       ~ (p=1.000 n=6) ²
geomean                      1.031Ki         1.031Ki        +0.00%
¹ need >= 8 samples for confidence interval at level 0.99
² all samples are equal

                           │   old.txt   │               new.txt               │
                           │  allocs/op  │  allocs/op   vs base                │
InjectDiagnosticsLongExpr    39.00 ± ∞ ¹   39.00 ± ∞ ¹       ~ (p=1.000 n=6) ²
InjectDiagnosticsShortExpr   13.00 ± ∞ ¹   13.00 ± ∞ ¹       ~ (p=1.000 n=6) ²
geomean                      22.52         22.52        +0.00%
¹ need >= 8 samples for confidence interval at level 0.99
² all samples are equal

pkg: github.com/cloudflare/pint/internal/parser
      │   old.txt    │            new.txt            │
      │    sec/op    │    sec/op     vs base         │
Parse   18.78m ± ∞ ¹   18.68m ± ∞ ¹  ~ (p=0.394 n=6)
¹ need >= 8 samples for confidence interval at level 0.99

      │    old.txt    │            new.txt             │
      │     B/op      │     B/op       vs base         │
Parse   6.385Mi ± ∞ ¹   6.385Mi ± ∞ ¹  ~ (p=0.145 n=6)
¹ need >= 8 samples for confidence interval at level 0.99

      │   old.txt    │             new.txt             │
      │  allocs/op   │  allocs/op    vs base           │
Parse   102.8k ± ∞ ¹   102.8k ± ∞ ¹  ~ (p=1.000 n=6) ²
¹ need >= 8 samples for confidence interval at level 0.99
² all samples are equal

pkg: github.com/cloudflare/pint/internal/parser/source
             │   old.txt    │            new.txt            │
             │    sec/op    │    sec/op     vs base         │
LabelsSource   1.105m ± ∞ ¹   1.104m ± ∞ ¹  ~ (p=0.589 n=6)
¹ need >= 8 samples for confidence interval at level 0.99

             │    old.txt    │            new.txt             │
             │     B/op      │     B/op       vs base         │
LabelsSource   755.0Ki ± ∞ ¹   755.0Ki ± ∞ ¹  ~ (p=0.729 n=6)
¹ need >= 8 samples for confidence interval at level 0.99

             │   old.txt    │             new.txt             │
             │  allocs/op   │  allocs/op    vs base           │
LabelsSource   7.251k ± ∞ ¹   7.251k ± ∞ ¹  ~ (p=1.000 n=6) ²
¹ need >= 8 samples for confidence interval at level 0.99
² all samples are equal

pkg: github.com/cloudflare/pint/internal/promapi
                  │   old.txt    │            new.txt            │
                  │    sec/op    │    sec/op     vs base         │
QueryCacheOnlySet   120.0n ± ∞ ¹   119.9n ± ∞ ¹  ~ (p=1.000 n=6)
¹ need >= 8 samples for confidence interval at level 0.99

                  │   old.txt   │            new.txt             │
                  │    B/op     │    B/op      vs base           │
QueryCacheOnlySet   64.00 ± ∞ ¹   64.00 ± ∞ ¹  ~ (p=1.000 n=6) ²
¹ need >= 8 samples for confidence interval at level 0.99
² all samples are equal

                  │   old.txt   │            new.txt             │
                  │  allocs/op  │  allocs/op   vs base           │
QueryCacheOnlySet   1.000 ± ∞ ¹   1.000 ± ∞ ¹  ~ (p=1.000 n=6) ²
¹ need >= 8 samples for confidence interval at level 0.99
² all samples are equal

@prymitive prymitive merged commit 8306341 into main Jun 11, 2026
20 checks passed
@prymitive prymitive deleted the tools branch June 11, 2026 12:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants