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

FlexMeasures / flexmeasures / 30827085192
83%
main: 84%

Build:
Build:
LAST BUILD BRANCH: feat/internal-commodity-balance
DEFAULT BRANCH: main
Ran 03 Aug 2026 03:35PM UTC
Jobs 1
Files 173
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

03 Aug 2026 03:21PM UTC coverage: 83.464% (-0.002%) from 83.466%
30827085192

Pull #2382

github

Flix6x
Address review: install the trigger from the metadata, and fix stale docstrings

The trigger DDL was attached to timed_belief's own after_create,
but the function it installs refers to sensor_data_source,
and nothing orders that table's creation relative to timed_belief's.

The failure this could cause is narrower than it looks:
plpgsql resolves table references lazily,
so creating the function and trigger succeeds even when the referenced table does not
exist yet, which is why the tests passed.
Verified that directly against PostgreSQL rather than assuming it.
But relying on late binding is a fragile reason for it to work --
a function written in plain SQL would be bound eagerly and fail --
so move the listener to the metadata, where it runs once every table exists.

Doing so needed the DDL to become a small Python listener rather than a DDL object,
because guarding it in SQL would mean nesting dollar-quoted bodies inside a DO block.
The listener skips quietly unless both tables are present,
so a partial create_all does not break.

Also fix two docstrings that still described the old implementation.
Sensor.data_sources claimed to scale by not fetching every belief row,
which stopped being how it works;
and search_data_sources had no note that where its answer comes from now depends on
whether time filters are given, which is the one thing a caller needs to know.

flexmeasures/data: 256 passed.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Signed-off-by: F.N. Claessen <felix@seita.nl>
Pull Request #2382: Summarise which sources recorded for which sensors

19 of 22 new or added lines in 2 files covered. (86.36%)

35 existing lines in 2 files now uncovered.

16611 of 19902 relevant lines covered (83.46%)

0.83 hits per line

Uncovered Changes

Lines Coverage ∆ File
2
87.7
-0.17% flexmeasures/data/models/time_series.py
1
88.99
-0.2% flexmeasures/data/models/data_sources.py

Coverage Regressions

Lines Coverage ∆ File
22
88.99
-0.2% flexmeasures/data/models/data_sources.py
13
87.7
-0.17% flexmeasures/data/models/time_series.py
Jobs
ID Job ID Ran Files Coverage
1 30827085192.1 03 Aug 2026 03:35PM UTC 173
83.46
GitHub Action Run
Source Files on build 30827085192
  • Tree
  • List 173
  • Changed 2
  • Source Changed 2
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #30827085192
  • Pull Request #2382
  • PR Base - feat/timed-belief-pk-column-order (#30823606127)
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