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

Start using new eval history table #3703

Merged
merged 3 commits into from
Jun 26, 2024
Merged

Start using new eval history table #3703

merged 3 commits into from
Jun 26, 2024

Conversation

dmjb
Copy link
Contributor

@dmjb dmjb commented Jun 24, 2024

This PR wires the eval history service into the evaluation engine. It is gated behind a feature flag while we experiment with it. A follow on PR will add logging for remediation and alerting.

Relates to #3556

Summary

Provide a brief overview of the changes and the issue being addressed.
Explain the rationale and any background necessary for understanding the changes.
List dependencies required by this change, if any.

Fixes #(related issue)

Change Type

Mark the type of change your PR introduces:

  • Bug fix (resolves an issue without affecting existing features)
  • Feature (adds new functionality without breaking changes)
  • Breaking change (may impact existing functionalities or require documentation updates)
  • Documentation (updates or additions to documentation)
  • Refactoring or test improvements (no bug fixes or new functionality)

Testing

Outline how the changes were tested, including steps to reproduce and any relevant configurations.
Attach screenshots if helpful.

Review Checklist:

  • Reviewed my own code for quality and clarity.
  • Added comments to complex or tricky code sections.
  • Updated any affected documentation.
  • Included tests that validate the fix or feature.
  • Checked that related changes are merged.

@dmjb dmjb requested a review from a team as a code owner June 24, 2024 14:45
@coveralls
Copy link

Coverage Status

coverage: 52.815% (+0.08%) from 52.736%
when pulling ab94888 on wire-up-history-logs
into b5398b9 on main.

@coveralls
Copy link

Coverage Status

coverage: 52.805% (+0.06%) from 52.746%
when pulling 3bb152d on wire-up-history-logs
into 66c47f5 on main.

evankanderson
evankanderson previously approved these changes Jun 24, 2024
Copy link
Member

@evankanderson evankanderson left a comment

Choose a reason for hiding this comment

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

A bit of semi-unrelated commentary on the metrics that I happened to notice.

Copy link
Member

Choose a reason for hiding this comment

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

This cleanup is not directly related to the rest of the PR, right? (It's okay, just trying to make sure I understand.)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I realized when I wired these metrics into the engine that I was using the wrong type for status.

internal/engine/metrics.go Outdated Show resolved Hide resolved
@dmjb dmjb force-pushed the wire-up-history-logs branch 3 times, most recently from eaf5228 to 6268bde Compare June 25, 2024 08:56
This PR wires the eval history service into the evaluation engine. It is
gated behind a feature flag while we experiment with it. A follow on PR
will add logging for remediation and alerting.

Relates to #3556
@coveralls
Copy link

Coverage Status

coverage: 52.495% (+0.06%) from 52.432%
when pulling b6d11cb on wire-up-history-logs
into 98373ad on main.

@coveralls
Copy link

Coverage Status

coverage: 52.486% (+0.05%) from 52.432%
when pulling a1d2120 on wire-up-history-logs
into 98373ad on main.

Comment on lines -153 to +166
RuleEvalID: id,
RuleEvalID: evalID,
Copy link
Member

Choose a reason for hiding this comment

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

I suppose it's intended but why did we switched from one to another?

@dmjb dmjb merged commit cae4b26 into main Jun 26, 2024
21 checks passed
@dmjb dmjb deleted the wire-up-history-logs branch June 26, 2024 07:45
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.

4 participants