From 52e0e4cf4ee8b1b3f68a90a59c9e3b3be22b57cc Mon Sep 17 00:00:00 2001 From: reachableceo Date: Wed, 26 Aug 2026 20:49:44 -0500 Subject: [PATCH] chore(framework): complete TSYSGroupAIOS adoption + extend Kuma device coverage [#420][#435] MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fill the framework gaps the Makefile already referenced: scripts/test.sh (wrapper over tests/run-tests.sh, now exercised by the pre-push full audit) and up.sh/down.sh stubs for this non-compose repo. Extend kuma-fleet-sync STATIC_GEAR with the fixed network/office devices (printer, consrv, tsys6/7 OOB, scanners, label printer, r1-tor-top, DOME) so future runs keep their ICMP monitors in sync; DOME added paused like the other known-down systems. 💘 Generated with Crush Assisted-by: Crush:glm-5.2 --- scripts/down.sh | 9 +++++++++ scripts/kuma-fleet-sync.py | 13 ++++++++++++- scripts/test.sh | 18 ++++++++++++++++++ scripts/up.sh | 11 +++++++++++ 4 files changed, 50 insertions(+), 1 deletion(-) create mode 100755 scripts/down.sh create mode 100755 scripts/test.sh create mode 100755 scripts/up.sh diff --git a/scripts/down.sh b/scripts/down.sh new file mode 100755 index 0000000..4066e36 --- /dev/null +++ b/scripts/down.sh @@ -0,0 +1,9 @@ +#!/usr/bin/bash +# +# down.sh — docker compose lifecycle wrapper (framework entry point). +# +# No compose stack in this repo; see up.sh. +# +set -euo pipefail +echo "down.sh: no docker-compose stack in PFVCluster (infra repo). See AGENTS.md." +exit 0 diff --git a/scripts/kuma-fleet-sync.py b/scripts/kuma-fleet-sync.py index 3db015b..5679162 100644 --- a/scripts/kuma-fleet-sync.py +++ b/scripts/kuma-fleet-sync.py @@ -33,16 +33,27 @@ STATIC_GEAR = [ "pfv-r3-tor-mgmt-01.knel.net", "pfv-r3-tor-stor-01.knel.net", "pfv-r2-tor-01.knel.net", + "pfv-r1-tor-top.knel.net", "pfv-r6-mgmt-01.knel.net", "pfv-rrinfra-rtr.knel.net", "ap-tablemount.knel.net", "ap-wallmount.knel.net", "pfv-garage-pdu-1.knel.net", "pfv-stor1.knel.net", + "pfv-printer.knel.net", + "pfv-consrv.knel.net", + "pfv-tsys6-oob.knel.net", + "pfv-tsys7-oob.knel.net", + "stl-canon-scanner-artroom.knel.net", + "brother-label-printer.knel.net", + "dell-openmanage-enterprise.knel.net", "netbird.knel.net", "tsys-cloudron.knel.net", ] -PAUSED_BY_DEFAULT = {"stlp-3dscanner.knel.net"} +PAUSED_BY_DEFAULT = { + "stlp-3dscanner.knel.net", + "dell-openmanage-enterprise.knel.net", +} def fleet_targets(): diff --git a/scripts/test.sh b/scripts/test.sh new file mode 100755 index 0000000..f5c11cd --- /dev/null +++ b/scripts/test.sh @@ -0,0 +1,18 @@ +#!/usr/bin/bash +# +# test.sh — project test runner (framework entry point). +# +# Wraps the legacy suite in tests/ so `make test` and the pre-push full +# audit (scripts/check-rules.sh) have a single canonical entry point. +# The legacy suite sources the vendored KNELShellFramework; if that ever +# breaks, add standalone checks here rather than forking the runner. +# +set -uo pipefail +cd "$(dirname "${BASH_SOURCE[0]}")/.." || exit 1 + +status=0 +if [ -f tests/run-tests.sh ]; then + bash tests/run-tests.sh || status=1 +fi + +exit "$status" diff --git a/scripts/up.sh b/scripts/up.sh new file mode 100755 index 0000000..026c308 --- /dev/null +++ b/scripts/up.sh @@ -0,0 +1,11 @@ +#!/usr/bin/bash +# +# up.sh — docker compose lifecycle wrapper (framework entry point). +# +# This repo is infrastructure-as-code (scripts + configs), not a compose +# stack; there is nothing to bring up. Kept so `make up` stays honest +# across TSYSGroupAIOS-adopted projects. +# +set -euo pipefail +echo "up.sh: no docker-compose stack in PFVCluster (infra repo). See AGENTS.md." +exit 0