@@ -101,20 +101,21 @@ jobs:
101101 docker pull ghcr.io/nikolay-e/treemapper-bench:latest
102102 nohup bash -c '
103103 mkdir -p /data/bench_repos
104+ BAKE_LOG=/data/bench_repos/bake.log
104105 if docker run --rm \
105106 -v /data/bench_repos:/cache/contextbench_repos \
106107 -e BAKE_PARALLELISM=16 \
107108 ghcr.io/nikolay-e/treemapper-bench:latest \
108109 python /app/scripts/bake_bench_cache.py /cache/contextbench_repos \
109- >> /var/log/bake.log 2>&1; then
110+ >> "\${BAKE_LOG}" 2>&1; then
110111 touch /data/bench_repos/.ready
111- echo "[bake] OK at \$(date -u +%Y-%m-%dT%H:%M:%SZ)" >> /var/log/bake.log
112+ echo "[bake] OK at \$(date -u +%Y-%m-%dT%H:%M:%SZ)" >> "\${BAKE_LOG}"
112113 else
113114 rc=\$?
114115 touch /data/bench_repos/.bake_failed
115- echo "[bake] FAILED rc=\${rc} at \$(date -u +%Y-%m-%dT%H:%M:%SZ)" >> /var/log/bake.log
116+ echo "[bake] FAILED rc=\${rc} at \$(date -u +%Y-%m-%dT%H:%M:%SZ)" >> "\${BAKE_LOG}"
116117 fi
117- ' >> /var/log/bake.log 2>&1 &
118+ ' &
118119 curl -sL -o /tmp/runner.tar.gz \
119120 "https://github.com/actions/runner/releases/download/v${RUNNER_VER}/actions-runner-linux-x64-${RUNNER_VER}.tar.gz"
120121 for N in 1 2 3 4; do
@@ -269,7 +270,9 @@ jobs:
269270 run : |
270271 while true; do
271272 if [ -f /cache/contextbench_repos/.bake_failed ]; then
272- echo "ERROR: bake job failed — sweep aborted. Check /var/log/bake.log on the runner host."
273+ echo "=== BAKE FAILED — full log ==="
274+ cat /cache/contextbench_repos/bake.log || echo "(bake.log not found)"
275+ echo "=== end of bake.log ==="
273276 exit 1
274277 fi
275278 if [ -f /cache/contextbench_repos/.ready ]; then
0 commit comments