From f9a8875396c76bd90519497bdee6ec674993bf1e Mon Sep 17 00:00:00 2001 From: mday-io Date: Mon, 23 Nov 2026 10:35:35 -0500 Subject: [PATCH] ci(bigquery): add temporary diagnostics to the cloud test job Since 2026-10-31 engine-tests-cloud (bigquery) fails on every main run with "The runner has received a shutdown signal" 40-75s after pytest starts. pytest output is block-buffered, so the logs show nothing about which tests were running or why the runner went down. For the bigquery matrix entry only: - PYTHONUNBUFFERED=1 and PYTEST_ADDOPTS=-v so test results stream live - a background loop logging memory, swap, disk and the top RSS processes every 5s, stopped when the step exits Other engines are unchanged. Revert once the cause is found. Signed-off-by: mday-io --- .github/workflows/pr.yaml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/.github/workflows/pr.yaml b/.github/workflows/pr.yaml index 219488a874..c7b5b21870 100644 --- a/.github/workflows/pr.yaml +++ b/.github/workflows/pr.yaml @@ -435,8 +435,24 @@ jobs: ./.github/scripts/manage-test-db.sh "${{ matrix.engine }}" "$TEST_DB_NAME" up - name: Run tests + env: + # Temporary BigQuery diagnostics: since 2026-10-31 the runner is shut down + # ~1 minute into pytest with no test output. Stream test results and log + # memory/disk so the next failure shows what was running. Remove once fixed. + PYTHONUNBUFFERED: ${{ matrix.engine == 'bigquery' && '1' || '' }} + PYTEST_ADDOPTS: ${{ matrix.engine == 'bigquery' && '-v' || '' }} run: | source .venv/bin/activate + if [ "${{ matrix.engine }}" = "bigquery" ]; then + ( + while true; do + echo "[resources $(date -u +%T)] $(free -m | awk '/Mem:/{print "mem_used="$3"MB mem_avail="$7"MB"}') $(free -m | awk '/Swap:/{print "swap_used="$3"MB"}') $(df -h / | awk 'NR==2{print "disk_used="$5}')" + ps -eo rss=,args= --sort=-rss | head -4 | awk '{rss=$1; $1=""; printf " rss=%dMB %.120s\n", rss/1024, $0}' + sleep 5 + done + ) & + trap "kill $! 2>/dev/null || true" EXIT + fi make ${{ matrix.engine }}-test - name: Tear down test database if: always()