Skip to content

Commit ee61dec

Browse files
authored
Merge branch 'main' into fix/safe-sub-parens
2 parents 8bd2483 + dd16a0f commit ee61dec

137 files changed

Lines changed: 12877 additions & 880 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: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,30 @@ 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:

‎.github/scripts/install-prerequisites.sh‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ ENGINE_DEPENDENCIES=""
1717

1818
if [ "$ENGINE" == "spark" ]; then
1919
ENGINE_DEPENDENCIES="default-jdk"
20+
elif [ "$ENGINE" == "db2" ]; then
21+
ENGINE_DEPENDENCIES="libxml2-dev build-essential"
2022
elif [ "$ENGINE" == "fabric" ]; then
2123
echo "Installing Microsoft package repository"
2224

‎.github/scripts/wait-for-db.sh‎

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,20 @@ risingwave_ready() {
9090
probe_port 4566
9191
}
9292

93+
db2_ready() {
94+
probe_port 50001
95+
96+
echo "Waiting for Db2 to finish initialising (this can take 2-4 minutes)..."
97+
while true; do
98+
if docker exec db2 su - db2inst1 -c "db2 connect to TESTDB" > /dev/null 2>&1; then
99+
echo "Db2 is accepting connections"
100+
break
101+
fi
102+
echo "Db2 not yet ready; sleeping 15s..."
103+
sleep 15
104+
done
105+
}
106+
93107
echo "Waiting for $ENGINE to be ready..."
94108

95109
READINESS_FUNC="${ENGINE}_ready"

‎.github/workflows/db2.yaml‎

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
name: db2
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
paths:
8+
- 'sqlmesh/core/engine_adapter/db2.py'
9+
- 'tests/core/engine_adapter/test_db2.py'
10+
- 'tests/core/engine_adapter/integration/test_integration_db2.py'
11+
- 'tests/core/engine_adapter/integration/docker/compose.db2.yaml'
12+
- '.github/workflows/db2.yaml'
13+
- 'pyproject.toml'
14+
pull_request:
15+
branches:
16+
- main
17+
paths:
18+
- 'sqlmesh/core/engine_adapter/db2.py'
19+
- 'tests/core/engine_adapter/test_db2.py'
20+
- 'tests/core/engine_adapter/integration/test_integration_db2.py'
21+
- 'tests/core/engine_adapter/integration/docker/compose.db2.yaml'
22+
- '.github/workflows/db2.yaml'
23+
- 'pyproject.toml'
24+
25+
concurrency:
26+
group: db2-${{ github.event.pull_request.number || github.sha }}
27+
cancel-in-progress: true
28+
29+
permissions:
30+
contents: read
31+
32+
# Pin Ubuntu 24.04. ubuntu-latest now resolves to 26.04.
33+
jobs:
34+
db2-test:
35+
runs-on: ubuntu-24.04
36+
timeout-minutes: 25
37+
env:
38+
PYTEST_XDIST_AUTO_NUM_WORKERS: 2
39+
SQLMESH__DISABLE_ANONYMIZED_ANALYTICS: '1'
40+
UV: '1'
41+
steps:
42+
- uses: actions/checkout@v7
43+
- name: Set up Python
44+
uses: actions/setup-python@v7
45+
with:
46+
python-version: '3.12'
47+
- name: Install uv
48+
uses: astral-sh/setup-uv@v7
49+
- name: Install SQLMesh dev dependencies
50+
run: |
51+
uv venv .venv
52+
source .venv/bin/activate
53+
make install-dev
54+
- name: Install OS-level dependencies
55+
run: ./.github/scripts/install-prerequisites.sh "db2"
56+
- name: Run tests
57+
run: |
58+
source .venv/bin/activate
59+
make db2-test
60+
- name: Upload test results
61+
uses: actions/upload-artifact@v7
62+
if: ${{ !cancelled() }}
63+
with:
64+
name: test-results-docker-db2
65+
path: test-results/
66+
retention-days: 7

