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

FlexMeasures / flexmeasures / 28866635409
81%
main: 83%

Build:
Build:
LAST BUILD BRANCH: feat/sensor-scoped-commitments
DEFAULT BRANCH: main
Ran 07 Jul 2026 12:50PM UTC
Jobs 1
Files 166
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

07 Jul 2026 12:37PM UTC coverage: 80.671% (-0.05%) from 80.718%
28866635409

Pull #1946

github

web-flow
Feat: Support shared storage (multi‑feed stock) (#2001)

* feat: add stock-id field in Storage and DB flex model schemas

Signed-off-by: Ahmad-Wahid <ahmedwahid16101@gmail.com>

* feat: build stock groups

Signed-off-by: Ahmad-Wahid <ahmedwahid16101@gmail.com>

* feat: get stock groups

Signed-off-by: Ahmad-Wahid <ahmedwahid16101@gmail.com>

* feat: add a test case for multi feed stock

Signed-off-by: Ahmad-Wahid <ahmedwahid16101@gmail.com>

* feat: add support for shared storage

Signed-off-by: Ahmad-Wahid <ahmedwahid16101@gmail.com>

* remove the breakpoint

Signed-off-by: Ahmad-Wahid <ahmedwahid16101@gmail.com>

* feat: update the test case for two devices with shared stock

Signed-off-by: Ahmad-Wahid <ahmedwahid16101@gmail.com>

* feat: add assertions with clear reasons

Signed-off-by: Ahmad-Wahid <ahmedwahid16101@gmail.com>

* Add support for multi-device charging of shared storage

Introduce stock_groups mapping to link multiple devices to a shared SOC.

Aggregate stock delta across devices sharing the same battery.

Update stock change calculation to use combined device flows.

Add device-to-group and group-to-devices lookup for efficient shared stock computation.

Signed-off-by: Ahmad-Wahid <ahmedwahid16101@gmail.com>

* fix: sum all devices soc contribution, and use individual device efficiencies

Signed-off-by: Ahmad-Wahid <ahmedwahid16101@gmail.com>

* update test case for multi feed stock

Signed-off-by: Ahmad-Wahid <ahmedwahid16101@gmail.com>

* expect to charge the battery early to see the effect of fully discharge

Signed-off-by: Ahmad-Wahid <ahmedwahid16101@gmail.com>

* fix: update the assert statements according to the scheduler results

Signed-off-by: Ahmad-Wahid <ahmedwahid16101@gmail.com>

* dev: first step in resolving merge conflicts

Signed-off-by: F.N. Claessen <claessen@seita.nl>

* chore: code annotation

Signed-off-by: F.N. Claessen <claessen@seita.nl>

* fix: not all flex-models have sensors

Signed-off-by: F.N. Claessen <... (continued)
Pull Request #1946: Add multi‑commodity support to device scheduler

466 of 504 new or added lines in 12 files covered. (92.46%)

41 existing lines in 5 files now uncovered.

13464 of 16690 relevant lines covered (80.67%)

0.81 hits per line

Uncovered Changes

Lines Coverage ∆ File
17
88.47
0.66% flexmeasures/data/models/planning/storage.py
11
84.36
-2.86% flexmeasures/data/models/planning/__init__.py
5
93.38
0.32% flexmeasures/data/schemas/scheduling/__init__.py
3
89.39
0.92% flexmeasures/data/models/planning/linear_optimization.py
1
76.19
-16.77% flexmeasures/data/schemas/scheduling/storage.py
1
74.56
0.98% flexmeasures/utils/coding_utils.py

Coverage Regressions

Lines Coverage ∆ File
31
76.19
-16.77% flexmeasures/data/schemas/scheduling/storage.py
5
88.24
-9.68% flexmeasures/api/common/schemas/utils.py
3
84.36
-2.86% flexmeasures/data/models/planning/__init__.py
1
89.39
0.92% flexmeasures/data/models/planning/linear_optimization.py
1
93.38
0.32% flexmeasures/data/schemas/scheduling/__init__.py
Jobs
ID Job ID Ran Files Coverage
1 28866635409.1 07 Jul 2026 12:50PM UTC 166
80.67
GitHub Action Run
Source Files on build 28866635409
  • Tree
  • List 166
  • Changed 12
  • Source Changed 12
  • Coverage Changed 11
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #28866635409
  • Pull Request #1946
  • PR Base - main (#26874074045)
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