Files
computer-playbook/.github/workflows/call-test-instructions.yml
T
kevinveenbirkenbachandClaude Opus 5 53e5e9ba21 docs(workflows): make a dispatch description one readable line
An input description is what an operator reads in the dispatch form, one line
per input, exactly like a job or step name -- and it was drifting the other
way: eighteen of them opened with a bare word where every name in this
repository opens with an emoji, and sixteen ran past the line, the longest at
382 characters explaining four tor values inside a form field.

The descriptions now say what the input is; the workflow README says what the
values do. It gains the selection-token syntax and a table of the four tor
values, which is where a paragraph belongs when it outgrows its form field.

workflow_call inputs are left alone. They are wiring between workflows and are
rendered for nobody.

Two explanations did not survive the cut and are worth knowing: the mirror
cleanup no longer warns that the default GITHUB_TOKEN may lack the
delete:packages scope, and the workspace track no longer spells out that
'rotate' flips with the run number.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-08-16 03:38:43 +02:00

106 lines
3.2 KiB
YAML

name: "📖 Test: Instructions"
on:
workflow_call:
inputs:
distros:
description: "Space-separated distro list"
required: true
type: string
role:
description: "Role to test; empty picks one at random"
required: false
type: string
default: ""
priority:
description: "Space-separated app ids; a random one is preferred over whitelist"
required: false
type: string
default: ""
whitelist:
description: "Space-separated app ids; a random one is used when no role or priority is given"
required: false
type: string
default: ""
workflow_dispatch:
inputs:
distros:
description: "🐧 Space-separated distro list"
required: true
type: string
role:
description: "📖 Role to test; empty picks one at random"
required: false
type: string
default: ""
priority:
description: "⭐ App ids; a random one is preferred over the whitelist"
required: false
type: string
default: ""
whitelist:
description: "🎯 App ids; a random one runs when no role or priority is given"
required: false
type: string
default: ""
permissions:
contents: read
packages: read
jobs:
deploy:
name: 📖 Instructions
runs-on: ubuntu-latest
timeout-minutes: 345
concurrency:
group: infinito-instructions
cancel-in-progress: false
queue: max
env:
INFINITO_IMAGE_TAG: ci-${{ github.sha }}
INFINITO_DISTROS: ${{ inputs.distros }}
steps:
- if: ${{ !env.ACT }}
uses: actions/checkout@v7.0.0
- name: "📥 Load rescue-diagnostics SPOT into job env"
shell: bash
run: grep '^INFINITO_RESCUE_DIAGNOSTICS_BASE=' default.env >> "$GITHUB_ENV"
- name: 🐍 Install instructions + compose deps (Act runner only)
if: ${{ env.ACT }}
shell: bash
run: |
PYTHON=python3 PIP_BREAK_SYSTEM_PACKAGES=1 bash scripts/install/python.sh
apt-get update -qq && apt-get install -y -qq gettext-base jq
- name: 🎲 Select the role and deploy mode
shell: bash
run: |
set -euo pipefail
python3 -m cli.meta.ci.guide_select \
--role "${{ inputs.role }}" \
--priority "${{ inputs.priority }}" \
--whitelist "${{ inputs.whitelist }}" | tee -a "$GITHUB_ENV"
- name: 🔑 Login to GHCR
if: ${{ !env.ACT }}
uses: docker/login-action@af1e73f918a031802d376d3c8bbc3fe56130a9b0 # v4.4.0
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: 📖 Replay the instructions across ${{ inputs.distros }}
shell: bash
run: ./scripts/tests/deploy/distros.sh scripts/github/guide/one.sh
- name: ⬆️ Upload rescue diagnostics
if: ${{ always() && !env.ACT }}
uses: actions/upload-artifact@v7
with:
name: rescue-diagnostics-instructions-${{ env.GUIDE_ROLE }}
path: ${{ env.INFINITO_RESCUE_DIAGNOSTICS_BASE }}/
if-no-files-found: ignore