Skip to content

fix(drivers): bundle ferroamp 2.2.0 and the SolarEdge serial retry - #2176

Merged
frahlg merged 1 commit into
masterfrom
driver-pin-ferroamp-solaredge
Dec 4, 2026
Merged

frahlg merged 1 commit into
masterfrom
driver-pin-ferroamp-solaredge

Conversation

@frahlg

@frahlg frahlg commented Dec 4, 2026

Copy link
Copy Markdown
Member

Change

Moves the driver pin to srcfl/device-drivers 5eb7189d.

Core changes

  • Planner PV curtailment accepts only reviewed Ferroamp source hashes (go/internal/drivers/pv_generation_limit.go). The curtail and curtail_disable paths and every pplim line in 2.2.0 are unchanged from 2.1.2, so its hash joins the list.
  • forecastReviewedRelease in go/cmd/ftw/forecast_release_evidence.go lists neither the old nor the new versions of these drivers. This PR leaves it as it was.
  • Two Core tests run the new Ferroamp behaviour under Core's Lua 5.1. Both fail on 2.1.2 and pass on 2.2.0:
    • TestFerroampCapsAtEHubLimitLearnedFromRefusal
    • TestFerroampMeasuredScaleCoversStuckESO
      They found a tonumber() call that Lua 5.5 in the driver rig accepts and Lua 5.1 rejects; it was fixed in the driver before merge.

Evidence

  • go test ./internal/drivers/ ./internal/fleetping/...: pass.
  • make verify: "verify: vet + test + build clean".
  • scripts/sync-bundled-drivers.sh --check: no driver source committed.
  • No hardware test yet. Both site owners can confirm on the next beta.

🤖 Generated with Claude Code

Moves the pin to srcfl/device-drivers 5eb7189d, which brings:

- ferroamp 2.2.0 (srcfl/device-drivers#299): never sends the EnergyHub a
  setpoint above the limit the hub reports when it refuses one, or above
  ehub_max_w; scales by what the ESOs measurably deliver instead of
  guessing an even split; reports power, SoC and fault code per ESO.
- solaredge_pv 1.2.3 and solaredge_legacy 0.3.4
  (srcfl/device-drivers#298): read the serial only once the inverter
  answers, and ask again every five minutes after three misses, so a
  restart while the inverter sleeps no longer leaves the forecast
  identity pending until the next restart.

Planner PV curtailment accepts only reviewed Ferroamp source hashes.
2.2.0's pplim commands are byte for byte those of 2.1.2, so its hash
joins the list. Two Core tests run the new behaviour under Core's
Lua 5.1: the cap learned from the refusal, and the measured scale with
per-ESO metrics. Both fail on 2.1.2.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Dec 4, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-12-04T17:53:20.958384Z 0509ce3 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@frahlg
frahlg merged commit f2945ef into master Dec 4, 2026
29 of 31 checks passed
@frahlg
frahlg deleted the driver-pin-ferroamp-solaredge branch December 4, 2026 18:33
frahlg added a commit that referenced this pull request Dec 5, 2026
#2178)

TestLinkFollowsABrokerThatGoesAndComesBack failed in CI on #2176: the
link stayed "connection lost" for the full 15 s wait.

mochi's Server.Close drops its clients and only then closes the
listener. paho tries again at once after a loss, without the 1 s pause,
and when the scheduler pauses mochi's Close goroutine between those two
steps, the listener accepts paho's new connection. mochi's Serve loop
sees it is ending and neither serves nor closes that connection, so
paho waits its 30 s ConnectTimeout for a CONNACK. A broker process that
exits closes every socket, so a real box does not meet this.

The test broker now owns its listener and closes it before mochi drops
the clients, as a broker that exits does.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant