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

FlexMeasures / flexmeasures-client / 33997113812
97%

Build:
DEFAULT BRANCH: main
Ran 05 Sep 2026 10:53PM UTC
Jobs 10
Files 6
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

05 Sep 2026 10:52PM UTC coverage: 96.824% (+0.2%) from 96.658%
33997113812

push

github

web-flow
Feat/integrate reporting endpoints & use in HEMS script (#224)

* feat(client): add job failure and timeout exceptions

Background jobs polled via the generic jobs API can end in a failed
terminal state or never reach one at all. Give both cases a dedicated
exception so callers can tell them apart from transport errors.

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

* feat(client): poll background jobs via the generic jobs API

Add get_job_status() for a single lookup of GET /api/v3_0/jobs/<uuid>,
and wait_for_job() to poll one until it reaches a terminal state, with
exponential backoff capped at max_polling_interval and a total timeout
budget.

Failed jobs raise JobFailedError carrying the server's message and
traceback, so callers get something actionable instead of a bare status.

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

* feat(client): trigger one-off reports over the asset API

Add trigger_report(), posting to POST /assets/<id>/reports/trigger and
returning the queued job UUID, plus trigger_and_await_report() which
chains it with wait_for_job().

The endpoint lands in FlexMeasures v1.1.0, so a 404 from an older server
is reported as a version problem pointing at the CLI fallback.

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

* test(client): cover report triggering and job polling

Assert the exact request bodies sent to the trigger endpoint, that
polling walks through QUEUED/DEFERRED/STARTED before returning a
finished job, and that failed, stopped, canceled and never-finishing
jobs each raise the right error.

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

* refactor(hems): drive reports over the API instead of the CLI

Replace run_report_cmd() and its subprocess call with an async
run_report() that triggers the report on the asset owning its output
sensors and waits for the job.

Parameters are now built in memory rather than written to
configs/... (continued)

118 of 121 new or added lines in 4 files covered. (97.52%)

1 existing line in 1 file now uncovered.

823 of 850 relevant lines covered (96.82%)

9.68 hits per line

Uncovered Changes

Lines Coverage ∆ File
3
96.44
0.13% src/flexmeasures_client/client.py

Coverage Regressions

Lines Coverage ∆ File
1
96.44
0.13% src/flexmeasures_client/client.py
Jobs
ID Job ID Ran Files Coverage
1 ubuntu-latest - py3.14 - 33997113812.1 05 Sep 2026 10:53PM UTC 6
96.82
GitHub Action Run
2 ubuntu-latest - py3.11 - 33997113812.2 05 Sep 2026 10:53PM UTC 6
96.82
GitHub Action Run
3 ubuntu-latest - py3.10 - 33997113812.3 05 Sep 2026 10:53PM UTC 6
96.82
GitHub Action Run
4 macos-latest - py3.11 - 33997113812.4 05 Sep 2026 10:53PM UTC 6
96.82
GitHub Action Run
5 macos-latest - py3.10 - 33997113812.5 05 Sep 2026 10:53PM UTC 6
96.82
GitHub Action Run
6 macos-latest - py3.12 - 33997113812.6 05 Sep 2026 10:53PM UTC 6
96.82
GitHub Action Run
7 macos-latest - py3.14 - 33997113812.7 05 Sep 2026 10:53PM UTC 6
96.82
GitHub Action Run
8 ubuntu-latest - py3.12 - 33997113812.8 05 Sep 2026 10:53PM UTC 6
96.82
GitHub Action Run
9 macos-latest - py3.13 - 33997113812.9 05 Sep 2026 10:53PM UTC 6
96.82
GitHub Action Run
10 ubuntu-latest - py3.13 - 33997113812.10 05 Sep 2026 10:53PM UTC 6
96.82
GitHub Action Run
Source Files on build 33997113812
  • Tree
  • List 6
  • Changed 3
  • Source Changed 3
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #33997113812
  • 639a8814 on github
  • Prev Build on main (#33455019077)
  • Delete
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