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

feat: add assertion compiler #503

Merged
merged 1 commit into from
Sep 20, 2024
Merged

Conversation

eddycharly
Copy link
Member

Explanation

Add assertion compiler (with caching).

Copy link

codecov bot commented Sep 20, 2024

Codecov Report

Attention: Patch coverage is 32.00000% with 34 lines in your changes missing coverage. Please review.

Project coverage is 23.74%. Comparing base (7faca6c) to head (51461a4).
Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
pkg/matching/compiler.go 18.18% 18 Missing ⚠️
pkg/apis/policy/v1alpha1/assertion_tree.go 0.00% 15 Missing ⚠️
pkg/json-engine/engine.go 80.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #503      +/-   ##
==========================================
- Coverage   23.79%   23.74%   -0.05%     
==========================================
  Files          90       91       +1     
  Lines        4202     4236      +34     
==========================================
+ Hits         1000     1006       +6     
- Misses       3105     3133      +28     
  Partials       97       97              

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

Signed-off-by: Charles-Edouard Brétéché <[email protected]>
@eddycharly eddycharly merged commit dc9a4be into kyverno:main Sep 20, 2024
13 of 14 checks passed
@eddycharly eddycharly deleted the assertion-compiler branch September 20, 2024 14:19
Comment on lines +17 to +20
func hashStringXXHASH(s string) uint32 {
sum := xxhash.Sum64String(s)
return uint32(sum) //nolint:gosec
}
Copy link
Member

Choose a reason for hiding this comment

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

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