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

FlexMeasures / flexmeasures / 24054410246
78%
main: 81%

Build:
Build:
LAST BUILD BRANCH: chore/upgrade-dependencies-after-v0.33
DEFAULT BRANCH: main
Ran 07 Apr 2026 08:29AM UTC
Jobs 1
Files 163
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

06 Apr 2026 10:30PM UTC coverage: 77.853% (+0.06%) from 77.794%
24054410246

Pull #1985

github

web-flow
fix: add max-size (1000) and time-bucket key to sensor stats cache

- Include round(time.time() / 120) in the cache key so at most one DB hit
  per sensor per 120-second window is possible; this also caps the number
  of unique keys an attacker can create to 1 per sensor per bucket, limiting
  cache-exhaustion risk.
- Cap the dict at _SENSOR_STATS_MAX_SIZE=1000 entries; when full, the oldest
  entry (FIFO insertion order) is evicted before inserting a new one.
- Empty results are still never cached (freshly-uploaded data always visible).
- Removes the explicit (populated_at, result) tuple -- TTL is now implicit in
  the bucket component of the key, so only the result dict is stored.

Agent-Logs-Url: https://github.com/FlexMeasures/flexmeasures/sessions/7bbceb3b-247e-489d-b0d5-498be80cd12f

Co-authored-by: nhoening <1042336+nhoening@users.noreply.github.com>
Pull Request #1985: Add "Create forecast" button to sensor page

34 of 37 new or added lines in 5 files covered. (91.89%)

11604 of 14905 relevant lines covered (77.85%)

0.78 hits per line

Uncovered Changes

Lines Coverage ∆ File
2
91.57
-1.77% flexmeasures/data/models/forecasting/utils.py
1
82.55
0.19% flexmeasures/data/services/sensors.py
Jobs
ID Job ID Ran Files Coverage
1 24054410246.1 07 Apr 2026 08:29AM UTC 163
77.85
GitHub Action Run
Source Files on build 24054410246
  • Tree
  • List 163
  • Changed 9
  • Source Changed 7
  • Coverage Changed 8
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #24054410246
  • Pull Request #1985
  • PR Base - main (#23806253080)
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