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

FlexMeasures / flexmeasures / 38387024987
87%

Build:
DEFAULT BRANCH: main
Ran 13 Oct 2026 11:08AM UTC
Jobs 1
Files 192
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

13 Oct 2026 10:58AM UTC coverage: 86.653% (+0.01%) from 86.639%
38387024987

push

github

web-flow
Log who hit a rate limit, and which triggers spent the budget (#2678)

* Log who hit a rate limit, and which triggers spent the budget

A budget is shared by everyone it counts, so a 429 alone does not tell a host which integration used it up.
Each refused request is now logged as a warning, naming the limit and its value, the account and user (or IP address), the endpoint and, for the trigger limit, the asset.
Each counted trigger is logged at debug level, with the same details.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MSo5u94LjgXLeMJ51Pja39
Signed-off-by: F.N. Claessen <claessen@seita.nl>

* Changelog: log who hit a rate limit

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MSo5u94LjgXLeMJ51Pja39
Signed-off-by: F.N. Claessen <claessen@seita.nl>

* Docs: refusal warnings need LOGGING_LEVEL at WARNING or lower, which production servers are not by default

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MSo5u94LjgXLeMJ51Pja39
Signed-off-by: F.N. Claessen <claessen@seita.nl>

* remove extra logging import

Signed-off-by: Nicolas Höning <nicolas@seita.nl>

* restore util function that was deleted in b04bf9f01 (#2679) as we still use it here; also added a light-weight test for it

Signed-off-by: Nicolas Höning <nicolas@seita.nl>

* api/v3_0/tests: restore rate limit plans after tests

Context:
- The module shares account rows, and an unlimited plan leaked into later logging tests.

Change:
- Restore the original plan after each test that assigns a plan to the shared account.

* api/rate-limiting: audit account budget breaches once per window

Context:
- Accounts need a durable signal when their shared API or trigger budget is exhausted.

Change:
- Record one account audit entry per limit window with the plan, effective limit, and elapsed time.
- Keep deduplication in limiter sto... (continued)

72 of 79 new or added lines in 2 files covered. (91.14%)

21490 of 24800 relevant lines covered (86.65%)

0.87 hits per line

Uncovered Changes

Lines Coverage ∆ File
7
94.34
-3.22% flexmeasures/api/common/rate_limiting.py
Jobs
ID Job ID Ran Files Coverage
1 38387024987.1 13 Oct 2026 11:08AM UTC 192
86.65
GitHub Action Run
Source Files on build 38387024987
  • Tree
  • List 192
  • Changed 2
  • Source Changed 2
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #38387024987
  • e8fa0dc2 on github
  • Prev Build on main (#38236066248)
  • Next Build on main (#38698135721)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc