Skip to content

Match Platform and Worker messages properties

Context

The Command message a REAPI client submits as part of an execution request should contain a Platform message. This message contains a set of properties (list of key/value pairs) that can be seen as requirements for the submitted build.

The BotSession message two RWAPI client and server exchange should contains a Worker message. This message contains a set of devices, properties and config. (list of key/value pairs) that describes the worker's capabilities.

BuildGrid should implement a matching logic between these set of build requirements and capabilities when assigning a build job to a worker bot.

The Platform message fields are in the process of being standardised. Some of the Worker message fields also are.

Also of potential interest is the execution environment requirements that the BuildStream project implemented. See the mailing list post and BuildStream/buildstream!969 (merged).

Task Description

  • Check the worker for the required platform.
  • Document keys / values currently accepted.
Edited by Santiago Gil