Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
65 changes: 65 additions & 0 deletions hydra-gates/scripts/run-hydra-gates.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12023,6 +12023,71 @@ elif [ "${_wfs_ran}" -eq 1 ]; then
fi
fi

# ---------------------------------------------------------------------------
# GATE 111 — flow-node-taxonomy
#
# A flow node that does not say what kind of step it is.
#
# WHY THIS BLOCK IS BEING ADDED LATE. #698 shipped gate-111 complete except for
# this: the checker, its acceptance fixtures, its expect.conf row and its own
# test suite all landed, and nothing ever called it. So it emitted no verdict
# in any repository, and `test_gate_acceptance_matrix.sh` failed with the only
# sentence that fits:
#
# FAIL — [flow-node-taxonomy/planted] gate-111 emitted NO verdict line at
# all — a gate that says nothing is not a pass
#
# That failure fails the `Package invariants` job, which is a REQUIRED check on
# main, so an unregistered gate has been blocking every pull request to this
# repository since #698 merged.
#
# SCOPED BY PATH, NEVER BY INTERFACE — #698's own design note, and the reason
# the prerequisite below tests for the directory rather than for IFlowNode. On
# a measured instance 38 of 65 step types are contributed by apps in OTHER
# repositories on their own release cycles. An interface-scoped gate would fire
# on all 38, inside pull requests that cannot fix them.
#
# See scripts/lib/check_flow_node_taxonomy.py.
# ---------------------------------------------------------------------------
if [ -d lib/Service/Flow/Nodes ]; then
_fnt_log=${HYDRA_GATE_LOG_DIR}/hydra-gate-flow-node-taxonomy.log
: > "${_fnt_log}"
_fnt_helper="${SCRIPT_DIR}/lib/check_flow_node_taxonomy.py"
if [ ! -f "${_fnt_helper}" ]; then
_skip 111 "flow-node-taxonomy" wiring "check_flow_node_taxonomy.py not found at ${_fnt_helper} — lib/Service/Flow/Nodes exists here and NO node was inspected, so their declared kind and category are UNVERIFIED by this run."
else
set +e
python3 "${_fnt_helper}" . >> "${_fnt_log}" 2>&1
_fnt_rc=$?
set +e
# THE TERMINAL SUMMARY IS THE WIRING CHECK, and the checker says so in
# its own source: without it the runner cannot tell a clean run from a
# crashed one. Asserted before the exit code is believed.
if ! grep -qE '^checked [0-9]+ flow node' "${_fnt_log}" 2>/dev/null; then
_skip 111 "flow-node-taxonomy" wiring "check_flow_node_taxonomy.py exited ${_fnt_rc} without printing its terminal 'checked N flow node' summary, so NO node was judged and their taxonomy is UNVERIFIED by this run. See ${_fnt_log}."
else
case "${_fnt_rc}" in
0)
_pass 111 "flow-node-taxonomy"
;;
1)
cat "${_fnt_log}"
_fnt_n=$(grep -cE '^FAIL ' "${_fnt_log}" 2>/dev/null || echo 0)
_fail 111 "flow-node-taxonomy" "${_fnt_n} flow node(s) that do not declare what kind of step they are — a BPMN export serves them as serviceTask/other, which looks answered and is not. See ${_fnt_log}"
;;
4)
_skip 111 "flow-node-taxonomy" na "no lib/Service/Flow/Nodes in this repository — it contributes no flow node of its own, and a node it contributes from elsewhere is not this gate's business (#698)."
;;
*)
_skip 111 "flow-node-taxonomy" wiring "check_flow_node_taxonomy.py exited ${_fnt_rc}, which is not one of its documented statuses (0 pass, 1 fail, 4 not applicable). NO verdict was produced. See ${_fnt_log}."
;;
esac
fi
fi
else
_skip 111 "flow-node-taxonomy" na "no lib/Service/Flow/Nodes in this repository — it contributes no flow node of its own, and a node it contributes from elsewhere is not this gate's business (#698)."
fi

# ---------------------------------------------------------------------------
# Summary + COVERAGE ACCOUNTING
#
Expand Down
Loading