From 6f44ce3570e8ece06d79d90ce222fed6a598196f Mon Sep 17 00:00:00 2001 From: mday-io Date: Tue, 24 Nov 2026 18:11:40 -0500 Subject: [PATCH 1/4] ci(bigquery): experiment with pinned google-cloud-bigquery, grpcio and pytest Temporary, do not merge. Runs engine-tests-cloud for BigQuery only on this branch's PR, pins three dependencies, and streams resource samples to the live log. Signed-off-by: mday-io --- .github/workflows/pr.yaml | 23 ++++++++++------------- 1 file changed, 10 insertions(+), 13 deletions(-) diff --git a/.github/workflows/pr.yaml b/.github/workflows/pr.yaml index b97a8d2d1f..dfd0d0d93d 100644 --- a/.github/workflows/pr.yaml +++ b/.github/workflows/pr.yaml @@ -345,23 +345,15 @@ jobs: engine-tests-cloud: needs: engine-tests-docker - if: github.ref == 'refs/heads/main' + # TEMPORARY (do not merge): run on this experiment branch's PR too. + if: github.ref == 'refs/heads/main' || github.head_ref == 'ci/bigquery-pins' runs-on: ubuntu-24.04 timeout-minutes: 25 strategy: fail-fast: false matrix: - engine: - [ - snowflake, - databricks, - redshift, - bigquery, - clickhouse-cloud, - athena, - fabric, - gcp-postgres, - ] + # TEMPORARY (do not merge): BigQuery only for the experiment. + engine: [bigquery] env: PYTEST_XDIST_AUTO_NUM_WORKERS: 4 SQLMESH__DISABLE_ANONYMIZED_ANALYTICS: '1' @@ -451,14 +443,19 @@ jobs: mkdir -p test-results ( 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}' + } 2>&1 | tee -a test-results/bigquery-resources.log sleep 5 done - ) >> test-results/bigquery-resources.log 2>&1 & + ) & trap "kill $! 2>/dev/null || true" EXIT make engine-bigquery-install uv pip install -e ".[bigframes]" + # Experiment: pin these to test whether a dependency bump causes the runner death. + uv pip install "google-cloud-bigquery==3.46.2" "grpcio==1.84.0" "pytest==9.1.1" + uv pip list | grep -iE '^(google-cloud-bigquery|grpcio|pytest) ' # Same commands as the Makefile's bigquery-test target, under a timeout so # pytest itself (not just make) is stopped before the 25 minute job limit. set -o pipefail From 3e6c1f19e0a83371750622f770ac0072ecb6cb10 Mon Sep 17 00:00:00 2001 From: mday-io Date: Tue, 24 Nov 2026 18:37:04 -0500 Subject: [PATCH 2/4] ci(bigquery): keep only the grpcio pin Narrow the experiment: google-cloud-bigquery and pytest float again. Signed-off-by: mday-io --- .github/workflows/pr.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pr.yaml b/.github/workflows/pr.yaml index dfd0d0d93d..b2539bb4b3 100644 --- a/.github/workflows/pr.yaml +++ b/.github/workflows/pr.yaml @@ -454,7 +454,7 @@ jobs: make engine-bigquery-install uv pip install -e ".[bigframes]" # Experiment: pin these to test whether a dependency bump causes the runner death. - uv pip install "google-cloud-bigquery==3.46.2" "grpcio==1.84.0" "pytest==9.1.1" + uv pip install "grpcio==1.84.0" uv pip list | grep -iE '^(google-cloud-bigquery|grpcio|pytest) ' # Same commands as the Makefile's bigquery-test target, under a timeout so # pytest itself (not just make) is stopped before the 25 minute job limit. From 19cc26da3da3ab97e95061423100152048930298 Mon Sep 17 00:00:00 2001 From: mday-io Date: Tue, 24 Nov 2026 18:47:46 -0500 Subject: [PATCH 3/4] ci(bigquery): pin only google-cloud-bigquery The grpcio-only run still ran out of memory during collection, so grpcio is not the cause. Signed-off-by: mday-io --- .github/workflows/pr.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pr.yaml b/.github/workflows/pr.yaml index b2539bb4b3..bd6c4cee30 100644 --- a/.github/workflows/pr.yaml +++ b/.github/workflows/pr.yaml @@ -454,7 +454,7 @@ jobs: make engine-bigquery-install uv pip install -e ".[bigframes]" # Experiment: pin these to test whether a dependency bump causes the runner death. - uv pip install "grpcio==1.84.0" + uv pip install "google-cloud-bigquery==3.46.2" uv pip list | grep -iE '^(google-cloud-bigquery|grpcio|pytest) ' # Same commands as the Makefile's bigquery-test target, under a timeout so # pytest itself (not just make) is stopped before the 25 minute job limit. From d8c98f84d47d748bd0553a67607cfe0f3d1df71a Mon Sep 17 00:00:00 2001 From: mday-io Date: Tue, 24 Nov 2026 18:58:22 -0500 Subject: [PATCH 4/4] ci(bigquery): pin only pytest Pinning grpcio or google-cloud-bigquery alone still ran out of memory during collection, leaving pytest 9.2.0 as the suspect. Signed-off-by: mday-io --- .github/workflows/pr.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pr.yaml b/.github/workflows/pr.yaml index bd6c4cee30..806bbb9a92 100644 --- a/.github/workflows/pr.yaml +++ b/.github/workflows/pr.yaml @@ -454,7 +454,7 @@ jobs: make engine-bigquery-install uv pip install -e ".[bigframes]" # Experiment: pin these to test whether a dependency bump causes the runner death. - uv pip install "google-cloud-bigquery==3.46.2" + uv pip install "pytest==9.1.1" uv pip list | grep -iE '^(google-cloud-bigquery|grpcio|pytest) ' # Same commands as the Makefile's bigquery-test target, under a timeout so # pytest itself (not just make) is stopped before the 25 minute job limit.