fix(quic-interop): use a fresh per-invocation log subdir
run.py refuses to start if --log-dir already exists (interop.py:81-82 calls sys.exit). Previous script eagerly mkdir'd $LOG_DIR, which made the second run always fail. New layout: $LOG_DIR is the parent (created if missing), each invocation writes to $LOG_DIR/run-YYYYmmdd-HHMMSS/. Preserves history of past runs instead of overwriting; latest is `ls -t $LOG_DIR | head -1`. https://claude.ai/code/session_01HcvfQq1ttPV9PkRoJb4nyT
This commit is contained in:
@@ -91,8 +91,13 @@ if [ "${SKIP_BUILD:-0}" != "1" ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# 5. Drive the runner.
|
# 5. Drive the runner.
|
||||||
|
#
|
||||||
|
# run.py hard-exits if --log-dir already exists, so we use a fresh
|
||||||
|
# per-invocation subdirectory under $LOG_DIR. The parent must exist; the
|
||||||
|
# child must not. Tail of `ls -t "$LOG_DIR" | head -1` finds the latest.
|
||||||
mkdir -p "$LOG_DIR"
|
mkdir -p "$LOG_DIR"
|
||||||
echo "==> running matrix (args: $* | logs: $LOG_DIR)"
|
RUN_LOG_DIR="$LOG_DIR/run-$(date +%Y%m%d-%H%M%S)"
|
||||||
|
echo "==> running matrix (args: $* | logs: $RUN_LOG_DIR)"
|
||||||
cd "$RUNNER_DIR"
|
cd "$RUNNER_DIR"
|
||||||
exec "$RUNNER_DIR/.venv/bin/python" run.py \
|
exec "$RUNNER_DIR/.venv/bin/python" run.py \
|
||||||
-d -i amethyst --log-dir "$LOG_DIR" "$@"
|
-d -i amethyst --log-dir "$RUN_LOG_DIR" "$@"
|
||||||
|
|||||||
Reference in New Issue
Block a user