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

stacklok / minder / 9975725330
53%

Build:
DEFAULT BRANCH: main
Ran 17 Jul 2024 02:11PM UTC
Jobs 1
Files 215
Run time 1min
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

17 Jul 2024 02:04PM UTC coverage: 54.393% (+0.08%) from 54.311%
9975725330

push

github

web-flow
Fix potential race condition in rule type engine cache (#3918)

This addresses a potential race condition I discovered while working on
another task. If a rule instance with a new rule type is added to a
profile after the rule type cache is populated, but before the profiles
and rule instances are queried, the evaluation will fail because the new
rule type will be missing from the cache.

This changes the logic to query for rule types which are not found in
the cache, and create a new rule type engine instance and cache it if we
get a result.

*Alternatives Considered*

I could simplify this to remove the pre-population and query the
database for each rule type when we encounter it first. This would
simplify the logic, but at the expense of throwing away the performance
gains from loading most of the rules we need in one query.

29 of 32 new or added lines in 3 files covered. (90.63%)

12115 of 22273 relevant lines covered (54.39%)

47.9 hits per line

Jobs
ID Job ID Ran Files Coverage
1 9975725330.1 17 Jul 2024 02:11PM UTC 0
54.39
GitHub Action Run
Source Files on build 9975725330
Detailed source file information is not available for this build.
  • Back to Repo
  • Github Actions Build #9975725330
  • 8a27510a on github
  • Prev Build on main (#9973418720)
  • Next Build on main (#9986591407)
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