mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2026-11-29 06:17:25 +00:00
feat(deploy): runner-split variant bundles + unified variant selector
Thread a single `variant` selector (CSV) end-to-end so CI can split a
role's matrix deploy across runners.
- variant_select.py (SPOT, shared by init + deploy): one --variant taking
a CSV (2 pins one round, 0,1,2 is a runner bundle, empty = full matrix);
replaces the old separate --variant/--variants.
- planner.filter_plan_to_variants filters the plan to a round subset.
- CI discovery (utils/github/variant_bundles.py) splits roles with more
than INFINITO_VARIANT_BUNDLE_SIZE (default 3) variants into bundles of
consecutive indices, one matrix runner each (5 -> 0,1,2 + 3,4), threaded
via the variant env. test-deploy-{local,universal,workstation,server}.yml
switch to matrix.include with a comma-free variant_slug for artifact/job
names (GitHub expressions have no replace()).
- runtime_budget honours INFINITO_VARIANT_TIME_OVERFLOW (cut|fail) when a
runner cannot finish its slice within INFINITO_MAX_RUNTIME.
Unit tests + docs (variants.md, deploy.md) included.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
1 parent
4136641164
commit
35c2ff5f26
24 files changed
+673
-117
No files matched your search
@@ -9,6 +9,11 @@ set -euo pipefail
|
||||
apps="$(./scripts/meta/resolve/apps.sh)"
|
||||
[[ -n "$apps" ]] || apps='[]'
|
||||
|
||||
echo "apps=$apps" >>"$GITHUB_OUTPUT"
|
||||
echo "apps_json=$apps" >>"$GITHUB_OUTPUT"
|
||||
echo "apps_json=$apps"
|
||||
# Expand the flat app-id list into deploy-matrix entries, splitting any role
|
||||
# with more variants than INFINITO_VARIANT_BUNDLE_SIZE (default 3) into bundles
|
||||
# of consecutive variant indices — one runner per bundle.
|
||||
matrix="$(printf '%s' "$apps" | "${PYTHON:-python3}" -m utils.github.variant_bundles)"
|
||||
[[ -n "$matrix" ]] || matrix='[]'
|
||||
|
||||
echo "apps=$matrix" >>"$GITHUB_OUTPUT"
|
||||
echo "apps=$matrix"
|
||||
Reference in new issue
Block a user