‎.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: 34 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,16 @@ 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 }}
2124
steps:
2225
- uses: actions/checkout@v7
@@ -37,6 +40,8 @@ jobs:
3740
- 'web/client/**'
3841
vscode:
3942
- 'vscode/**'
43+
lsp:
44+
- 'sqlmesh/lsp/**'
4045
ci:
4146
- '.github/**'
4247
- 'Makefile'
@@ -47,7 +52,7 @@ jobs:
4752
if:
4853
needs.changes.outputs.python == 'true' || needs.changes.outputs.ci ==
4954
'true' || github.ref == 'refs/heads/main'
50-
runs-on: ubuntu-latest
55+
runs-on: ubuntu-24.04
5156
env:
5257
UV: '1'
5358
steps:
@@ -73,7 +78,7 @@ jobs:
7378
if:
7479
needs.changes.outputs.python == 'true' || needs.changes.outputs.ci ==
7580
'true' || github.ref == 'refs/heads/main'
76-
runs-on: ubuntu-latest
81+
runs-on: ubuntu-24.04
7782
strategy:
7883
fail-fast: false
7984
matrix:
@@ -147,6 +152,10 @@ jobs:
147152
. ./venv/Scripts/activate
148153
python.exe -m pip install --upgrade pip
149154
make install-dev
155+
- name: Install DuckLake extension
156+
run: |
157+
. ./venv/Scripts/activate
158+
python -c "import duckdb; duckdb.connect().install_extension('ducklake')"
150159
- name: Run fast unit tests
151160
run: |
152161
. ./venv/Scripts/activate
@@ -166,7 +175,7 @@ jobs:
166175
if:
167176
needs.changes.outputs.python == 'true' || needs.changes.outputs.ci ==
168177
'true' || github.ref == 'refs/heads/main'
169-
runs-on: ubuntu-latest
178+
runs-on: ubuntu-24.04
170179
env:
171180
SQLMESH__DISABLE_ANONYMIZED_ANALYTICS: '1'
172181
UV: '1'
@@ -195,7 +204,7 @@ jobs:
195204
needs.changes.outputs.client == 'true' || needs.changes.outputs.vscode ==
196205
'true' || needs.changes.outputs.ci == 'true' || github.ref ==
197206
'refs/heads/main'
198-
runs-on: ubuntu-latest
207+
runs-on: ubuntu-24.04
199208
steps:
200209
- uses: actions/checkout@v7
201210
- uses: actions/setup-node@v7
@@ -222,7 +231,7 @@ jobs:
222231
if:
223232
needs.changes.outputs.client == 'true' || needs.changes.outputs.ci ==
224233
'true' || github.ref == 'refs/heads/main'
225-
runs-on: ubuntu-latest
234+
runs-on: ubuntu-24.04
226235
container:
227236
image: mcr.microsoft.com/playwright:v1.54.1-jammy
228237
steps:
@@ -250,7 +259,7 @@ jobs:
250259
if:
251260
needs.changes.outputs.python == 'true' || needs.changes.outputs.ci ==
252261
'true' || github.ref == 'refs/heads/main'
253-
runs-on: ubuntu-latest
262+
runs-on: ubuntu-24.04
254263
timeout-minutes: 25
255264
strategy:
256265
fail-fast: false
@@ -264,6 +273,7 @@ jobs:
264273
trino,
265274
spark,
266275
clickhouse,
276+
clickhouse-datalake,
267277
risingwave,
268278
starrocks,
269279
]
@@ -290,6 +300,9 @@ jobs:
290300
run: |
291301
source .venv/bin/activate
292302
make ${{ matrix.engine }}-test
303+
- name: Stop DataLake services
304+
if: ${{ always() && matrix.engine == 'clickhouse-datalake' }}
305+
run: make clickhouse-datalake-down
293306
- name: Upload test results
294307
uses: actions/upload-artifact@v7
295308
if: ${{ !cancelled() }}
@@ -301,7 +314,7 @@ jobs:
301314
engine-tests-cloud:
302315
needs: engine-tests-docker
303316
if: github.ref == 'refs/heads/main'
304-
runs-on: ubuntu-latest
317+
runs-on: ubuntu-24.04
305318
timeout-minutes: 25
306319
strategy:
307320
fail-fast: false
@@ -413,7 +426,7 @@ jobs:
413426
'true' || github.ref == 'refs/heads/main'
414427
env:
415428
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: 1
416-
runs-on: ubuntu-latest
429+
runs-on: ubuntu-24.04
417430
steps:
418431
- uses: actions/checkout@v7
419432
- uses: actions/setup-node@v7
@@ -427,10 +440,12 @@ jobs:
427440
- name: Run CI
428441
run: pnpm run ci
429442
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
443+
needs: changes
444+
if:
445+
needs.changes.outputs.vscode == 'true' || needs.changes.outputs.lsp ==
446+
'true' || needs.changes.outputs.ci == 'true' || github.ref ==
447+
'refs/heads/main'
448+
runs-on: ubuntu-24.04
434449
steps:
435450
- uses: actions/checkout@v7
436451
- uses: actions/setup-node@v7
@@ -453,7 +468,9 @@ jobs:
453468
source .venv/bin/activate
454469
make install-dev
455470
- name: Install code-server
456-
run: curl -fsSL https://code-server.dev/install.sh | sh
471+
# Pinned so that a code-server release cannot change the editor UI the
472+
# tests drive without the change showing up here first.
473+
run: curl -fsSL https://code-server.dev/install.sh | sh -s -- --version 4.137.0
457474
- name: Install Playwright browsers
458475
working-directory: ./vscode/extension
459476
run: pnpm exec playwright install
@@ -474,7 +491,7 @@ jobs:
474491
if:
475492
needs.changes.outputs.python == 'true' || needs.changes.outputs.ci ==
476493
'true' || github.ref == 'refs/heads/main'
477-
runs-on: ubuntu-latest
494+
runs-on: ubuntu-24.04
478495
strategy:
479496
fail-fast: false
480497
matrix:
@@ -558,7 +575,8 @@ jobs:
558575
run: |
559576
source ../../.venv/bin/activate
560577
sed -i 's/target: in_memory/target: postgres/g' profiles.yml
561-
if [[ $(echo -e "${{ matrix.dbt-version }}\n1.5.0" | sort -V | head -n1) == "${{ matrix.dbt-version }}" ]] && [[ "${{ matrix.dbt-version }}" != "1.5.0" ]]; then
578+
if [[ "${{ matrix.dbt-version }}" == "1.3" ]] || \
579+
[[ "${{ matrix.dbt-version }}" == "1.4" ]]; then
562580
echo "DBT version is ${{ matrix.dbt-version }} (< 1.5.0), removing version parameters..."
563581
sed -i -e 's/, version=1) }}/) }}/g' -e 's/, v=1) }}/) }}/g' models/top_waiters.sql
564582
else

‎.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:

‎.github/workflows/release_extension.yaml‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,10 @@ on:
66
description: 'Version to release (e.g., 1.0.0)'
77
required: true
88
type: string
9+
# Pin Ubuntu 24.04. ubuntu-latest now resolves to 26.04.
910
jobs:
1011
release:
11-
runs-on: ubuntu-latest
12+
runs-on: ubuntu-24.04
1213
steps:
1314
- name: Checkout repository
1415
uses: actions/checkout@v7

‎.github/workflows/release_shared_js.yaml‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,10 @@ on:
99
permissions:
1010
id-token: write
1111
contents: read
12+
# Pin Ubuntu 24.04. ubuntu-latest now resolves to 26.04.
1213
jobs:
1314
release:
14-
runs-on: ubuntu-latest
15+
runs-on: ubuntu-24.04
1516
steps:
1617
- name: Checkout repository
1718
uses: actions/checkout@v7

0 commit comments

Comments
 (0)