Skip to content

Commit 59c8dd8

Browse files
author
Codex
committed
ci(test): prepare submodules in benchmark worktrees
1 parent 8e69290 commit 59c8dd8

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

.github/workflows/udp-taskpool-tdd.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -108,16 +108,22 @@ jobs:
108108
git worktree add --detach "$base_wt" "$BASE_SHA"
109109
git worktree add --detach "$head_wt" "$HEAD_SHA"
110110
111-
(cd "$base_wt" && make ebpf)
111+
(cd "$base_wt" && git submodule update --init --recursive && make ebpf) > tdd-artifacts/bench/base-prepare.log 2>&1
112112
base_prep_status=$?
113-
(cd "$head_wt" && make ebpf)
113+
(cd "$head_wt" && git submodule update --init --recursive && make ebpf) > tdd-artifacts/bench/head-prepare.log 2>&1
114114
head_prep_status=$?
115115
116116
bench_failed=0
117117
118118
if [[ $base_prep_status -ne 0 || $head_prep_status -ne 0 ]]; then
119119
bench_failed=1
120-
echo "Benchmark prepare failed: base=$base_prep_status head=$head_prep_status" > tdd-artifacts/bench/error.log
120+
{
121+
echo "Benchmark prepare failed: base=$base_prep_status head=$head_prep_status"
122+
echo "--- base prepare log (tail) ---"
123+
tail -n 120 tdd-artifacts/bench/base-prepare.log || true
124+
echo "--- head prepare log (tail) ---"
125+
tail -n 120 tdd-artifacts/bench/head-prepare.log || true
126+
} > tdd-artifacts/bench/error.log
121127
else
122128
suites=(
123129
"udp_taskpool_core|BenchmarkUdpTaskPool$"

0 commit comments

Comments
 (0)