Skip to content

Conversation

@pablocampogo
Copy link
Contributor

@pablocampogo pablocampogo commented Jan 28, 2026

Add plugins support in auto update

Copy link
Collaborator

@rem1niscence rem1niscence left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A refactor of the autoupdater code is required in order for this to be scalable and merged for production usage, in the comments I left multiple suggestions on how to do it but basically it resumes into

  1. not creating specialized structs PluginRelease but augment the ones that already exists Release
  2. Do not create special logic for plugin lifetime on the coordinator but reuse the Supervisor to manage the plugins through it, and the coordinator will simply need to loop through them and update as needed
  3. This is not on the comments but also required: Right now the plugin update and canopy release update are done together, that is dangerous and could leave the system on a broken state if any of the plugin fails for whatever reasone, the canopy binary must always run so the plugin lifetime/update must be done separate from the canopy binary

@pablocampogo pablocampogo marked this pull request as draft January 28, 2026 19:41
@pablocampogo pablocampogo changed the title Plugins fresh DO NOT MERGE Plugins fresh Jan 28, 2026
Copy link
Collaborator

@rem1niscence rem1niscence left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The main takeaway from this review is to not have any hardcoded values in both coordinator.go and updater.go. Add those values to the main.go and pass them as configs

Copy link
Collaborator

@rem1niscence rem1niscence left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

code is getting better, keep up the good work

@pablocampogo pablocampogo changed the title DO NOT MERGE Plugins fresh Add plugins support in auto update Feb 2, 2026
@pablocampogo pablocampogo self-assigned this Feb 2, 2026
@pablocampogo pablocampogo marked this pull request as ready for review February 2, 2026 20:39
@rem1niscence
Copy link
Collaborator

Do not merge yet

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.

3 participants