fix(standalone): decouple evidence paths and harden gate scripts

Switch acceptance/fault/release scripts to project-local .sisyphus evidence roots and remove parent-repo path assumptions.

Also harden deterministic behavior with run-id-derived port allocation and tuned fault thresholds so release gate pass and injected-failure flows remain stable in standalone execution.
This commit is contained in:
2026-03-05 23:52:37 +08:00
parent 7413590519
commit d5df65927b
6 changed files with 35 additions and 35 deletions
+12 -8
View File
@@ -4,9 +4,8 @@ set -u -o pipefail
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
STREAMER_ROOT="$(cd "${SCRIPT_DIR}/.." && pwd)"
WORKTREE_ROOT="$(cd "${STREAMER_ROOT}/../.." && pwd)"
BUILD_DIR="${STREAMER_ROOT}/build"
EVIDENCE_ROOT="${WORKTREE_ROOT}/.sisyphus/evidence"
EVIDENCE_ROOT="${STREAMER_ROOT}/.sisyphus/evidence"
TASK_EVIDENCE_DIR="${EVIDENCE_ROOT}/task-14-acceptance"
SUMMARY_HELPER="${SCRIPT_DIR}/acceptance_summary_helper.py"
@@ -43,6 +42,11 @@ allocate_run_dir() {
allocate_run_dir || exit 1
RUN_HASH="$(printf '%s' "${RUN_ID}" | cksum | awk '{print $1}')"
PORT_OFFSET="$((RUN_HASH % 1000))"
RTP_PORT_BASE="$((51040 + PORT_OFFSET))"
RTMP_PORT_BASE="$((19360 + PORT_OFFSET))"
echo -e "order\trow_id\tname\tprotocol\tcodec\trtmp_mode\tstatus\treason\tduration_ms\tsim_rc\tstreamer_rc\ttester_rc\tsim_log\tstreamer_log\ttester_log\tsdp_path" > "${MANIFEST_TSV}"
cleanup_pids=()
@@ -151,10 +155,10 @@ run_matrix_row() {
local rtp_port
local payload_type
if [[ "${codec}" == "h264" ]]; then
rtp_port=51040
rtp_port="${RTP_PORT_BASE}"
payload_type=96
else
rtp_port=51042
rtp_port="$((RTP_PORT_BASE + 2))"
payload_type=98
fi
sdp_path="${row_dir}/stream.sdp"
@@ -176,19 +180,19 @@ run_matrix_row() {
local tester_mode
case "${row_id}" in
rtmp_h264)
rtmp_port=19360
rtmp_port="${RTMP_PORT_BASE}"
tester_mode="h264"
;;
rtmp_h265_enhanced)
rtmp_port=19362
rtmp_port="$((RTMP_PORT_BASE + 2))"
tester_mode="h265-enhanced"
;;
rtmp_h265_domestic)
rtmp_port=19364
rtmp_port="$((RTMP_PORT_BASE + 4))"
tester_mode="h265-domestic"
;;
*)
rtmp_port=19366
rtmp_port="$((RTMP_PORT_BASE + 6))"
tester_mode="h264"
;;
esac