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

eterna2 / kest / 24286529711
92%

Build:
DEFAULT BRANCH: main
Ran 11 Apr 2026 04:22PM UTC
Jobs 1
Files 53
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

11 Apr 2026 04:20PM UTC coverage: 90.965% (+0.003%) from 90.962%
24286529711

push

github

web-flow
⚡ [performance] optimize Rego package parsing in RegoLocalEngine (#33)

Replaced the line-splitting loop in `RegoLocalEngine._parse_package` with a pre-compiled regular expression. `splitlines()` and iterating through every line to find the package declaration is inefficient, especially for large Rego source files. A regex search is faster and more direct.

Measured improvements:
- Small Source: ~14% improvement
- Large Source: ~29% improvement

The implementation uses `re.search` with `re.MULTILINE` to find the package declaration efficiently while maintaining full functional parity with the original `strip()`-based logic.

Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
Co-authored-by: eterna2 <1248825+eterna2@users.noreply.github.com>

2789 of 3066 relevant lines covered (90.97%)

0.91 hits per line

Coverage Regressions

Lines Coverage ∆ File
32
75.97
0.09% engine.py
Jobs
ID Job ID Ran Files Coverage
1 24286529711.1 11 Apr 2026 04:22PM UTC 53
90.97
GitHub Action Run
Source Files on build 24286529711
  • Tree
  • List 53
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #24286529711
  • 0e6eadb3 on github
  • Prev Build on main (#24286294412)
  • Next Build on main (#24287005017)
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