Skip to content
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

Add rule/name check #1048

Merged
merged 1 commit into from
Jul 26, 2024
Merged

Add rule/name check #1048

merged 1 commit into from
Jul 26, 2024

Conversation

prymitive
Copy link
Collaborator

Fixes #1020.

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.62.1-35-g7830b65
Number of rules parsed 4
Number of rules checked 0
Number of problems found 0
Number of offline checks 0
Number of online checks 0
Checks duration 0

Problems

No problems reported

Copy link

github-actions bot commented Jul 26, 2024

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   37.97m ± 3%   37.95m ± 1%       ~ (p=0.739 n=10)
CheckRules-4     8.506 ± 2%    8.497 ± 2%       ~ (p=0.912 n=10)
geomean         568.3m        567.8m       -0.09%

              │   old.txt    │               new.txt               │
              │     B/op     │     B/op      vs base               │
FindEntries-4   27.39Mi ± 0%   27.39Mi ± 0%       ~ (p=0.853 n=10)
CheckRules-4    943.0Mi ± 0%   943.1Mi ± 0%       ~ (p=0.912 n=10)
geomean         160.7Mi        160.7Mi       +0.01%

              │   old.txt   │              new.txt               │
              │  allocs/op  │  allocs/op   vs base               │
FindEntries-4   131.6k ± 0%   131.6k ± 0%       ~ (p=0.777 n=10)
CheckRules-4    13.98M ± 0%   13.98M ± 0%       ~ (p=0.684 n=10)
geomean         1.356M        1.356M       +0.01%

@codecov-commenter
Copy link

codecov-commenter commented Jul 26, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 94.74%. Comparing base (f981872) to head (7830b65).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1048      +/-   ##
==========================================
+ Coverage   94.71%   94.74%   +0.03%     
==========================================
  Files          97       99       +2     
  Lines        9874     9932      +58     
==========================================
+ Hits         9352     9410      +58     
  Misses        366      366              
  Partials      156      156              

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

@prymitive prymitive merged commit 0d70fa2 into main Jul 26, 2024
20 checks passed
@prymitive prymitive deleted the rule/name branch July 26, 2024 17:12
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.

[Feature] Allow matching rules for alert/record name
2 participants