Files
computer-playbook/cli/deploy/test/select.py
T
kevinveenbirkenbach dba121ecf4 refactor(ci): move deploy test runner from bash to python orchestrator
* Add `cli.deploy.test` module to orchestrate compose-based CI deploy tests
* Support server per-app runs (including run_after dependencies) and workstation selection
* Add optional image build flags (--no-cache, --missing) and stack retention on failure
* Simplify `scripts/tests/deploy.sh` to a thin wrapper that forwards args to the Python runner

https://chatgpt.com/share/695f9e22-6e9c-800f-9a50-65f553619af2
2026-01-08 13:07:57 +01:00

23 lines
644 B
Python

from __future__ import annotations
from typing import Iterable
def filter_allowed_workstation(app_ids: Iterable[str]) -> list[str]:
# keep your existing workstation selection:
# desk-* and util-desk-*
out: list[str] = []
for a in app_ids:
if a.startswith("desk-") or a.startswith("util-desk-"):
out.append(a)
return out
def filter_allowed_server(app_ids: Iterable[str]) -> list[str]:
# server deploy test for invokable web-app-* and web-svc-*
out: list[str] = []
for a in app_ids:
if a.startswith("web-app-") or a.startswith("web-svc-"):
out.append(a)
return out