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

FlexMeasures / flexmeasures / 35036966808
85%
main: 86%

Build:
Build:
LAST BUILD BRANCH: feat/logout-via-post
DEFAULT BRANCH: main
Ran 15 Sep 2026 11:53PM UTC
Jobs 1
Files 182
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

15 Sep 2026 11:41PM UTC coverage: 84.979% (+0.003%) from 84.976%
35036966808

push

github

BelhsanHmida
Log one line when the CLI rejects an option value

A reporting cron job stopped producing data, and the log file the wrapper
script writes held no trace of why. The command had a stray --start, which
swallowed the option that followed it as its value, and Click rejected that
as a datetime. Click reports such errors on stderr alone, while the script
redirected only stdout, so nothing was recorded.

FlexMeasures configures a rotating file handler of its own, but an
invocation that fails while parsing its options never reaches any code that
logs, so that file stays silent too. The same goes for latest_task_runs,
which is filled by a decorator around the command body.

Add LoggedClickExceptionCommand, which logs one ERROR line naming the
command and the message Click would print, and re-raises so that Click's
own output and its exit code are unchanged. One line, rather than the usage
block, keeps a repeatedly failing cron job from filling the log.

Applied to `flexmeasures add report` for now, which is the command this was
found on.

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

17 of 19 new or added lines in 2 files covered. (89.47%)

18477 of 21743 relevant lines covered (84.98%)

0.85 hits per line

Uncovered Changes

Lines Coverage ∆ File
2
83.71
0.46% flexmeasures/cli/utils.py
Jobs
ID Job ID Ran Files Coverage
1 35036966808.1 15 Sep 2026 11:53PM UTC 182
84.98
GitHub Action Run
Source Files on build 35036966808
  • Tree
  • List 182
  • Changed 2
  • Source Changed 2
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #35036966808
  • ca56dd06 on github
  • Prev Build on main (#34245198400)
  • Next Build on fix/log-cli-click-errors (#35037523137)
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