HoloMotion_S600HIL/scripts/verify_stack.sh
d-robotics 171d60a79a test: 验收门四件套 + 一键 verify_stack(全绿)
- tests/test_portability.py: /home/* 绝对路径 0 命中 + /root/ssd 板端白名单
- tests/test_clips.py: clips/ 9 npz 六键齐全
- tests/test_obs_parity.py: obs_fast vs obs_builder_np 逐位对拍(移植既有
  obs_fast_test),可选第三腿对拍上游 PolicyObsBuilder(300 tick allclose)
- tests/smoke_local.py: 模式 1 全栈冒烟编排(自起 service+机体,遥测流就绪
  后驱动 smoke_test;帧率>=30Hz + 持续低位=摔倒判定,模式标签归因)
- scripts/verify_stack.sh: 一键门,本次实测全绿(obs 提速 2.6x 也复测)

顺手修正(均实测定位):
- rs_paths 默认场景改官方平地 scene_29dof(板端长期实证配置;scenes/
  scene_default 多物体场景行走冒烟会撞减速带,留作 RS_SCENE 可选)
- smoke_test.py drain limit 5->500:DANCE 期间状态积压 ~10 条,取最老 5 条
  导致 ESTOP 断言误判
- 已知问题:模式 1 WALK->DANCE 切换存在间歇性摔倒(~7跑3摔),摔倒探测器
  能捕获,见 docs/INTERFACE.md

Co-Authored-By: Claude Code <noreply@anthropic.com>
2026-10-08 18:59:09 +08:00

36 lines
1.2 KiB
Bash
Executable File
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!/usr/bin/env bash
# 一键验收门:上游迁移后 / 板子交接前都必须全绿。
# 1. test_portability 绝对路径 0 命中(/root/ssd 仅板端脚本)
# 2. test_clips clips/ 全部 npz 六键齐全
# 3. test_obs_parity obs 移植对拍(+可选上游第三腿)
# 4. smoke_local 模式 1 全栈冒烟(起自己的进程,只杀自己的)
# 用法: bash scripts/verify_stack.sh (CONSOLE_PY=... 可换解释器)
set -u
DIR="$(cd "$(dirname "$0")/.." && pwd)"
PY="${CONSOLE_PY:-$HOME/miniconda3/envs/holomotion_train/bin/python}"
PASS=(); FAIL=(); SKIP=()
gate() { # gate <名> <cmd...>
local name="$1"; shift
echo; echo "===== [$name] ====="
if "$@"; then
PASS+=("$name")
else
FAIL+=("$name")
fi
}
gate portability "$PY" "$DIR/tests/test_portability.py"
gate clips "$PY" "$DIR/tests/test_clips.py"
gate obs-parity "$PY" "$DIR/tests/test_obs_parity.py"
gate smoke "$PY" "$DIR/tests/smoke_local.py"
echo
echo "=========================================="
echo "PASS: ${PASS[*]:-无}"
echo "FAIL: ${FAIL[*]:-无}"
if [ ${#FAIL[@]} -gt 0 ]; then
echo ">>> 验收门未通过"; exit 1
fi
echo ">>> 验收门全绿"