test: push_probe_results.sh — 真机commit probe结果到modelhub

This commit is contained in:
Claude
2026-08-15 14:34:49 +00:00
committed by root
parent 437ad8aaa4
commit 7a8545f7c2

30
push_probe_results.sh Executable file
View File

@@ -0,0 +1,30 @@
#!/bin/bash
# 在真机上执行把probe结果和.so文件commit到repo
set -e
cd /home/dylan/0814/project_6
# 1. 先跑第二个probe如果还没跑的话
if [ ! -f probe_bridge_output.txt ]; then
echo "[1/4] Running probe_ix_unified_bridge.sh..."
bash probe_ix_unified_bridge.sh 2>&1 | tee probe_bridge_output.txt
else
echo "[1/4] probe_bridge_output.txt already exists"
fi
# 2. commit probe结果不commit .so文件太大了
echo "[2/4] Committing probe results..."
git add probe_bridge_output.txt
git add -f probe_output.txt 2>/dev/null || true
git commit -m "data: probe results — ixformer API + ix_unified_bridge + corex_*.so函数列表" || echo "nothing to commit"
# 3. push到modelhub
echo "[3/4] Pushing to modelhub..."
git push origin main
# 4. 提示中转机操作
echo ""
echo "[4/4] 现在去中转机执行:"
echo " cd /home/dylan/Downloads/github_0804/project_6"
echo " git pull modelhub main"
echo " git push origin main"