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

FlexMeasures / flexmeasures / 39270726996
87%

Build:
DEFAULT BRANCH: main
Ran 19 Oct 2026 02:47PM UTC
Jobs 1
Files 194
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

19 Oct 2026 02:38PM UTC coverage: 86.797% (+0.02%) from 86.781%
39270726996

push

github

web-flow
Fetch the UI's libraries in the background, so hosts need not run a command after each upgrade (#2746)

* feat!: serve UI assets from FlexMeasures, not CDNs

Loading them from CDNs breaks the UI on poor or no internet connections. FlexMeasures moved to CDNs in #21 as a small speed tweak, to be revisited if CDNs ever failed.

BREAKING CHANGE: FLEXMEASURES_JS_VERSIONS no longer has a default and is ignored, so plugins must read the js_versions template variable or flexmeasures.ui.utils.vendor_versions.JS_VERSIONS instead.

Refs #18

Signed-off-by: Stijn van Houwelingen <teadrinkingprogrammer@proton.me>

* feat: serve asset type icons locally

Signed-off-by: Stijn van Houwelingen <teadrinkingprogrammer@proton.me>

* docs: link PR #2711 in the changelog entry

Signed-off-by: Stijn van Houwelingen <teadrinkingprogrammer@proton.me>

* Keep the asset type icons apart from the vendored libraries, with their licences

The icons have no fixed release to fetch from, as Iconify renders them on request, so they stay committed under static/icons/.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019bawYg67N5T5csiFdwWgZ1
Signed-off-by: F.N. Claessen <felix@seita.nl>

* Load the UI's libraries from CDNs unless fetched, from a manifest of their files and hashes

Instead of committing ~5 MB of third-party files, record each library's version, files and SHA-256 hashes in flexmeasures/ui/utils/vendor_assets.py.
Running python -m flexmeasures.ui.utils.fetch_vendor_assets downloads them, with their licences, and checks each file against its hash.
Fetched files are served by FlexMeasures, and files that were not fetched load from their CDN, with the recorded hash as the tag's integrity attribute.
Fonts and images which flexmeasures.css referred to move into the vendor.html macros, since a static stylesheet cannot tell whether they were fetched.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: htt... (continued)

46 of 48 new or added lines in 3 files covered. (95.83%)

22095 of 25456 relevant lines covered (86.8%)

0.87 hits per line

Uncovered Changes

Lines Coverage ∆ File
2
94.67
-0.66% flexmeasures/ui/utils/vendor_assets.py
Jobs
ID Job ID Ran Files Coverage
1 39270726996.1 19 Oct 2026 02:47PM UTC 194
86.8
GitHub Action Run
Source Files on build 39270726996
  • Tree
  • List 194
  • Changed 3
  • Source Changed 3
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #39270726996
  • f6f93a9f on github
  • Prev Build on main (#39270273045)
  • Next Build on main (#39277721271)
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