Skip to content

Make name validation per parser instance #1458

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 10, 2025
Merged

Make name validation per parser instance #1458

merged 1 commit into from
Jun 10, 2025

Conversation

prymitive
Copy link
Collaborator

No description provided.

Copy link

@github-actions github-actions bot left a comment

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.73.7-75-gf9f9f6c2
Number of rules parsed 9
Number of rules checked 9
Number of problems found 0
Number of offline checks 0
Number of online checks 0
Checks duration 0

Problems

No problems reported

@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 96.34%. Comparing base (30211b8) to head (f9f9f6c).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1458   +/-   ##
=======================================
  Coverage   96.34%   96.34%           
=======================================
  Files         106      106           
  Lines       14851    14859    +8     
=======================================
+ Hits        14308    14316    +8     
  Misses        403      403           
  Partials      140      140           

☔ View full report in Codecov by Sentry.
📢 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.

Copy link

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              │
GlobFinder-4   29.78m ± ∞ ¹   30.11m ± ∞ ¹       ~ (p=0.151 n=5)
GitFinder-4    378.0m ± ∞ ¹   377.5m ± ∞ ¹       ~ (p=0.548 n=5)
CheckRules-4    9.481 ± ∞ ¹    9.495 ± ∞ ¹       ~ (p=0.841 n=5)
geomean        474.3m         476.1m        +0.38%
¹ need >= 6 samples for confidence interval at level 0.95

             │    old.txt    │               new.txt               │
             │     B/op      │     B/op       vs base              │
GlobFinder-4   9.495Mi ± ∞ ¹   9.495Mi ± ∞ ¹       ~ (p=0.548 n=5)
GitFinder-4    19.56Mi ± ∞ ¹   19.57Mi ± ∞ ¹       ~ (p=0.548 n=5)
CheckRules-4   1.108Gi ± ∞ ¹   1.107Gi ± ∞ ¹       ~ (p=0.310 n=5)
geomean        59.51Mi         59.50Mi        -0.01%
¹ need >= 6 samples for confidence interval at level 0.95

             │   old.txt    │              new.txt               │
             │  allocs/op   │  allocs/op    vs base              │
GlobFinder-4   145.2k ± ∞ ¹   145.2k ± ∞ ¹       ~ (p=0.706 n=5)
GitFinder-4    191.6k ± ∞ ¹   191.6k ± ∞ ¹       ~ (p=0.730 n=5)
CheckRules-4   16.27M ± ∞ ¹   16.26M ± ∞ ¹  -0.05% (p=0.032 n=5)
geomean        767.9k         767.8k        -0.02%
¹ need >= 6 samples for confidence interval at level 0.95

pkg: github.com/cloudflare/pint/internal/parser
        │   old.txt    │            new.txt            │
        │    sec/op    │    sec/op     vs base         │
Parse-4   23.28m ± ∞ ¹   23.14m ± ∞ ¹  ~ (p=0.151 n=5)
¹ need >= 6 samples for confidence interval at level 0.95

        │    old.txt    │            new.txt             │
        │     B/op      │     B/op       vs base         │
Parse-4   7.308Mi ± ∞ ¹   7.307Mi ± ∞ ¹  ~ (p=0.690 n=5)
¹ need >= 6 samples for confidence interval at level 0.95

        │   old.txt    │            new.txt            │
        │  allocs/op   │  allocs/op    vs base         │
Parse-4   125.7k ± ∞ ¹   125.7k ± ∞ ¹  ~ (p=0.810 n=5)
¹ need >= 6 samples for confidence interval at level 0.95

pkg: github.com/cloudflare/pint/internal/promapi
                    │   old.txt    │              new.txt               │
                    │    sec/op    │    sec/op     vs base              │
QueryCacheOnlySet-4   103.4n ± ∞ ¹   103.2n ± ∞ ¹       ~ (p=0.968 n=5)
QueryCacheSetGrow-4   396.4n ± ∞ ¹   386.3n ± ∞ ¹       ~ (p=0.151 n=5)
QueryCacheGetMiss-4   16.63n ± ∞ ¹   16.76n ± ∞ ¹  +0.78% (p=0.008 n=5)
QueryCacheGC-4        55.34µ ± ∞ ¹   54.97µ ± ∞ ¹       ~ (p=0.151 n=5)
QueryCacheGCNoop-4    82.36µ ± ∞ ¹   82.37µ ± ∞ ¹       ~ (p=1.000 n=5)
geomean               1.254µ         1.248µ        -0.53%
¹ need >= 6 samples for confidence interval at level 0.95

                    │    old.txt    │                new.txt                │
                    │     B/op      │     B/op       vs base                │
QueryCacheOnlySet-4     64.00 ± ∞ ¹     64.00 ± ∞ ¹       ~ (p=1.000 n=5) ²
QueryCacheSetGrow-4     137.0 ± ∞ ¹     137.0 ± ∞ ¹       ~ (p=0.746 n=5)
QueryCacheGetMiss-4     0.000 ± ∞ ¹     0.000 ± ∞ ¹       ~ (p=1.000 n=5) ²
QueryCacheGC-4        36.13Ki ± ∞ ¹   36.13Ki ± ∞ ¹       ~ (p=1.000 n=5)
QueryCacheGCNoop-4    54.17Ki ± ∞ ¹   54.17Ki ± ∞ ¹       ~ (p=1.000 n=5) ²
geomean                           ³                  +0.00%               ³
¹ need >= 6 samples for confidence interval at level 0.95
² all samples are equal
³ summaries must be >0 to compute geomean

                    │   old.txt   │               new.txt               │
                    │  allocs/op  │  allocs/op   vs base                │
QueryCacheOnlySet-4   1.000 ± ∞ ¹   1.000 ± ∞ ¹       ~ (p=1.000 n=5) ²
QueryCacheSetGrow-4   1.000 ± ∞ ¹   1.000 ± ∞ ¹       ~ (p=1.000 n=5) ²
QueryCacheGetMiss-4   0.000 ± ∞ ¹   0.000 ± ∞ ¹       ~ (p=1.000 n=5) ²
QueryCacheGC-4        6.000 ± ∞ ¹   6.000 ± ∞ ¹       ~ (p=1.000 n=5) ²
QueryCacheGCNoop-4    9.000 ± ∞ ¹   9.000 ± ∞ ¹       ~ (p=1.000 n=5) ²
geomean                         ³                +0.00%               ³
¹ need >= 6 samples for confidence interval at level 0.95
² all samples are equal
³ summaries must be >0 to compute geomean

@prymitive prymitive merged commit e6091f2 into main Jun 10, 2025
21 checks passed
@prymitive prymitive deleted the parser branch June 10, 2025 13:55
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