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:
+10
-7
@@ -4,10 +4,9 @@ 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-15-fault-suite"
|
||||
SUMMARY_HELPER="${SCRIPT_DIR}/fault_summary_helper.py"
|
||||
|
||||
@@ -77,6 +76,14 @@ allocate_run_dir() {
|
||||
|
||||
allocate_run_dir || exit 1
|
||||
|
||||
RUN_HASH="$(printf '%s' "${RUN_ID}" | cksum | awk '{print $1}')"
|
||||
PORT_OFFSET="$((RUN_HASH % 1000))"
|
||||
if [[ "${MODE}" == "baseline" ]]; then
|
||||
SCENARIO_PORT_BASE="$((52040 + PORT_OFFSET))"
|
||||
else
|
||||
SCENARIO_PORT_BASE="$((52140 + PORT_OFFSET))"
|
||||
fi
|
||||
|
||||
echo -e "order\tscenario_id\tname\tstatus\treason\tduration_ms\tsim_rc\tstreamer_rc\ttester_rc\tsim_log\tstreamer_log\ttester_log\tsdp_path" > "${MANIFEST_TSV}"
|
||||
|
||||
cleanup_pids=()
|
||||
@@ -134,11 +141,7 @@ append_manifest_row() {
|
||||
|
||||
scenario_port() {
|
||||
local order="$1"
|
||||
if [[ "${MODE}" == "baseline" ]]; then
|
||||
echo $((52040 + (order - 1) * 2))
|
||||
else
|
||||
echo $((52140 + (order - 1) * 2))
|
||||
fi
|
||||
echo $((SCENARIO_PORT_BASE + (order - 1) * 2))
|
||||
}
|
||||
|
||||
run_fault_scenario() {
|
||||
|
||||
Reference in New Issue
Block a user