mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2026-11-29 14:30:52 +00:00
feat(ci): pin deploy axes from a selection token
A whitelist or priority entry was a role name and nothing else, so a run could not ask for "this variant, on swarm, behind the onion". It either covered everything the role offers or waited for the rotation to come around to the combination that broke. An entry is now a token that may carry the axes, either as web-app-x#0,2@swarm+tor or as the job label pasted straight back out of the run that failed. What a token leaves open still belongs to the line it stands in: priority covers every remaining combination in one sweep, whitelist keeps the rotation and its position in the matrix. A pin the row cannot take aborts the matrix rather than dropping the row, because a dropped row reports a green run for a combination that never ran. The onion state spells out as +clearnet, not as a -tor suffix: svc-net-tor would otherwise read as role svc-net on the clearnet. Chunk membership still follows the discovery ranking, which is what decides who makes the budget cut, but the rows inside a chunk are sorted by display name, variant, mode and onion state, so a chunk's job list reads like the plan table instead of like the sweep's rotation. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
392972de9c
commit
111b1bbcdf
10 files changed
+702
-27
No files matched your search
@@ -5,7 +5,12 @@
|
||||
#
|
||||
# Inputs via env:
|
||||
# INPUT_WHITELIST caller-provided whitelist (space-separated), as role ids
|
||||
# or as the display names utils.roles.display renders.
|
||||
# or as the display names utils.roles.display renders. A
|
||||
# token may pin deploy axes onto the role
|
||||
# (`#variant`, `@mode`, `+tor`, see
|
||||
# utils.github.variant.selection); the pins are passed
|
||||
# through untouched, and only the name in front of them is
|
||||
# the directory this checks for.
|
||||
# Three cases, in this order of precedence:
|
||||
# * "__ALL__" (sentinel, case-insensitive): force
|
||||
# full deploy across the workflow's scope. Skips
|
||||
@@ -45,7 +50,7 @@ if [[ -n "${input_trimmed}" ]]; then
|
||||
input="$("${PYTHON}" -m utils.roles.display "${input}")"
|
||||
unknown=()
|
||||
for role in ${input}; do
|
||||
[[ -d "roles/${role}" ]] || unknown+=("${role}")
|
||||
[[ -d "roles/${role%%[#@+]*}" ]] || unknown+=("${role}")
|
||||
done
|
||||
if ((${#unknown[@]})); then
|
||||
echo "[ERROR] Unknown role id(s) in the caller-supplied whitelist: ${unknown[*]}" >&2
|
||||
|
||||
Reference in new issue
Block a user