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

FlexMeasures / flexmeasures / 29186925729
81%
main: 81%

Build:
Build:
LAST BUILD BRANCH: fix/latest-task-run-timestamp
DEFAULT BRANCH: main
Ran 12 Jul 2026 09:22AM 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

12 Jul 2026 09:02AM UTC coverage: 81.346%. Remained the same
29186925729

Pull #2304

github

Flix6x
fix: stamp LatestTaskRun at insertion time, not at import time

The column default was written as default=datetime.now(timezone.utc), which
evaluates the call once, when the module is imported. Every task run created
without an explicit datetime was therefore stamped with the time the process
started. Both production call sites happen to overwrite .datetime right
after, so the impact was latent, but the default was still wrong (and made
test_api_task_run_get_recent_entry fail depending on how long the test
session had been running).

Pass a callable instead, so the default is evaluated per insertion.

Fixes #2302

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Rbix8k1JfeUWNXEmHEZVpX
Pull Request #2304: Stamp LatestTaskRun at insertion time, not at import time (follow-up to #2303)

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

14369 of 17664 relevant lines covered (81.35%)

0.81 hits per line

Jobs
ID Job ID Ran Files Coverage
1 29186925729.1 12 Jul 2026 09:22AM UTC 168
81.35
GitHub Action Run
Source Files on build 29186925729
  • Tree
  • List 168
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #29186925729
  • Pull Request #2304
  • PR Base - main (#29184777448)
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