Skip to content

Commit d936f4e

Browse files
authored
Merge branch 'main' into fix/clickhouse-exchange-tables-reraise
2 parents 3bca554 + 54ebf04 commit d936f4e

140 files changed

Lines changed: 11741 additions & 959 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.github/dependabot.yml‎

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,56 @@ updates:
44
directory: '/'
55
schedule:
66
interval: 'weekly'
7+
groups:
8+
# Storybook add-ons declare a peer dependency on the matching `storybook`
9+
# release, so they have to move together. Bump them in a single PR.
10+
storybook:
11+
patterns:
12+
- 'storybook'
13+
- '@storybook/*'
14+
- '@chromatic-com/storybook'
15+
- 'eslint-plugin-storybook'
16+
update-types:
17+
- 'minor'
18+
- 'patch'
19+
ignore:
20+
# A Storybook major upgrade has to be done by hand as one coordinated
21+
# migration (e.g. @storybook/addon-vitest 10 requires vitest 4+), so don't
22+
# open per-package major-bump PRs, which break the Storybook build.
23+
- dependency-name: 'storybook'
24+
update-types: ['version-update:semver-major']
25+
- dependency-name: '@storybook/*'
26+
update-types: ['version-update:semver-major']
27+
- dependency-name: '@chromatic-com/storybook'
28+
update-types: ['version-update:semver-major']
29+
- dependency-name: 'eslint-plugin-storybook'
30+
update-types: ['version-update:semver-major']
731
- package-ecosystem: 'github-actions'
832
directory: '/'
933
schedule:
1034
interval: 'weekly'
35+
- package-ecosystem: 'pip'
36+
directory: '/docs'
37+
schedule:
38+
interval: 'weekly'
39+
groups:
40+
# The docs toolchain (MkDocs, its theme and plugins, pdoc, Pygments) is
41+
# built and verified as a whole, so bump it in a single PR.
42+
docs:
43+
patterns:
44+
- '*'
45+
ignore:
46+
# MkDocs 2.0 removes the plugin and theme systems that Material for
47+
# MkDocs and our plugins depend on, so a major bump can't be taken as-is.
48+
- dependency-name: 'mkdocs'
49+
update-types: ['version-update:semver-major']
50+
# mkdocs-material 9.8+ requires Python >= 3.11, but Read the Docs builds
51+
# with Python 3.10 (.readthedocs.yaml). Drop this once that is raised.
52+
- dependency-name: 'mkdocs-material'
53+
versions: ['>=9.8']
54+
# pdoc renders the API reference through a custom template
55+
# (pdoc/templates/), and the docs-build CI job doesn't run it, so a major
56+
# bump would land untested. Upgrade pdoc majors by hand with
57+
# `make api-docs`.
58+
- dependency-name: 'pdoc'
59+
update-types: ['version-update:semver-major']

‎.github/workflows/db2.yaml‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,10 @@ concurrency:
2929
permissions:
3030
contents: read
3131

32+
# Pin Ubuntu 24.04. ubuntu-latest now resolves to 26.04.
3233
jobs:
3334
db2-test:
34-
runs-on: ubuntu-latest
35+
runs-on: ubuntu-24.04
3536
timeout-minutes: 25
3637
env:
3738
PYTEST_XDIST_AUTO_NUM_WORKERS: 2

‎.github/workflows/dco.yml‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
name: Sanity check
22
on: [pull_request]
33

4+
# Pin Ubuntu 24.04. ubuntu-latest now resolves to 26.04.
45
jobs:
56
commits_check_job:
6-
runs-on: ubuntu-latest
7+
runs-on: ubuntu-24.04
78
name: Commits Check
89
steps:
910
- name: Get PR Commits

‎.github/workflows/pr.yaml‎

Lines changed: 113 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,18 @@ concurrency:
1010
cancel-in-progress: true
1111
permissions:
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.
1315
jobs:
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:

‎.github/workflows/release.yaml‎

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,10 @@ on:
55
- 'v*.*.*'
66
permissions:
77
contents: write
8+
# Pin Ubuntu 24.04. ubuntu-latest now resolves to 26.04.
89
jobs:
910
ui-build:
10-
runs-on: ubuntu-latest
11+
runs-on: ubuntu-24.04
1112
steps:
1213
- uses: actions/checkout@v7
1314
- uses: actions/setup-node@v7
@@ -29,7 +30,7 @@ jobs:
2930

3031
publish:
3132
needs: ui-build
32-
runs-on: ubuntu-latest
33+
runs-on: ubuntu-24.04
3334
steps:
3435
- uses: actions/checkout@v7
3536
- name: Download UI build artifact
@@ -40,9 +41,13 @@ jobs:
4041
- name: Set up Python
4142
uses: actions/setup-python@v7
4243
with:
43-
python-version: '3.10'
44+
# 3.13.17+ bundles pip 26.2.2+, which no longer trusts the compromised eMudhra/emSign root CA.
45+
python-version: '3.13'
4446
- name: Install uv
4547
uses: astral-sh/setup-uv@v7
48+
- name: Check pip includes the eMudhra/emSign CA removal
49+
run: |
50+
python -c "import sys, pip; v = tuple(int(p) for p in pip.__version__.split('.')[:3]); sys.exit(0 if v >= (26, 2, 2) else f'pip {pip.__version__} predates the eMudhra/emSign CA removal; need >= 26.2.2')"
4651
- name: Install build dependencies
4752
run: pip install build twine setuptools_scm
4853
- name: Publish Python package
@@ -59,7 +64,7 @@ jobs:
5964
run: unset TWINE_USERNAME TWINE_PASSWORD && make publish-tests
6065

6166
gh-release:
62-
runs-on: ubuntu-latest
67+
runs-on: ubuntu-24.04
6368
steps:
6469
- uses: actions/checkout@v7
6570
with:

0 commit comments

Comments
 (0)