Repository navigation
feat(compose): per-runner labels and opt-in control runners for coordination jobs - #26
Merged
Merged
Conversation
…ination jobs RUNNER_<N>_LABELS replaces LABELS for one runner, so one runner of a light host can also join the large pool. The environment moves to its own anchor (x-runner-env) so a service can change LABELS without dropping the other variables. COMPOSE_PROFILES=control adds two ephemeral runners (control, control-2) built from one x-control anchor. They carry only CONTROL_LABELS (default control) and mount no docker.sock and no tool cache, only their work volume and the read-only action cache, for the short jobs a merge waits on. With neither variable set, the rendered config is unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
azlekov
force-pushed
the
feat/control-runners-and-per-runner-labels
branch
from
October 15, 2026 21:26
7923d78 to
fb5bbac
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Two opt-in knobs. With neither set,
docker compose configrenders the same services, labels and volumes as today.RUNNER_<N>_LABELS(runner,runner-2,runner-3) replacesLABELSfor that one runner. A host whose runners are alllightcan let one of them also takelargebuilds, without a second host file.x-runner-env). A<<:merge replaces a whole mapping, so a service could not otherwise changeLABELSwithout dropping every other variable.COMPOSE_PROFILES=controladdscontrolandcontrol-2:CONTROL_LABELS(defaultcontrol), so no build or test can land on them.docker.sock, no tool cache: only a work volume and the read-only action cache.Checked
docker compose configwith a test.env:LABELS, unchanged.RUNNER_3_LABELS=…,large: onlyrunner-3changes.COMPOSE_PROFILES=control: two control runners. Each has the full App environment,EPHEMERAL=true,LABELS=control, the<prefix>-controlname, onlyrunner-work-control*and the action cache, and the same healthcheck.COMPOSE_FILE=docker-compose.yml:hosts/no-caches.compose.yml: still valid.The nested default
${RUNNER_3_LABELS:-${LABELS:-docker}}was verified with Compose v5.1.2. Hosts need a Compose version with nested interpolation (2.x and later).🤖 Generated with Claude Code