From 8ae942b5aaceac1f633b486a958f62b56fa5c742 Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 7 May 2026 13:25:47 +0000 Subject: [PATCH] diag(quic-interop): run-matrix.sh propagates DEBUG=1 to make build Single command for the diagnostic loop: DEBUG=1 ./quic/interop/run-matrix.sh -s aioquic -t multiplexing ./quic/interop/inspect-multiplexing.sh Previously users had to remember to 'cd quic/interop && make build DEBUG=1' as a separate step, which is easy to forget. --- quic/interop/run-matrix.sh | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/quic/interop/run-matrix.sh b/quic/interop/run-matrix.sh index fcfa7eb12..cc8389eb9 100755 --- a/quic/interop/run-matrix.sh +++ b/quic/interop/run-matrix.sh @@ -100,10 +100,18 @@ if ! jq -e '.amethyst' "$RUNNER_DIR/implementations_quic.json" >/dev/null 2>&1; mv "$tmp" "$RUNNER_DIR/implementations_quic.json" fi -# 4. Build the endpoint image (skippable for tight loops). +# 4. Build the endpoint image (skippable for tight loops). Pass DEBUG=1 +# to bake QUIC_INTEROP_DEBUG=1 into the image so the InteropClient + +# writer emit per-drain stats to stderr (visible via +# inspect-multiplexing.sh after the run). Off by default. if [ "${SKIP_BUILD:-0}" != "1" ]; then - echo "==> building amethyst-quic-interop image" - make -C "$SCRIPT_DIR" build + if [ "${DEBUG:-0}" = "1" ]; then + echo "==> building amethyst-quic-interop image (DEBUG=1)" + make -C "$SCRIPT_DIR" build DEBUG=1 + else + echo "==> building amethyst-quic-interop image" + make -C "$SCRIPT_DIR" build + fi fi # 5. Drive the runner.