feat: report synthetic metadata from fake agents (#25166)

Fake agents now fetch their manifest, spawn a single per-agent metadata
goroutine, and emit batched BatchUpdateMetadata calls with 3072-byte
base64 payloads so scaletest runs mirror the load shape of real agents.
This matches what the current scaletest workspace template does for
metadata. In the future we can extend the harness here to take in a
config option for the metadata payload size.

---------

Signed-off-by: Callum Styan <callumstyan@gmail.com>
Co-authored-by: Mux <mux@coder.com>
This commit is contained in:
Callum Styan
2026-05-27 13:49:42 -07:00
committed by GitHub
co-authored by Mux
parent 1bfc1ce2c4
commit 9d37f63fbd
5 changed files with 435 additions and 216 deletions
+1 -1
View File
@@ -68,7 +68,7 @@ func (r *RootCmd) scaletestAgentFake() *serpent.Command {
}
logger := inv.Logger
mgr := agentfake.NewManager(client, logger, agentfake.ManagerOptions{
mgr := agentfake.NewManager(client.URL, client, logger, agentfake.ManagerOptions{
Template: template,
Owner: owner,
})