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

FlexMeasures / flexmeasures / 39306731112
87%

Build:
DEFAULT BRANCH: main
Ran 19 Oct 2026 07:06PM UTC
Jobs 1
Files 194
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

19 Oct 2026 06:56PM UTC coverage: 86.782% (-0.02%) from 86.801%
39306731112

push

github

web-flow
Hand the trained model to the prediction in memory, keeping a file only when asked (#2701)

* forecasting: hand the trained model to the prediction in memory

Context:
- #2111 and #2683: every forecast cycle pickled its trained model to a
  folder, only for the prediction to read it back in the same job a moment
  later, and nothing in production deleted it. A model can be hundreds of MB
  (589 MB for 12 files in one development checkout), the default folder was
  relative to the worker's working directory, and two runs for the same
  sensor shared file names. #2479's parallel training uses threads, so no
  model crosses a process boundary through the file.

Change:
- TrainPipeline.run returns the trained model, and PredictPipeline accepts
  it, reading a model file only when none is handed over.
- model-save-dir defaults to None: a model is kept as a file only when it is
  given, as an explicit request.
- Deleting a kept model after prediction still works, and is skipped when
  no file was kept.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: F.N. Claessen <claessen@seita.nl>

* forecasting/tests: pin a forecast keeping its model only when asked

Context:
- #2111.

Change:
- A forecast run from an empty working directory makes its forecasts and
  writes no model file anywhere; given a model-save-dir, it keeps one model
  per cycle there, which can be read back. On main, the first case fails:
  two model files appear under the working directory.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: F.N. Claessen <claessen@seita.nl>

* changelog: forecasts keep no model file unless asked

Context:
- #2111, #2683.

Change:
- Infrastructure entry for #2701, telling hosts the old artifacts folder can
  be deleted, and a CLI changelog entry for --model-save-dir.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: F.N. Claessen <claessen@seita.nl>

* forecasting: type the model handed from traini... (continued)

13 of 15 new or added lines in 4 files covered. (86.67%)

6 existing lines in 2 files now uncovered.

22105 of 25472 relevant lines covered (86.78%)

0.87 hits per line

Uncovered Changes

Lines Coverage ∆ File
2
90.29
-6.62% flexmeasures/data/models/forecasting/pipelines/predict.py

Coverage Regressions

Lines Coverage ∆ File
5
90.29
-6.62% flexmeasures/data/models/forecasting/pipelines/predict.py
1
93.58
0.0% flexmeasures/data/services/forecasting.py
Jobs
ID Job ID Ran Files Coverage
1 39306731112.1 19 Oct 2026 07:06PM UTC 194
86.78
GitHub Action Run
Source Files on build 39306731112
  • Tree
  • List 194
  • Changed 6
  • Source Changed 6
  • Coverage Changed 5
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #39306731112
  • 5c95bbe0 on github
  • Prev Build on main (#39277721271)
  • Next Build on main (#39314076735)
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