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

FlexMeasures / flexmeasures / 28945563950
81%

Build:
DEFAULT BRANCH: main
Ran 08 Jul 2026 01:29PM UTC
Jobs 1
Files 168
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

08 Jul 2026 01:16PM UTC coverage: 81.212% (+0.1%) from 81.08%
28945563950

push

github

web-flow
Add soft constraint analysis (unresolved/resolved SoC constraints) to scheduling job results (#2072)

* Initial plan

* feat: compute first unmet soc-minima/soc-maxima targets in storage scheduler

- Add SchedulingJobResult dataclass (JSON-serializable) to store job results
- Modify _build_soc_schedule to also return per-device MWh SoC schedules,
  including for devices with soc-minima/soc-maxima constraints but no SoC sensor
- Add _compute_unresolved_targets to find the first violated soc-minima/soc-maxima
- StorageScheduler.compute() now includes scheduling_result in return_multiple output
- make_schedule() stores SchedulingJobResult in rq_job.meta["scheduling_result"]
- get_schedule API endpoint returns scheduling_result next to scheduler_info
- Document that soc-targets are hard constraints (not reported in unresolved_targets)
- Add tests: test_unresolved_targets_soc_minima and test_unresolved_targets_none_when_met
- Add changelog entry for PR #2072

Agent-Logs-Url: https://github.com/FlexMeasures/flexmeasures/sessions/710e6bc9-87d9-4238-9c3f-c79a445aff3e

Co-authored-by: Flix6x <30658763+Flix6x@users.noreply.github.com>

* refactor: address code review comments on unresolved targets feature

- Add docstring to SchedulingJobResult.unresolved_targets documenting the dict structure
- Rename has_soc_constraints to has_soc_minima_maxima for clarity
- Move SchedulingJobResult import to module level in storage.py
- Use self.round_to_decimals for delta precision (defaults to 6)
- Return None (not {}) from get_schedule when scheduling_result not in job meta
- Mark scheduling_result as nullable in OpenAPI schema
- Improve test docstring to clarify efficiency assumptions

Agent-Logs-Url: https://github.com/FlexMeasures/flexmeasures/sessions/710e6bc9-87d9-4238-9c3f-c79a445aff3e

Co-authored-by: Flix6x <30658763+Flix6x@users.noreply.github.com>

* fix: address coordinator findings in unresolved targets feature

- Fix multi-device ordering bug: now finds earli... (continued)

97 of 101 new or added lines in 6 files covered. (96.04%)

13858 of 17064 relevant lines covered (81.21%)

0.81 hits per line

Uncovered Changes

Lines Coverage ∆ File
3
90.78
2.0% flexmeasures/data/models/planning/storage.py
1
90.91
flexmeasures/data/services/scheduling_result.py
Jobs
ID Job ID Ran Files Coverage
1 28945563950.1 08 Jul 2026 01:29PM UTC 168
81.21
GitHub Action Run
Source Files on build 28945563950
  • Tree
  • List 168
  • Changed 5
  • Source Changed 5
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #28945563950
  • a737210c on github
  • Prev Build on main (#28826943174)
  • Next Build on main (#28956729277)
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