mirror of
https://github.com/actions/runner.git
synced 2025-12-10 20:36:49 +00:00
1.1 KiB
1.1 KiB
ADR 354: Expose runner machine info
Date: 2020-03-02
Status: Pending
Context
- Provide a mechanism in the runner to include extra information in
Set up jobstep's log. Ex: Include OS/Software info from Hosted image.
Decision
The runner will look for a file .setup_info under the runner's root directory, The file can be a JSON with a simple schema.
[
{
"group": "OS Detail",
"detail": "........"
},
{
"group": "Software Detail",
"detail": "........"
}
]
The runner will use ::group and ::endgroup to fold all detail info into an expandable group.
Both virtual-environments and self-hosted runners can use this mechanism to add extra logging info to the Set up job step's log.
Consequences
- Change the runner to best effort read/parse
.extra_setup_infofile under runner root directory. - virtual-environments generate the file during image generation.
- Change MMS provisioner to properly copy the file to runner root directory at runtime.