From e32df7f24e342fccac6a3697e99ea8fecf1f550b Mon Sep 17 00:00:00 2001 From: Kevin Veen-Birkenbach Date: Fri, 17 Jul 2026 17:20:05 +0200 Subject: [PATCH] feat(ci): single-node SPOT + priority deploy line test-deploy-single-node.yml bundles the compose and host deploy tests behind one reusable workflow; the orchestrator gains a priority input that deploys focus roles first per mode and runs the remaining roles only after every priority job succeeded, excluded via the new INFINITO_BLACKLIST discovery filter in apps.sh. entry-manual exposes the priority field and treats priority-only dispatches as roles-only. Workflow dependency diagram added under .github/workflows/README.md. Co-Authored-By: Claude Fable 5 --- .github/workflows/README.md | 128 ++++++++++++++++++ .github/workflows/ci-orchestrator.yml | 75 +++++++--- .github/workflows/entry-manual.yml | 12 +- .github/workflows/test-deploy-compose.yml | 6 + .github/workflows/test-deploy-host.yml | 6 + .github/workflows/test-deploy-single-node.yml | 54 ++++++++ .github/workflows/test-deploy-swarm.yml | 11 ++ default.env | 3 + .../tools/github/actions/workflows.md | 10 +- scripts/meta/resolve/apps.sh | 7 + utils/env/handlers/passthrough.py | 1 + 11 files changed, 287 insertions(+), 26 deletions(-) create mode 100644 .github/workflows/README.md create mode 100644 .github/workflows/test-deploy-single-node.yml diff --git a/.github/workflows/README.md b/.github/workflows/README.md new file mode 100644 index 0000000000..8d278f79ff --- /dev/null +++ b/.github/workflows/README.md @@ -0,0 +1,128 @@ +# Workflow Dependency Map + +How the workflows under `.github/workflows/` trigger and call each other. +Solid arrows: `workflow_call` (`uses:`) or job `needs`. Dotted arrows: +indirect coupling (CLI dispatch, shared concurrency group). Per-workflow +inputs and descriptions: [workflows.md](../../docs/contributing/tools/github/actions/workflows.md). + +## CI pipeline + +```mermaid +flowchart TB + push["push: main, feature/**, hotfix/**, fix/**"] --> epl["entry-push-latest.yml"] + pr["pull_request: opened, synchronize, reopened, ready_for_review"] --> eprc["entry-pull-request-change.yml"] + dispatch["workflow_dispatch"] --> eman["entry-manual.yml"] + + epl --> orch["ci-orchestrator.yml"] + epl -->|"version tag on main"| relv["release-version.yml"] + eprc --> orch + eprc -->|"fork PRs: privileged prebuild"| imgbuild["images-build-ci.yml"] + eprc -->|"fork PRs: privileged prebuild"| imgmirror["images-mirror-missing.yml"] + eman --> orch + + subgraph orchestrator["ci-orchestrator.yml jobs"] + waitfork["wait-fork-prereq-run"] --> forkready["fork-prereqs-ready"] + + lintansible["lint-ansible.yml"] --> lintgate["lint-gate"] + lintdocker["lint-docker.yml"] --> lintgate + lintpython["lint-python.yml"] --> lintgate + lintshell["lint-shell.yml"] --> lintgate + lintmarkdown["lint-markdown.yml"] --> lintgate + lintmermaid["lint-mermaid.yml"] --> lintgate + lintmakefile["lint-makefile.yml"] --> lintgate + lintpackages["lint-packages.yml"] --> lintgate + lintjavascript["lint-javascript.yml"] --> lintgate + lintplaywright["lint-playwright.yml"] --> lintgate + + tcunit["test-code-unit.yml"] --> tcgate["test-code-gate"] + tcintegration["test-code-integration.yml"] --> tcgate + tclint["test-code-lint.yml"] --> tcgate + tcexternal["test-code-external.yml"] --> tcgate + + codeql["security-codeql.yml"] --> qualitygate["code-quality-gate"] + lintgate --> qualitygate + tcgate --> qualitygate + + qualitygate --> buildci["build-ci-images: images-build-ci.yml"] + buildci --> dns["test-dns.yml"] + mirror["images-mirror-missing.yml"] + + dns --> snprio["test-deploy-single-node-priority"] + mirror --> snprio + buildci --> swarmprio["test-deploy-swarm-priority"] + mirror --> swarmprio + + snprio -->|"all priority jobs green"| snreg["test-deploy-single-node"] + swarmprio -->|"all priority jobs green"| snreg + snprio -->|"all priority jobs green"| swarmreg["test-deploy-swarm"] + swarmprio -->|"all priority jobs green"| swarmreg + dns --> snreg + mirror --> snreg + buildci --> swarmreg + mirror --> swarmreg + + swarmreg --> smoke["test-runner-smoke.yml"] + + qualitygate --> instmake["test-install-make.yml"] + qualitygate --> instpkgmgr["test-install-pkgmgr.yml"] + instmake --> instgate["test-install-gate"] + instpkgmgr --> instgate + + qualitygate --> devenv["test-development: test-environment.yml"] + mirror --> devenv + + snprio --> donegate["done"] + swarmprio --> donegate + snreg --> donegate + swarmreg --> donegate + smoke --> donegate + instgate --> donegate + devenv --> donegate + end + + snprio --> singlenode["test-deploy-single-node.yml"] + snreg --> singlenode + singlenode --> deploycompose["test-deploy-compose.yml"] + singlenode --> deployhost["test-deploy-host.yml"] + swarmprio --> deployswarm["test-deploy-swarm.yml"] + swarmreg --> deployswarm +``` + +`test-deploy-single-node-priority` and `test-deploy-swarm-priority` run only +when the orchestrator's `priority` input is set; with it empty they are +skipped and the regular deploy jobs start directly. The regular jobs receive +the priority ids as `blacklist`, so each role deploys in exactly one line. + +## Cancellation + +```mermaid +flowchart TB + prclose["pull_request_target: closed, converted_to_draft"] --> eprcancel["entry-pull-request-cancel.yml"] + branchdelete["delete: branch"] --> delbranch["delete-branch.yml"] + eprcancel -.->|"cancels concurrency group"| runningci["running entry + child workflow runs"] + delbranch -.->|"cancels concurrency group"| runningci +``` + +## Scheduled and standalone + +```mermaid +flowchart TB + daily["schedule: daily 00:00 UTC"] --> mirrorall["images-mirror-all.yml"] + daily --> stale["cleanup-stale.yml"] + daily --> relhighest["release-highest.yml"] + weekly["schedule: weekly Sat 00:00 UTC"] --> updatewf["update.yml"] + weekly --> cleanupci["images-cleanup-ci.yml"] + weeklymon["schedule: weekly Mon 00:00 UTC"] --> scorecard["security-scorecard.yml"] + branchprot["branch_protection_rule"] --> scorecard + pushmain["push: main"] --> updatewf + prtarget["pull_request_target: opened, reopened"] --> depclose["dependabot-close.yml"] + + relhighest -.->|"gh workflow run"| relver["release-version.yml"] + relver --> imgbuildci["images-build-ci.yml"] + manual["workflow_dispatch"] --> mirrorcleanup["images-mirror-cleanup.yml"] +``` + +Also manually dispatchable: `images-mirror-all.yml`, `images-cleanup-ci.yml`, +`cleanup-stale.yml`, `update.yml`, `release-highest.yml`, `release-version.yml`, +`test-code-external.yml`, `test-deploy-swarm.yml`, `test-dns.yml`, +`test-environment.yml`, `test-runner-smoke.yml`. diff --git a/.github/workflows/ci-orchestrator.yml b/.github/workflows/ci-orchestrator.yml index 4761e51bb5..b575f95b37 100644 --- a/.github/workflows/ci-orchestrator.yml +++ b/.github/workflows/ci-orchestrator.yml @@ -22,6 +22,11 @@ on: required: false type: string default: "swarm compose host" + priority: + description: "Optional space-separated app ids for the priority line: deployed first in every mode; the regular line runs the remaining roles only after every priority job succeeded." + required: false + type: string + default: "" image_wait_attempts: description: "Polling attempts for waiting on prebuilt or mirrored images" required: false @@ -204,38 +209,69 @@ jobs: image_wait_sleep_seconds: ${{ inputs.image_wait_sleep_seconds }} secrets: inherit - test-deploy-compose: - if: ${{ contains(inputs.modes, 'compose') }} + test-deploy-single-node-priority: + if: ${{ inputs.priority != '' && (contains(inputs.modes, 'compose') || contains(inputs.modes, 'host')) }} needs: - test-dns - images-mirror-missing - uses: ./.github/workflows/test-deploy-compose.yml + uses: ./.github/workflows/test-deploy-single-node.yml with: distros: ${{ inputs.distros }} - whitelist: ${{ inputs.whitelist }} + whitelist: ${{ inputs.priority }} lifecycles: ${{ inputs.lifecycles }} + modes: ${{ inputs.modes }} - test-deploy-host: - if: ${{ contains(inputs.modes, 'host') }} - needs: - - build-ci-images - - images-mirror-missing - uses: ./.github/workflows/test-deploy-host.yml - with: - distros: ${{ inputs.distros }} - whitelist: ${{ inputs.whitelist }} - lifecycles: ${{ inputs.lifecycles }} - - test-deploy-swarm: - if: ${{ contains(inputs.modes, 'swarm') }} + test-deploy-swarm-priority: + if: ${{ inputs.priority != '' && contains(inputs.modes, 'swarm') }} needs: - build-ci-images - images-mirror-missing uses: ./.github/workflows/test-deploy-swarm.yml + with: + distros: ${{ inputs.distros }} + whitelist: ${{ inputs.priority }} + lifecycles: ${{ inputs.lifecycles }} + + test-deploy-single-node: + if: >- + ${{ always() + && (contains(inputs.modes, 'compose') || contains(inputs.modes, 'host')) + && needs.test-dns.result == 'success' + && needs.images-mirror-missing.result == 'success' + && contains(fromJSON('["success","skipped"]'), needs.test-deploy-single-node-priority.result) + && contains(fromJSON('["success","skipped"]'), needs.test-deploy-swarm-priority.result) }} + needs: + - test-dns + - images-mirror-missing + - test-deploy-single-node-priority + - test-deploy-swarm-priority + uses: ./.github/workflows/test-deploy-single-node.yml with: distros: ${{ inputs.distros }} whitelist: ${{ inputs.whitelist }} lifecycles: ${{ inputs.lifecycles }} + modes: ${{ inputs.modes }} + blacklist: ${{ inputs.priority }} + + test-deploy-swarm: + if: >- + ${{ always() + && contains(inputs.modes, 'swarm') + && needs.build-ci-images.result == 'success' + && needs.images-mirror-missing.result == 'success' + && contains(fromJSON('["success","skipped"]'), needs.test-deploy-single-node-priority.result) + && contains(fromJSON('["success","skipped"]'), needs.test-deploy-swarm-priority.result) }} + needs: + - build-ci-images + - images-mirror-missing + - test-deploy-single-node-priority + - test-deploy-swarm-priority + uses: ./.github/workflows/test-deploy-swarm.yml + with: + distros: ${{ inputs.distros }} + whitelist: ${{ inputs.whitelist }} + lifecycles: ${{ inputs.lifecycles }} + blacklist: ${{ inputs.priority }} test-runner-smoke: needs: @@ -274,8 +310,9 @@ jobs: done: name: 🏁 Finish pipeline needs: - - test-deploy-compose - - test-deploy-host + - test-deploy-single-node-priority + - test-deploy-swarm-priority + - test-deploy-single-node - test-deploy-swarm - test-runner-smoke - test-install-gate diff --git a/.github/workflows/entry-manual.yml b/.github/workflows/entry-manual.yml index 321236d7bf..a0abb984ff 100644 --- a/.github/workflows/entry-manual.yml +++ b/.github/workflows/entry-manual.yml @@ -24,9 +24,14 @@ on: default: "" type: string modes: - description: "Deploy modes to test (space-separated: 'swarm compose'). Only the listed modes run their deploy job." + description: "Deploy modes to test (space-separated: 'swarm compose host'). Only the listed modes run their deploy job." required: false - default: "swarm compose" + default: "swarm compose host" + type: string + priority: + description: "Optional space-separated app ids for the priority line: deployed first in every mode; the regular line runs the remaining roles only after every priority job succeeded." + required: false + default: "" type: string permissions: @@ -44,5 +49,6 @@ jobs: whitelist: ${{ inputs.whitelist }} lifecycles: ${{ inputs.lifecycles }} modes: ${{ inputs.modes }} - roles_only: ${{ (inputs.whitelist != '' && inputs.whitelist != '__ALL__') && 'true' || 'false' }} + priority: ${{ inputs.priority }} + roles_only: ${{ (inputs.priority != '' || (inputs.whitelist != '' && inputs.whitelist != '__ALL__')) && 'true' || 'false' }} secrets: inherit diff --git a/.github/workflows/test-deploy-compose.yml b/.github/workflows/test-deploy-compose.yml index 1e2c4ee10d..3b069702c6 100644 --- a/.github/workflows/test-deploy-compose.yml +++ b/.github/workflows/test-deploy-compose.yml @@ -17,6 +17,11 @@ on: required: false type: string default: "" + blacklist: + description: "Optional space-separated app ids to drop from discovery" + required: false + type: string + default: "" permissions: contents: read @@ -32,6 +37,7 @@ env: INFINITO_APP_DISCOVERY_RUNNER: host INFINITO_DEPLOY_MODE: compose INFINITO_LIFECYCLES: ${{ inputs.lifecycles }} + INFINITO_BLACKLIST: ${{ inputs.blacklist }} jobs: discover: name: 🪼 Compose (${{ inputs.distros }}) diff --git a/.github/workflows/test-deploy-host.yml b/.github/workflows/test-deploy-host.yml index 1c6959befd..894827e5fe 100644 --- a/.github/workflows/test-deploy-host.yml +++ b/.github/workflows/test-deploy-host.yml @@ -17,6 +17,11 @@ on: required: false type: string default: "" + blacklist: + description: "Optional space-separated app ids to drop from discovery" + required: false + type: string + default: "" permissions: contents: read @@ -33,6 +38,7 @@ env: INFINITO_DEPLOY_MODE: host INFINITO_MAX_JOBS: "10" INFINITO_LIFECYCLES: ${{ inputs.lifecycles }} + INFINITO_BLACKLIST: ${{ inputs.blacklist }} jobs: discover: name: 🖥️ Host (${{ inputs.distros }}) diff --git a/.github/workflows/test-deploy-single-node.yml b/.github/workflows/test-deploy-single-node.yml new file mode 100644 index 0000000000..75f78d1d19 --- /dev/null +++ b/.github/workflows/test-deploy-single-node.yml @@ -0,0 +1,54 @@ +name: "🏝️ Test: Deploy (single-node)" + +on: + workflow_call: + inputs: + distros: + description: "Space-separated distro list" + required: true + type: string + whitelist: + description: "Optional space-separated whitelist of app ids" + required: false + type: string + default: "" + lifecycles: + description: "Lifecycle envelope for discovery (comma/space-separated). Empty: default (alpha beta rc stable)." + required: false + type: string + default: "" + modes: + description: "Single-node deploy modes to run (space-separated subset of 'compose host')." + required: false + type: string + default: "compose host" + blacklist: + description: "Optional space-separated app ids to drop from discovery" + required: false + type: string + default: "" + +permissions: + contents: read + packages: read + +jobs: + compose: + name: 📦 Compose + if: ${{ contains(inputs.modes, 'compose') }} + uses: ./.github/workflows/test-deploy-compose.yml + with: + distros: ${{ inputs.distros }} + whitelist: ${{ inputs.whitelist }} + lifecycles: ${{ inputs.lifecycles }} + blacklist: ${{ inputs.blacklist }} + + host: + name: 🖥️ Host + if: ${{ contains(inputs.modes, 'host') }} + uses: ./.github/workflows/test-deploy-host.yml + with: + distros: ${{ inputs.distros }} + whitelist: ${{ inputs.whitelist }} + lifecycles: ${{ inputs.lifecycles }} + blacklist: ${{ inputs.blacklist }} diff --git a/.github/workflows/test-deploy-swarm.yml b/.github/workflows/test-deploy-swarm.yml index c1344742b6..8b8f1bc6a9 100644 --- a/.github/workflows/test-deploy-swarm.yml +++ b/.github/workflows/test-deploy-swarm.yml @@ -18,6 +18,11 @@ on: required: false type: string default: "" + blacklist: + description: "Optional space-separated app ids to drop from discovery" + required: false + type: string + default: "" workflow_dispatch: inputs: distros: @@ -35,6 +40,11 @@ on: required: false type: string default: "" + blacklist: + description: "Optional space-separated app ids to drop from discovery" + required: false + type: string + default: "" permissions: contents: read @@ -48,6 +58,7 @@ env: INFINITO_APP_DISCOVERY_RUNNER: host INFINITO_DEPLOY_MODE: swarm INFINITO_LIFECYCLES: ${{ inputs.lifecycles }} + INFINITO_BLACKLIST: ${{ inputs.blacklist }} jobs: discover: diff --git a/default.env b/default.env index 9794cee3f0..d3e62771dc 100644 --- a/default.env +++ b/default.env @@ -28,6 +28,9 @@ INFINITO_APP_VARIANTS= # Host interface(s) the compose stack binds published ports to. INFINITO_BIND_IP=127.0.0.1 +# Optional app-discovery exclusion filter consumed by scripts/meta/resolve/apps.sh and the GHA workflows. +INFINITO_BLACKLIST= + # `1` builds the local image; `0` skips the build and pulls the published image (CI overrides via -e INFINITO_BUILD=0). INFINITO_BUILD=1 diff --git a/docs/contributing/tools/github/actions/workflows.md b/docs/contributing/tools/github/actions/workflows.md index c7d2177fe2..6c0c36c60f 100644 --- a/docs/contributing/tools/github/actions/workflows.md +++ b/docs/contributing/tools/github/actions/workflows.md @@ -27,7 +27,7 @@ Trigger column legend: **auto** = fires automatically (push, pull_request, sched |---|---|---|---| | [entry-pull-request-change.yml](../../../../../.github/workflows/entry-pull-request-change.yml): `⚡ CI: Pull Request` | Detects PR scope from changed files + branch prefix, then conditionally calls the orchestrator. A maintainer `🛡️ Trusted` label builds the privileged images from the PR head — see [pipeline.md](../../../artefact/git/pipeline.md#trusted-fork-prs-). A `🧩 Subset` label pins the deploy matrix to the roles listed in the PR body — see [pipeline.md](../../../artefact/git/pipeline.md#subset-label-). | auto (`pull_request` & `pull_request_target`: opened, synchronize, reopened, ready_for_review, labeled) | none | | [entry-push-latest.yml](../../../../../.github/workflows/entry-push-latest.yml): `⚡ CI: Push` | Syncs `main` from the configured source repository, then runs the orchestrator on pushes to `main`, `feature/**`, `hotfix/**`, `fix/**`, `chore/**`, `alert-autofix-*`; on tagged `main` it also calls `release-version.yml`. Respects the `CI_CANCEL_IN_PROGRESS`, `CI_SYNC_MAIN_SOURCE_REPOSITORY`, and `CI_RUN_ON_MAIN` repository variables, see [configuration.md](configuration.md). | auto (`push`) | none | -| [entry-manual.yml](../../../../../.github/workflows/entry-manual.yml): `⚡ CI: Manual` | Manual dispatch of the full orchestrator for a chosen distro set and app whitelist. The `whitelist` input accepts the `__ALL__` sentinel for forced full deploy; see the "Diff-driven app selection" subsection in [pipeline.md](../../../artefact/git/pipeline.md). | manual | `distros` (default `debian`), `whitelist` (optional; `__ALL__` forces full deploy, empty triggers diff derivation, any other value is verbatim) | +| [entry-manual.yml](../../../../../.github/workflows/entry-manual.yml): `⚡ CI: Manual` | Manual dispatch of the full orchestrator for a chosen distro set and app whitelist. The `whitelist` input accepts the `__ALL__` sentinel for forced full deploy; see the "Diff-driven app selection" subsection in [pipeline.md](../../../artefact/git/pipeline.md). | manual | `distros` (default `debian`), `whitelist` (optional; `__ALL__` forces full deploy, empty triggers diff derivation, any other value is verbatim), `lifecycles`, `modes` (default `swarm compose`), `priority` (optional; priority line first, regular line runs the rest after it succeeds) | | [entry-pull-request-cancel.yml](../../../../../.github/workflows/entry-pull-request-cancel.yml): `🚫 Cancel: PR Runs on Close` | Cancels active workflow runs for a PR when it is closed or converted to draft. | auto (`pull_request_target`: closed, converted_to_draft) | none | | [delete-branch.yml](../../../../../.github/workflows/delete-branch.yml): `🚫 Cancel: Runs on Branch Delete` | Enters the push-entry concurrency group for the deleted branch so that any in-flight run on it is cancelled; a fallback step cancels remaining runs via the API. | auto (`delete`) | none | @@ -35,7 +35,7 @@ Trigger column legend: **auto** = fires automatically (push, pull_request, sched | Workflow | Description | Trigger | Inputs | |---|---|---|---| -| [ci-orchestrator.yml](../../../../../.github/workflows/ci-orchestrator.yml): `🎵 CI: Orchestrator` | Central coordinator. Runs fork-prereq wait, security, linting, CI image build, code tests, code-quality gate, DNS tests, mirror, deploy tests, install tests, development-environment test, final `done` gate. | reusable | `distros` (default `arch debian ubuntu fedora centos`), `whitelist` (optional), `image_wait_attempts` (default `1980`), `image_wait_sleep_seconds` (default `10`) | +| [ci-orchestrator.yml](../../../../../.github/workflows/ci-orchestrator.yml): `🎵 CI: Orchestrator` | Central coordinator. Runs fork-prereq wait, security, linting, CI image build, code tests, code-quality gate, DNS tests, mirror, deploy tests (optionally split into a priority line and a regular line via `priority`), install tests, development-environment test, final `done` gate. | reusable | `distros` (default `arch debian ubuntu fedora centos`), `whitelist` (optional), `priority` (optional; app ids deployed first per mode, then excluded from the regular line, which only starts after every priority job succeeded), `image_wait_attempts` (default `1980`), `image_wait_sleep_seconds` (default `10`) | ### Security and linting 🛡️🔍 @@ -77,8 +77,10 @@ Trigger column legend: **auto** = fires automatically (push, pull_request, sched | Workflow | Description | Trigger | Inputs | |---|---|---|---| | [test-dns.yml](../../../../../.github/workflows/test-dns.yml): `💬 Test: DNS` | Validates DNS resolution across target distributions. | reusable, manual | `distros` (required on call; default `debian` on manual) | -| [test-deploy-compose.yml](../../../../../.github/workflows/test-deploy-compose.yml): `📦 Test: Deploy (compose)` | Deploy test (compose mode) across all deployment types (`INFINITO_DISCOVER_ALL`; lifecycle-filtered to `alpha beta rc stable`, so `server`/`universal`/`workstation` scopes but not just `web-*`). When `whitelist` is empty, the discover job derives one from the branch's diff vs `origin/main`; see the "Diff-driven app selection" subsection in [pipeline.md](../../../artefact/git/pipeline.md). | reusable | `distros` (required), `whitelist` (optional; explicit value wins over diff) | -| [test-deploy-swarm.yml](../../../../../.github/workflows/test-deploy-swarm.yml): `🐝 Test: Deploy (swarm)` | Deploy test (swarm mode) across the full application matrix; each app gets a simulated 3-node DinD cluster with an NFS server, then a drain/reschedule state-survival assertion. Same diff-driven whitelist resolution as `test-deploy-compose.yml`. | reusable, manual | `whitelist` (optional; explicit value wins over diff) | +| [test-deploy-single-node.yml](../../../../../.github/workflows/test-deploy-single-node.yml): `🏝️ Test: Deploy (single-node)` | Single point of truth for the non-swarm deploy tests: fans out to `test-deploy-compose.yml` and `test-deploy-host.yml`, gated per mode via the `modes` input. Called from the orchestrator. | reusable | `distros` (required), `whitelist`, `lifecycles`, `modes` (default `compose host`), `blacklist` (optional; app ids dropped from discovery) | +| [test-deploy-compose.yml](../../../../../.github/workflows/test-deploy-compose.yml): `📦 Test: Deploy (compose)` | Deploy test (compose mode) across all deployment types (`INFINITO_DISCOVER_ALL`; lifecycle-filtered to `alpha beta rc stable`, so `server`/`universal`/`workstation` scopes but not just `web-*`). When `whitelist` is empty, the discover job derives one from the branch's diff vs `origin/main`; see the "Diff-driven app selection" subsection in [pipeline.md](../../../artefact/git/pipeline.md). | reusable | `distros` (required), `whitelist` (optional; explicit value wins over diff), `lifecycles`, `blacklist` (optional) | +| [test-deploy-host.yml](../../../../../.github/workflows/test-deploy-host.yml): `🖥️ Test: Deploy (host)` | Deploy test (host mode) for invokable non-stack roles that configure the host instead of shipping a container stack. Same diff-driven whitelist resolution as `test-deploy-compose.yml`; no Playwright stage (host roles have no web UI). | reusable | `distros` (required), `whitelist` (optional; explicit value wins over diff), `lifecycles`, `blacklist` (optional) | +| [test-deploy-swarm.yml](../../../../../.github/workflows/test-deploy-swarm.yml): `🐝 Test: Deploy (swarm)` | Deploy test (swarm mode) across the full application matrix; each app gets a simulated 3-node DinD cluster with an NFS server, then a drain/reschedule state-survival assertion. Same diff-driven whitelist resolution as `test-deploy-compose.yml`. | reusable, manual | `whitelist` (optional; explicit value wins over diff), `lifecycles`, `blacklist` (optional; reusable trigger only) | | [test-install-make.yml](../../../../../.github/workflows/test-install-make.yml): `📥 Test: Install Make` | Validates the `make install` entry points. | reusable | none | | [test-install-pkgmgr.yml](../../../../../.github/workflows/test-install-pkgmgr.yml): `📥 Test: Install Package Manager` | Validates installation via the upstream package manager. | reusable | none | | [test-environment.yml](../../../../../.github/workflows/test-environment.yml): `💻 Test: Development Environment` | Builds and exercises the dev-runtime image matrix. | reusable, manual | none | diff --git a/scripts/meta/resolve/apps.sh b/scripts/meta/resolve/apps.sh index fd535d7240..ca3f3cd800 100755 --- a/scripts/meta/resolve/apps.sh +++ b/scripts/meta/resolve/apps.sh @@ -12,6 +12,7 @@ set -euo pipefail # Inputs via env (defaults live in default.env, the single source of truth): # INFINITO_DEPLOY_MODE compose|swarm|host (required; workflows set it) # INFINITO_WHITELIST optional space-separated app ids to keep +# INFINITO_BLACKLIST optional space-separated app ids to drop # INFINITO_MAX_JOBS cumulative job cap # INFINITO_DISCOVERY_SORT complexity --sort spec (coverage-first) # INFINITO_REQUIRED_STORAGE per-runner CI storage budget @@ -67,6 +68,12 @@ if [[ -n "${INFINITO_WHITELIST// /}" ]]; then wl_csv="${wl_csv%,}" filter="${filter} and name %% {${wl_csv}}" fi +if [[ -n "${INFINITO_BLACKLIST:-}" && -n "${INFINITO_BLACKLIST// /}" ]]; then + bl_csv="$(printf '%s' "${INFINITO_BLACKLIST}" | tr -s ' ' ',')" + bl_csv="${bl_csv#,}" + bl_csv="${bl_csv%,}" + filter="${filter} and not (name %% {${bl_csv}})" +fi unique_args=() if [[ "$mode" == "compose" ]]; then diff --git a/utils/env/handlers/passthrough.py b/utils/env/handlers/passthrough.py index 0df6657c2d..666305758e 100644 --- a/utils/env/handlers/passthrough.py +++ b/utils/env/handlers/passthrough.py @@ -71,6 +71,7 @@ STATIC_KEYS = ( "INFINITO_BUILDKIT_ENABLED", "INFINITO_DEBUG", "INFINITO_WHITELIST", + "INFINITO_BLACKLIST", "INFINITO_LIMIT_HOST", "INFINITO_RUN_FLAGS", "INFINITO_WORKER_ENABLED",