• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

stacklok / minder / 10453673588 / 1
53%
main: 53%

Build:
DEFAULT BRANCH: main
Ran 19 Aug 2024 12:56PM UTC
Files 232
Run time 5s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

19 Aug 2024 12:48PM UTC coverage: 53.861% (-0.02%) from 53.884%
10453673588.1

push

github

web-flow
Use nil evaluation state if there is no previous evaluation (#4197)

The rule engine has a copy of the previous evaluation state as part of
its context. Prior to this PR, if there is no previous state for a
rule/entity pair, an empty struct would be passed around. This requires
each part of the code which uses the previous state (particularly
remediations and alerts) to test if the fields in the state struct are
the default value. This problem was highlighted in PR #4089 when the
types of some the fields changed, requiring the code to be changed to
have different default checks.

This PR changes the logic so that a nil pointer is returned if there is
no existing state. This makes the check for a lack of previous state to
be consistent irrespective of the fields needed or their type.

@rdimitrov ran smoke tests locally to validate.

12792 of 23750 relevant lines covered (53.86%)

45.81 hits per line

Source Files on job 10453673588.1
  • Tree
  • List 0
  • Changed 15
  • Source Changed 6
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 10453673588
  • bf3ccbfe on github
  • Prev Job for on main (#10452700655.1)
  • Next Job for on main (#10455079546.1)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc