Skip to content

fix: make audit more fault tolerant, log error instead of skipping update#2162

Merged
ritazh merged 1 commit into
open-policy-agent:masterfrom
ritazh:fix-auditnserr
Jul 14, 2022
Merged

fix: make audit more fault tolerant, log error instead of skipping update#2162
ritazh merged 1 commit into
open-policy-agent:masterfrom
ritazh:fix-auditnserr

Conversation

@ritazh
Copy link
Copy Markdown
Member

@ritazh ritazh commented Jul 13, 2022

Signed-off-by: Rita Zhang rita.z.zhang@gmail.com

What this PR does / why we need it:
make audit more fault tolerant, log error instead of skipping status update

Which issue(s) this PR fixes (optional, using fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when the PR gets merged):
Fixes #2120

Special notes for your reviewer:

…atus update

Signed-off-by: Rita Zhang <rita.z.zhang@gmail.com>
@ritazh ritazh changed the title fix: make audit more fault tolerant, log error instead of skipping st… fix: make audit more fault tolerant, log error instead of skipping update Jul 13, 2022
@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Jul 13, 2022

Codecov Report

Attention: Patch coverage is 0% with 4 lines in your changes missing coverage. Please review.

Project coverage is 54.38%. Comparing base (f5eacc7) to head (3aa1b9d).
Report is 882 commits behind head on master.

Files with missing lines Patch % Lines
pkg/audit/manager.go 0.00% 4 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2162      +/-   ##
==========================================
- Coverage   54.41%   54.38%   -0.04%     
==========================================
  Files         111      111              
  Lines        9530     9529       -1     
==========================================
- Hits         5186     5182       -4     
- Misses       3946     3949       +3     
  Partials      398      398              
Flag Coverage Δ
unittests 54.38% <0.00%> (-0.04%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ 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.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copy link
Copy Markdown
Contributor

@maxsmythe maxsmythe left a comment

Choose a reason for hiding this comment

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

LGTM

thanks for doing this!

@maxsmythe
Copy link
Copy Markdown
Contributor

I wonder if we should also be working to make it easier to verify that audit is healthy. Maybe Prometheus metrics listing # of audit errors for the last audit run? Could be separate work.

@ritazh
Copy link
Copy Markdown
Member Author

ritazh commented Jul 14, 2022

I wonder if we should also be working to make it easier to verify that audit is healthy. Maybe Prometheus metrics listing # of audit errors for the last audit run? Could be separate work.

I will open another issue/PR for this.

@ritazh ritazh merged commit 59e190f into open-policy-agent:master Jul 14, 2022
@ritazh ritazh deleted the fix-auditnserr branch July 14, 2022 00:26
davis-haba pushed a commit to davis-haba/gatekeeper that referenced this pull request Jul 19, 2022
…date (open-policy-agent#2162)

fix: make audit more fault tolerant, log error instead of skipping status update

Signed-off-by: Rita Zhang <rita.z.zhang@gmail.com>
davis-haba pushed a commit to davis-haba/gatekeeper that referenced this pull request Jul 19, 2022
…date (open-policy-agent#2162)

fix: make audit more fault tolerant, log error instead of skipping status update

Signed-off-by: Rita Zhang <rita.z.zhang@gmail.com>
Signed-off-by: davis-haba <davishaba@google.com>
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.

Audit Error & Missing Violations

4 participants