swarm: set an agent's config repo avatar from its icon
The agent module exposes the PNG nix renders from the agent's icon as the read-only option services.hyperhive.agent.iconPng, which the forge and matrix avatar syncs now share. When the builder reads an icon it builds that one attribute with nix build and sends the file, base64, next to the SVG in the meta build reply, so the builder runs no renderer of its own. After recording the icon, the controller sets the avatar of agent-configs/<agent> from the PNG as the forge admin, removes the avatar when the icon is removed, and leaves it alone when the builder sent no PNG. A marker per repo holds the image's fingerprint, so a build whose icon did not change makes no forge call; a forge that refuses the avatar does not fail the build. An old builder sends no PNG, so it changes nothing.
This commit is contained in:
parent
8a0615ccfc
commit
1a31a4cd5a
1 changed files with 499 additions and 25 deletions
|
|
@ -61,6 +61,7 @@ pub mod operator_profiles;
|
|||
pub(crate) mod pr_comment;
|
||||
pub mod pr_report;
|
||||
pub mod pull_diff;
|
||||
pub mod repo_avatar;
|
||||
pub mod review_request;
|
||||
pub mod runner_token;
|
||||
pub mod service_avatars;
|
||||
|
|
|
|||
Loading…
Reference in a new issue