fix(ci): address lint violations and unit test updates for plan tree envelope (#9313)
CI / benchmark-publish (pull_request) Has been skipped
CI / helm (pull_request) Successful in 48s
CI / build (pull_request) Successful in 58s
CI / lint (pull_request) Successful in 1m8s
CI / quality (pull_request) Successful in 1m16s
CI / push-validation (pull_request) Successful in 31s
CI / benchmark-regression (pull_request) Failing after 1m20s
CI / typecheck (pull_request) Successful in 1m49s
CI / security (pull_request) Successful in 1m49s
CI / integration_tests (pull_request) Successful in 4m31s
CI / e2e_tests (pull_request) Failing after 5m15s
CI / unit_tests (pull_request) Successful in 6m4s
CI / docker (pull_request) Successful in 2m1s
CI / coverage (pull_request) Successful in 15m13s
CI / status-check (pull_request) Failing after 5s

This commit is contained in:
2026-05-09 04:47:18 +00:00
parent 78f399fd4e
commit 996c6b16af
2 changed files with 7 additions and 4 deletions
+6 -1
View File
@@ -402,7 +402,12 @@ def step_roots_no_children(context: Context) -> None:
@then("the json tree output should be valid json")
def step_tree_json_valid(context: Context) -> None:
parsed = json.loads(context.pe_tree_json)
assert isinstance(parsed, list), "Expected a JSON array"
assert isinstance(parsed, dict), (
f"Expected JSON envelope (dict), got {type(parsed).__name__}"
)
_ENVELOPE_KEYS = {"command", "status", "exit_code", "data", "timing", "messages"}
missing = _ENVELOPE_KEYS - set(parsed.keys())
assert not missing, f"Envelope missing required fields: {missing}"
@then('the json tree output should contain "{text}"')
+1 -3
View File
@@ -4154,9 +4154,7 @@ def tree_decisions_cmd(
if fmt in (OutputFormat.JSON, OutputFormat.YAML):
console.print(
format_output(
tree_data, fmt, command="plan tree", status="ok", exit_code=0
)
format_output(tree_data, fmt, command="plan tree", status="ok", exit_code=0)
)
elif fmt == OutputFormat.TABLE:
# Flatten for table view