feat(service_livekit): forward-compat with hero_livekit configure RPC #174
No reviewers
Labels
No labels
prio_critical
prio_low
type_bug
type_contact
type_issue
type_lead
type_question
type_story
type_task
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
lhumina_code/hero_skills!174
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/livekit-per-user-ports-compat"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes #173. Companion to hero_livekit#34.
Summary
Single change: adds
rtc_tcp_port: 0tocfg_paramsinservice_livekit.nu. Required because hero_livekit#34 extends thelivekitservice.configureRPC with a new mandatoryrtc_tcp_portparameter. Without this, everyservice_livekit startagainst the new wrapper fails with"Missing required parameter: rtc_tcp_port".0 = "keep current value"follows the same convention aslivekit_portandbackend_portalready use.Scope kept narrow on purpose
An earlier draft of this PR also modified
svx_lk_wipe_stale_configsto preserveruntime.jsonacross wipes, with the goal of making per-user values durable. That was the wrong layer to fix it:runtime.jsonis a derived cache; the wipe correctly forces a clean slate on inconsistencyhero_cfg.toml, where[mycelium]already livesservice_livekit startafter a wipe should re-readhero_cfg.tomland re-deriveruntime.jsonfrom thereThat reconstruction logic is in the follow-up PR (PR-2): service_livekit.nu reads
[livekit]section fromhero_cfg.tomland passes those values to the configure RPC. The wipe stays as-is.Compatibility matrix
Land this PR at-or-before the hero_livekit binary is upgraded on operator boxes.
Test plan
service_livekit startagainst an old wrapper still works (extrartc_tcp_port: 0field ignored by old serde)service_livekit startagainst a new wrapper (hero_livekit#34) works (configure RPC accepts the field)Follow-up
PR-2: read
[livekit]section fromhero_cfg.tomland pass values intocfg_paramsinstead of hardcoded 0. That closes the loop on automatic per-user port allocation without touching the wipe behavior.eb0825464fc33f3b7a36feat(service_livekit): forward-compat with hero_livekit configure RPC + preserve runtime.json on wipeto feat(service_livekit): forward-compat with hero_livekit configure RPCSuperseded by #176, which folds the forward-compat 1-liner from this PR into the same single commit that adds the cfg.toml [livekit] read. Closing as superseded.
Pull request closed