2026-11-05 23:58:16 +01:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
# Bounded-execution contract suite (NK-WP-0058-T02). One list, used by `make contract-test` and by CI.
|
|
|
|
|
# The owners must sit next to net-kingdom (locally the sibling checkouts; in CI tools/contract-tests/fetch_owners.py).
|
|
|
|
|
# A skipped test fails the run: a contract that was not checked must not look green.
|
|
|
|
|
set -euo pipefail
|
|
|
|
|
cd "$(dirname "$0")/../.."
|
|
|
|
|
out=$(mktemp)
|
|
|
|
|
trap 'rm -f "$out"' EXIT
|
|
|
|
|
PYTHONDONTWRITEBYTECODE=1 python3 -m pytest -q -rs -p no:cacheprovider \
|
|
|
|
|
tests/test_executor_lanes.py \
|
|
|
|
|
tests/test_write_role_audit.py \
|
|
|
|
|
bounded-executor/tests/test_approval_request.py \
|
2026-11-06 01:36:48 +01:00
|
|
|
bounded-executor/tests/test_window_watch.py \
|
2026-11-05 23:58:16 +01:00
|
|
|
tools/bounded-execution-readiness/tests \
|
|
|
|
|
tools/bounded-execution-run/tests \
|
|
|
|
|
tools/execution-attribution-receipt/tests \
|
|
|
|
|
sso-mfa/k8s/bounded-executor \
|
2026-11-06 00:13:26 +01:00
|
|
|
tools/contract-tests/tests \
|
NK-WP-0058-T07: conventions lint, server-side applies, one cluster route
tools/conventions/lint.py (make conventions-lint, contract suite): server-side-apply, one-wait-condition,
one-cluster-route, tool-numbered-receipts, managing-controller (Argo-owned paths from railiance-platform),
with reasoned exceptions. 21 runbook applies made server-side. portal-client-rollout.py (and so
keycape-client.py and the rollout tools) and identity-provisioner-reconcile.py use NK_KUBECONFIG,
default ~/.kube/config-railiance01, without a second kubeconfig or --server override.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Assistant: claude-code
Assistant-Model: opus
Assistant-Process: 943911@bnt-lap001
Assistant-Session: fc322940-1c8e-4bed-ab39-86cec99f23a0
2026-11-06 00:34:00 +01:00
|
|
|
tools/conventions/tests \
|
2026-11-05 23:58:16 +01:00
|
|
|
"$@" | tee "$out"
|
|
|
|
|
if grep -q '^SKIPPED' "$out"; then
|
|
|
|
|
echo "contract-test: skipped tests above; every contract must run (are the owner checkouts present?)" >&2
|
|
|
|
|
exit 1
|
|
|
|
|
fi
|