Skip to content

Update component graph to v0.5.0#113

Merged
shsms merged 3 commits into
frequenz-floss:v0.4.xfrom
shsms:update-component-graph-0.5-v0.4.x
Jul 21, 2026
Merged

Update component graph to v0.5.0#113
shsms merged 3 commits into
frequenz-floss:v0.4.xfrom
shsms:update-component-graph-0.5-v0.4.x

Conversation

@shsms

@shsms shsms commented Jul 21, 2026

Copy link
Copy Markdown
Collaborator

This updates the microgrid component graph library to v0.5.0 on the v0.4.x line, adopting its rewritten formula fallback engine and new component-first source order.

Changes

  • Bump frequenz-microgrid-component-graph to >= 0.5.0, < 0.6, and frequenz-client-assets to >= 0.3.1 (v0.5.0 references the SteamBoiler component added there).
  • The generated per-category formulas change: component reading first, meter as fallback (the opposite of the old order), and formulas can now use meter subtraction as a fallback term.
  • Pull the render-graph extra into dev-pytest, so mypy checks _render_graph.py and the renderer tests actually run (they were silently skipped before).
  • Reset RELEASE_NOTES.md (the previous notes shipped with v0.4.3) and document the update.

shsms added 3 commits July 21, 2026 09:48
The notes still described the v0.4.3 release, which has shipped. Reset
them from the template so this cycle starts clean.

Signed-off-by: Sahas Subramanian <sahas.subramanian@proton.me>
dev-pytest did not pull the render-graph extra, so matplotlib and
networkx were missing. mypy could not find the matplotlib stubs and
failed on _render_graph.py, and pytest skipped tests/test_render_graph.py,
so its tests never ran.

Pull the render-graph extra in dev-pytest so both cover the renderer.

Signed-off-by: Sahas Subramanian <sahas.subramanian@proton.me>
v0.5.0 rewrites the formula fallback engine and flips the default of
prefer_meters_in_component_formulas to False. The per-category formulas
now read the component first and use the meter as the fallback, and they
can now use meter subtraction as a fallback term. We take the new
default, which changes the generated per-category formulas.

v0.5.0 also references the SteamBoiler component, which was added in
frequenz-client-assets 0.3.1, so bump that lower bound too.

The test graph only has a solar inverter, so the pinned pv formula
flips its expected order.

Ported from update-component-graph-0.5 on the v0.x.x line. The config
knob and CLI flag that let callers keep the meter-first order are not
part of this port.

Signed-off-by: Sahas Subramanian <sahas.subramanian@proton.me>
@shsms
shsms requested review from a team as code owners July 21, 2026 10:01
@shsms
shsms requested review from florian-wagner-frequenz and micaebe and removed request for a team July 21, 2026 10:01
@github-actions github-actions Bot added part:docs Affects the documentation part:tests Affects the unit, integration and performance (benchmarks) tests part:tooling Affects the development tooling (CI, deployment, dependency management, etc.) labels Jul 21, 2026
@shsms
shsms merged commit 455e7cd into frequenz-floss:v0.4.x Jul 21, 2026
9 checks passed
@shsms
shsms deleted the update-component-graph-0.5-v0.4.x branch July 21, 2026 10:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

part:docs Affects the documentation part:tests Affects the unit, integration and performance (benchmarks) tests part:tooling Affects the development tooling (CI, deployment, dependency management, etc.)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants