ENTRYPOINTS: per-SHA clean detached worktrees for unit tests (TRON fix)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
ClaudeandClaude Opus 5.5 committed 2026-11-24 17:00:30 +00:00
1 parent edbde75f2a
commit 2d46c5e31c
1 file changed
+11
+11
View File
@@ -11,6 +11,17 @@ git sparse-checkout init --cone
git sparse-checkout set tools docs handover
git checkout 591299e0b23fe962661f32d90fa80e6ae8a53927 # 主代码基线
```
**无数据单元测试:每个提交一个独立、干净的 detached worktree**(不要用连续的 `git checkout <SHA> -- tools`:那只覆盖文件、不删除旧文件、不移动 HEAD,结果是混合目录,只能算冒烟测试):
```
for spec in "727a01bc3f6184b33b5b9eaee95b2ce4eb90e279 tools/test_track_b_transolver_greif.py" \
"a13521afcc9feb874c7003720704f5639916c556 tools/test_multigate_features.py" \
"01c1cc53fcad8c0aee33cc78ecc9408267fdcc6b tools/test_win_test_select_rules.py"; do
set -- $spec
git worktree add --detach "../wt-$1" "$1"
(cd "../wt-$1" && git rev-parse HEAD && python -m unittest -v "$2" 2>&1 | tail -5)
done
```
每项记录:`git rev-parse HEAD`、测试数、跳过数、结果。
数据不在 Git:Greif v5 Zenodo 18598121(MD5 75ec1500…,本地 SHA d151f018…);v4 11370149(MD5 4973f24e…);新家族 17831586(MD5 4e46bb29…)。
## 1. 公开 Git 中的入口(可从检出重跑,需数据与运行根合同)