@@ -10,14 +10,18 @@ concurrency:
1010 cancel-in-progress : true
1111permissions :
1212 contents : read
13+ # ubuntu-latest is Ubuntu 26.04. That image drops Python 3.9, installs OpenJDK 25
14+ # (Spark/Hadoop calls the removed Subject.getSubject), and has no Playwright Chromium.
1315jobs :
1416 changes :
15- runs-on : ubuntu-latest
17+ runs-on : ubuntu-24.04
1618 outputs :
1719 python : ${{ steps.filter.outputs.python }}
1820 client : ${{ steps.filter.outputs.client }}
1921 vscode : ${{ steps.filter.outputs.vscode }}
22+ lsp : ${{ steps.filter.outputs.lsp }}
2023 ci : ${{ steps.filter.outputs.ci }}
24+ docs : ${{ steps.filter.outputs.docs }}
2125 steps :
2226 - uses : actions/checkout@v7
2327 - uses : dorny/paths-filter@v4
@@ -37,17 +41,23 @@ jobs:
3741 - 'web/client/**'
3842 vscode:
3943 - 'vscode/**'
44+ lsp:
45+ - 'sqlmesh/lsp/**'
4046 ci:
4147 - '.github/**'
4248 - 'Makefile'
4349 - '.pre-commit-config.yaml'
50+ docs:
51+ - 'docs/**'
52+ - 'mkdocs.yml'
53+ - '.readthedocs.yaml'
4454
4555 doc-tests :
4656 needs : changes
4757 if :
4858 needs.changes.outputs.python == 'true' || needs.changes.outputs.ci ==
4959 ' true' || github.ref == 'refs/heads/main'
50- runs-on : ubuntu-latest
60+ runs-on : ubuntu-24.04
5161 env :
5262 UV : ' 1'
5363 steps :
@@ -68,12 +78,39 @@ jobs:
6878 source .venv/bin/activate
6979 make doc-test
7080
81+ docs-build :
82+ needs : changes
83+ if :
84+ needs.changes.outputs.docs == 'true' || needs.changes.outputs.ci ==
85+ ' true' || github.ref == 'refs/heads/main'
86+ runs-on : ubuntu-latest
87+ env :
88+ UV : ' 1'
89+ steps :
90+ - uses : actions/checkout@v7
91+ - name : Set up Python
92+ # Match the Python version Read the Docs builds with (.readthedocs.yaml)
93+ uses : actions/setup-python@v7
94+ with :
95+ python-version : ' 3.10'
96+ - name : Install uv
97+ uses : astral-sh/setup-uv@v7
98+ - name : Install dependencies
99+ run : |
100+ uv venv .venv
101+ source .venv/bin/activate
102+ make install-doc
103+ - name : Build docs
104+ run : |
105+ source .venv/bin/activate
106+ mkdocs build --strict
107+
71108 style-and-cicd-tests :
72109 needs : changes
73110 if :
74111 needs.changes.outputs.python == 'true' || needs.changes.outputs.ci ==
75112 ' true' || github.ref == 'refs/heads/main'
76- runs-on : ubuntu-latest
113+ runs-on : ubuntu-24.04
77114 strategy :
78115 fail-fast : false
79116 matrix :
@@ -147,6 +184,10 @@ jobs:
147184 . ./venv/Scripts/activate
148185 python.exe -m pip install --upgrade pip
149186 make install-dev
187+ - name : Install DuckLake extension
188+ run : |
189+ . ./venv/Scripts/activate
190+ python -c "import duckdb; duckdb.connect().install_extension('ducklake')"
150191 - name : Run fast unit tests
151192 run : |
152193 . ./venv/Scripts/activate
@@ -166,7 +207,7 @@ jobs:
166207 if :
167208 needs.changes.outputs.python == 'true' || needs.changes.outputs.ci ==
168209 ' true' || github.ref == 'refs/heads/main'
169- runs-on : ubuntu-latest
210+ runs-on : ubuntu-24.04
170211 env :
171212 SQLMESH__DISABLE_ANONYMIZED_ANALYTICS : ' 1'
172213 UV : ' 1'
@@ -195,7 +236,7 @@ jobs:
195236 needs.changes.outputs.client == 'true' || needs.changes.outputs.vscode ==
196237 ' true' || needs.changes.outputs.ci == 'true' || github.ref ==
197238 ' refs/heads/main'
198- runs-on : ubuntu-latest
239+ runs-on : ubuntu-24.04
199240 steps :
200241 - uses : actions/checkout@v7
201242 - uses : actions/setup-node@v7
@@ -222,7 +263,7 @@ jobs:
222263 if :
223264 needs.changes.outputs.client == 'true' || needs.changes.outputs.ci ==
224265 ' true' || github.ref == 'refs/heads/main'
225- runs-on : ubuntu-latest
266+ runs-on : ubuntu-24.04
226267 container :
227268 image : mcr.microsoft.com/playwright:v1.54.1-jammy
228269 steps :
@@ -250,7 +291,7 @@ jobs:
250291 if :
251292 needs.changes.outputs.python == 'true' || needs.changes.outputs.ci ==
252293 ' true' || github.ref == 'refs/heads/main'
253- runs-on : ubuntu-latest
294+ runs-on : ubuntu-24.04
254295 timeout-minutes : 25
255296 strategy :
256297 fail-fast : false
@@ -264,6 +305,7 @@ jobs:
264305 trino,
265306 spark,
266307 clickhouse,
308+ clickhouse-datalake,
267309 risingwave,
268310 starrocks,
269311 ]
@@ -290,6 +332,9 @@ jobs:
290332 run : |
291333 source .venv/bin/activate
292334 make ${{ matrix.engine }}-test
335+ - name : Stop DataLake services
336+ if : ${{ always() && matrix.engine == 'clickhouse-datalake' }}
337+ run : make clickhouse-datalake-down
293338 - name : Upload test results
294339 uses : actions/upload-artifact@v7
295340 if : ${{ !cancelled() }}
@@ -301,7 +346,7 @@ jobs:
301346 engine-tests-cloud :
302347 needs : engine-tests-docker
303348 if : github.ref == 'refs/heads/main'
304- runs-on : ubuntu-latest
349+ runs-on : ubuntu-24.04
305350 timeout-minutes : 25
306351 strategy :
307352 fail-fast : false
@@ -390,9 +435,43 @@ jobs:
390435 ./.github/scripts/manage-test-db.sh "${{ matrix.engine }}"
391436 " $TEST_DB_NAME" up
392437 - name : Run tests
438+ env :
439+ # Temporary BigQuery diagnostics: since 2026-10-31 the BigQuery runner either shuts
440+ # down or stops responding mid-pytest, and its log is never uploaded. Keep the
441+ # evidence in files, stop pytest before the job limit so the runner can recover,
442+ # and upload the files in the steps below. Remove once fixed.
443+ PYTHONUNBUFFERED : ${{ matrix.engine == 'bigquery' && '1' || '' }}
444+ PYTEST_ADDOPTS : ${{ matrix.engine == 'bigquery' && '-v' || '' }}
393445 run : |
394446 source .venv/bin/activate
395- make ${{ matrix.engine }}-test
447+ if [ "${{ matrix.engine }}" != "bigquery" ]; then
448+ make ${{ matrix.engine }}-test
449+ exit
450+ fi
451+ mkdir -p test-results
452+ (
453+ while true; do
454+ 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}')"
455+ ps -eo rss=,args= --sort=-rss | head -4 | awk '{rss=$1; $1=""; printf " rss=%dMB %.120s\n", rss/1024, $0}'
456+ sleep 5
457+ done
458+ ) >> test-results/bigquery-resources.log 2>&1 &
459+ trap "kill $! 2>/dev/null || true" EXIT
460+ make engine-bigquery-install
461+ uv pip install -e ".[bigframes]"
462+ # Same commands as the Makefile's bigquery-test target, under a timeout so
463+ # pytest itself (not just make) is stopped before the 25 minute job limit.
464+ set -o pipefail
465+ timeout --kill-after=60s 18m pytest -n auto -m "bigquery" --reruns 3 \
466+ --junitxml=test-results/junit-bigquery.xml 2>&1 | tee test-results/bigquery-pytest.log
467+ - name : Collect BigQuery diagnostics
468+ if : ${{ always() && matrix.engine == 'bigquery' }}
469+ run : |
470+ mkdir -p test-results
471+ sudo dmesg -T | grep -iE 'out of memory|oom|killed process' > test-results/bigquery-dmesg.log || true
472+ echo "== kernel OOM messages"; cat test-results/bigquery-dmesg.log
473+ echo "== last resource samples"; tail -n 60 test-results/bigquery-resources.log || true
474+ echo "== last pytest output"; tail -n 60 test-results/bigquery-pytest.log || true
396475 - name : Tear down test database
397476 if : always()
398477 run :
@@ -413,7 +492,7 @@ jobs:
413492 ' true' || github.ref == 'refs/heads/main'
414493 env :
415494 PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD : 1
416- runs-on : ubuntu-latest
495+ runs-on : ubuntu-24.04
417496 steps :
418497 - uses : actions/checkout@v7
419498 - uses : actions/setup-node@v7
@@ -427,10 +506,12 @@ jobs:
427506 - name : Run CI
428507 run : pnpm run ci
429508 test-vscode-e2e :
430- runs-on :
431- labels : [ubuntu-2204-8]
432- # As at 2026-01-12 this job flakes 100% of the time. It needs investigation
433- if : false
509+ needs : changes
510+ if :
511+ needs.changes.outputs.vscode == 'true' || needs.changes.outputs.lsp ==
512+ ' true' || needs.changes.outputs.ci == 'true' || github.ref ==
513+ ' refs/heads/main'
514+ runs-on : ubuntu-24.04
434515 steps :
435516 - uses : actions/checkout@v7
436517 - uses : actions/setup-node@v7
@@ -453,13 +534,28 @@ jobs:
453534 source .venv/bin/activate
454535 make install-dev
455536 - name : Install code-server
456- run : curl -fsSL https://code-server.dev/install.sh | sh
537+ # Pinned so that a code-server release cannot change the editor UI the
538+ # tests drive without the change showing up here first.
539+ # The installer curls the .deb once. A reset (curl exit 56) fails the
540+ # job. A repeat resumes the partial file the installer leaves behind.
541+ run : |
542+ set -euo pipefail
543+ for attempt in 1 2 3 4 5; do
544+ if curl -fsSL https://code-server.dev/install.sh | sh -s -- --version 4.137.0; then
545+ exit 0
546+ fi
547+ echo "code-server install failed (attempt ${attempt}); retrying"
548+ sleep $((attempt * 5))
549+ done
550+ echo "code-server install failed after 5 attempts"
551+ exit 1
457552 - name : Install Playwright browsers
458553 working-directory : ./vscode/extension
459554 run : pnpm exec playwright install
460555 - name : Run e2e tests
461556 working-directory : ./vscode/extension
462- timeout-minutes : 30
557+ # CI runs one worker. That needs a longer cap than the old 30 minutes.
558+ timeout-minutes : 60
463559 run : |
464560 source ../../.venv/bin/activate
465561 pnpm run test:e2e
@@ -474,7 +570,7 @@ jobs:
474570 if :
475571 needs.changes.outputs.python == 'true' || needs.changes.outputs.ci ==
476572 ' true' || github.ref == 'refs/heads/main'
477- runs-on : ubuntu-latest
573+ runs-on : ubuntu-24.04
478574 strategy :
479575 fail-fast : false
480576 matrix :
0 commit comments