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

FlexMeasures / flexmeasures / 35152602228
86%

Build:
DEFAULT BRANCH: main
Ran 16 Sep 2026 09:41PM UTC
Jobs 1
Files 183
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

16 Sep 2026 09:28PM UTC coverage: 85.602% (+0.03%) from 85.57%
35152602228

push

github

web-flow
Add `flexmeasures show automations` to list and inspect automations (#2533)

* Add `flexmeasures show automations` to list and inspect automations

The CLI could create, edit, delete and run automations, but not show them,
so the ID which `edit automation`, `delete automation` and `jobs run-automation`
expect had to be looked up in the UI, the API or the database.

Without --id, all automations are listed, inactive ones included.
With --id, one automation is shown in more detail: its recurrence in words,
its timezone, cursor, data generator, parameters, and the sensors it reads
from and writes to. An automation whose sensors no longer resolve still shows
its other details, which are often what is needed to work out why they do not.

Closes #2529

Signed-off-by: Mohamed Belhsan Hmida <mohamedbelhsanhmida@gmail.com>

* docs/changelog: record `flexmeasures show automations`

Signed-off-by: Mohamed Belhsan Hmida <mohamedbelhsanhmida@gmail.com>

* Address review: eager-load assets, name the automation, and pin down the cells

Listing automations dereferenced each automation's asset for the table's
Asset column, which the lazy relationship turned into a query per asset.
The rows now load their asset with them.

A schedule automation's `AutomationSensorsUnknown` message names its asset
rather than itself, so printing it bare did not say which automation broke
when an asset carries several. The command now names the automation.

Two assertions could not fail: the Type cell was checked by substring
against a whole row, which the automation's own name ("Day-ahead PV
forecasts") already satisfied, and no test created more than one
automation, so the listing's promised order by asset and then by ID was
never exercised. The listing cells are now read by column, and a new test
creates three automations across two assets, out of order.

The type test now creates a real scheduling automation rather than writing
an unsupported type onto a forecasting one, and the deta... (continued)

37 of 37 new or added lines in 1 file covered. (100.0%)

19252 of 22490 relevant lines covered (85.6%)

0.86 hits per line

Jobs
ID Job ID Ran Files Coverage
1 35152602228.1 16 Sep 2026 09:41PM UTC 183
85.6
GitHub Action Run
Source Files on build 35152602228
  • Tree
  • List 183
  • Changed 2
  • Source Changed 1
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #35152602228
  • e7340254 on github
  • Prev Build on main (#35149948841)
  • Next Build on main (#35155157209)
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