Skip to main content

Module agent_env_scope

Module agent_env_scope 

Source
Expand description

Which of the variables srv puts in an agent’s environment reach a container agent, and how.

One table, with a reason on each line, in place of the denylist container_exec_env used to apply to a list written apart from the code that sets the variables (task #13666, step 2). A name srv sets on an agent turn needs an entry here; every_name_srv_sets_on_a_turn_has_a_scope runs the code that sets them and fails on one that has none, so a new variable is placed when it is added, not found later when it turns up inside a container. It covers the identity, workspace, auth, tool-path and build-label steps. The GitHub broker, the publish guard’s GIT_CONFIG_* and the AWS broker are gated out under cfg(test), so they are covered by FAMILIES and the entries above, not by that test.

What a name the agent’s own cmd:env carries gets is not decided here: it passes through unchanged, as it did.

Structs§

EnvSpec

Enums§

EnvScope
Where a variable goes.

Constants§

AGENT_ENV
The variables srv sets or decides on an agent’s turn, by name.

Functions§

host_only
Whether a container agent is not given name from the host’s environment.
scope_of
How name goes into a container, or None if srv has not placed it.