state-tx exits 2 without CP_URL and STATE_TX_NEW_STATE. Each template's target state is its own output.state (test-validated / test-skeleton-ready). Adds an invariant test. Claude-Session: https://claude.ai/code/session_01N218bERyNeLhbLmDRDvbWF
35 lines
936 B
YAML
35 lines
936 B
YAML
name: test-validate
|
|
version: 1
|
|
description: Validate tests are runnable and non-failing by default
|
|
runtime: script
|
|
input:
|
|
state: test-write-pending
|
|
tags_required: []
|
|
required_artifacts: [test_file]
|
|
output:
|
|
state: test-validated
|
|
scope_budget:
|
|
files_modified_max: 1
|
|
lines_diff_max: 50
|
|
wall_clock_seconds_max: 600
|
|
nodes:
|
|
- id: preflight-test-collection
|
|
kind: script
|
|
cmd: scripts/workflow/preflight-test-collection
|
|
on_fail: refuse_dispatch
|
|
- id: preflight-fixture-lint
|
|
kind: script
|
|
cmd: scripts/workflow/preflight-fixture-lint
|
|
on_fail: refuse_dispatch
|
|
- id: preflight-test-fail-mode
|
|
kind: script
|
|
cmd: scripts/workflow/preflight-test-fail-mode
|
|
on_fail: continue
|
|
- id: state-tx
|
|
kind: script
|
|
cmd: scripts/workflow/state-tx
|
|
on_fail: continue
|
|
runtime_env:
|
|
CP_URL: "http://controlplane.agent-runtimes.svc.cluster.local:8100"
|
|
STATE_TX_NEW_STATE: test-validated
|