You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(ota_plugin): write manifest fragments + notify gateway on install/uninstall
Without this, OTA-installed apps (obstacle_classifier_v2 after the
Install flow) showed up in the gateway runtime graph but never got
attached to a manifest entity, so the Foxglove tree treated them as
orphans and they never appeared under the turtlebot3 component or in
any function's host list. The catalog said "this update adds the
obstacle_classifier app", the runtime saw the new node, but the
manifest tree stayed unchanged.
Wire the gateway's plugin-side manifest fragment contract:
1. Plugin reads `fragments_dir` from its config (matches the
gateway's discovery.manifest.fragments_dir param). Empty = legacy
"no fragments" behavior preserved.
2. set_context() now stores the PluginContext so post-execute we
can call notify_entities_changed and have the gateway re-merge
the base manifest with the fragments dir.
3. On Install: render a minimal manifest YAML for the new app
(id from added_components[0], node_name from x_medkit_executable,
located on the single turtlebot3 component), atomic-publish via
tmp-rename per the ManifestManager fragment contract, then
notify. Gateway picks the entity up; new app shows under
/components/turtlebot3/hosts and any function that lists it.
4. On Uninstall: drop the fragment file (no-op if the entity was in
the base manifest, like broken_lidar_legacy). Notify either way
so the cache stops returning a now-dead app.
5. On Update: no fragment change (same app id, just different
binary), but still notify so the entity cache rebuilds with the
new pid.
Adds the dirs to Dockerfile and threads fragments_dir through both
gateway_config.yaml (discovery.manifest.fragments_dir) and the
plugin config block (plugins.ota_update_plugin.fragments_dir) so
they stay in lockstep.
0 commit comments