Skip to content

Commit 6f28326

Browse files
committed
Merge branch 'multipython' of github.com:windmill-labs/windmill into multipython
2 parents 4c22da0 + b75a261 commit 6f28326

File tree

258 files changed

+7620
-4031
lines changed

Some content is hidden

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

258 files changed

+7620
-4031
lines changed

.github/DockerfileBackendTests

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,4 +52,6 @@ RUN unzip deno.zip && rm deno.zip && mv deno /usr/bin/deno
5252
RUN apt-get update \
5353
&& apt-get install -y postgresql-client --allow-unauthenticated
5454

55-
RUN rustup component add rustfmt
55+
RUN rustup component add rustfmt
56+
COPY --from=bitnami/dotnet-sdk:9.0.101-debian-12-r0 /opt/bitnami/dotnet-sdk /opt/dotnet-sdk
57+
RUN ln -s /opt/dotnet-sdk/bin/dotnet /usr/bin/dotnet

.github/workflows/backend-check.yml

Lines changed: 134 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,134 @@
1+
name: Backend check
2+
on:
3+
push:
4+
paths:
5+
- "backend/**"
6+
- ".github/workflows/backend-check.yml"
7+
8+
jobs:
9+
check_oss:
10+
runs-on: ubicloud-standard-8
11+
steps:
12+
- uses: actions/checkout@v4
13+
with:
14+
fetch-depth: 0
15+
16+
- uses: actions-rust-lang/setup-rust-toolchain@v1
17+
with:
18+
cache-workspaces: backend
19+
toolchain: 1.82.0
20+
- uses: Swatinem/rust-cache@v2
21+
with:
22+
workspaces: backend
23+
- name: cargo check
24+
working-directory: ./backend
25+
timeout-minutes: 16
26+
run: SQLX_OFFLINE=true cargo check
27+
28+
check_oss_full:
29+
runs-on: ubicloud-standard-8
30+
steps:
31+
- uses: actions/checkout@v4
32+
with:
33+
fetch-depth: 0
34+
35+
36+
- name: install xmlsec1
37+
run: |
38+
sudo apt-get update
39+
sudo apt-get install -y libxml2-dev libxmlsec1-dev
40+
41+
- uses: actions-rust-lang/setup-rust-toolchain@v1
42+
with:
43+
cache-workspaces: backend
44+
toolchain: 1.82.0
45+
- uses: Swatinem/rust-cache@v2
46+
with:
47+
workspaces: backend
48+
- name: cargo check
49+
working-directory: ./backend
50+
timeout-minutes: 16
51+
run: |
52+
mkdir -p fake_frontend_build
53+
FRONTEND_BUILD_DIR=$(pwd)/fake_frontend_build SQLX_OFFLINE=true cargo check --all-features
54+
55+
check_ee:
56+
runs-on: ubicloud-standard-8
57+
steps:
58+
- uses: actions/checkout@v4
59+
with:
60+
fetch-depth: 0
61+
62+
- name: Read EE repo commit hash
63+
run: |
64+
echo "ee_repo_ref=$(cat ./backend/ee-repo-ref.txt)" >> "$GITHUB_ENV"
65+
66+
- uses: actions/checkout@v4
67+
with:
68+
repository: windmill-labs/windmill-ee-private
69+
path: ./windmill-ee-private
70+
ref: ${{ env.ee_repo_ref }}
71+
token: ${{ secrets.WINDMILL_EE_PRIVATE_ACCESS }}
72+
fetch-depth: 0
73+
74+
75+
- name: Substitute EE code (EE logic is behind feature flag)
76+
run: |
77+
./backend/substitute_ee_code.sh --copy --dir ./windmill-ee-private
78+
79+
80+
- uses: actions-rust-lang/setup-rust-toolchain@v1
81+
with:
82+
cache-workspaces: backend
83+
toolchain: 1.82.0
84+
- uses: Swatinem/rust-cache@v2
85+
with:
86+
workspaces: backend
87+
- name: cargo check
88+
working-directory: ./backend
89+
timeout-minutes: 16
90+
run: SQLX_OFFLINE=true cargo check
91+
92+
check_ee_full:
93+
runs-on: ubicloud-standard-8
94+
steps:
95+
- uses: actions/checkout@v4
96+
with:
97+
fetch-depth: 0
98+
99+
- name: Read EE repo commit hash
100+
run: |
101+
echo "ee_repo_ref=$(cat ./backend/ee-repo-ref.txt)" >> "$GITHUB_ENV"
102+
103+
- uses: actions/checkout@v4
104+
with:
105+
repository: windmill-labs/windmill-ee-private
106+
path: ./windmill-ee-private
107+
ref: ${{ env.ee_repo_ref }}
108+
token: ${{ secrets.WINDMILL_EE_PRIVATE_ACCESS }}
109+
fetch-depth: 0
110+
111+
- name: install xmlsec1
112+
run: |
113+
sudo apt-get update
114+
sudo apt-get install -y libxml2-dev libxmlsec1-dev
115+
116+
- name: Substitute EE code (EE logic is behind feature flag)
117+
run: |
118+
./backend/substitute_ee_code.sh --copy --dir ./windmill-ee-private
119+
120+
- uses: actions-rust-lang/setup-rust-toolchain@v1
121+
with:
122+
cache-workspaces: backend
123+
toolchain: 1.82.0
124+
- uses: Swatinem/rust-cache@v2
125+
with:
126+
workspaces: backend
127+
- name: cargo check
128+
timeout-minutes: 16
129+
working-directory: ./backend
130+
run: |
131+
mkdir -p fake_frontend_build
132+
FRONTEND_BUILD_DIR=$(pwd)/fake_frontend_build SQLX_OFFLINE=true cargo check --all-features
133+
134+

.github/workflows/backend-test.yml

Lines changed: 37 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -13,40 +13,58 @@ on:
1313
- "backend/**"
1414
- ".github/workflows/backend-test.yml"
1515

16+
defaults:
17+
run:
18+
working-directory: ./backend
19+
1620
jobs:
1721
cargo_test:
1822
runs-on: ubicloud-standard-8
19-
container:
20-
image: ghcr.io/windmill-labs/backend-tests
2123
services:
2224
postgres:
2325
image: postgres
26+
ports:
27+
- 5432:5432
2428
env:
2529
POSTGRES_DB: windmill
2630
POSTGRES_PASSWORD: changeme
27-
2831
options: >-
2932
--health-cmd pg_isready --health-interval 10s --health-timeout 5s
3033
--health-retries 5
3134
steps:
3235
- uses: actions/checkout@v4
36+
- uses: actions/setup-dotnet@v4
37+
with:
38+
dotnet-version: "9.0.x"
39+
- uses: denoland/setup-deno@v2
40+
with:
41+
deno-version: v2.x
42+
- uses: actions/setup-go@v2
43+
with:
44+
go-version: 1.21.5
45+
- uses: actions/setup-python@v2
46+
with:
47+
python-version: 3.11
48+
- uses: oven-sh/setup-bun@v2
49+
with:
50+
bun-version: 1.1.38
51+
- uses: astral-sh/setup-uv@v4
52+
with:
53+
version: "0.4.18"
3354
- uses: actions-rust-lang/setup-rust-toolchain@v1
3455
with:
35-
toolchain: 1.80.0
36-
# - uses: Swatinem/rust-cache@v2
37-
# with:
38-
# workspaces: |
39-
# backend
40-
# backend -> target
56+
cache-workspaces: backend
57+
toolchain: 1.82.0
58+
- uses: Swatinem/rust-cache@v2
59+
with:
60+
workspaces: backend
4161
- name: cargo test
42-
timeout-minutes: 15
62+
timeout-minutes: 16
4363
run:
44-
/usr/bin/deno --version &&
45-
/usr/bin/bun -v &&
46-
go version &&
47-
/usr/local/bin/python3 --version &&
48-
mkdir frontend/build && cd backend && touch
49-
windmill-api/openapi-deref.yaml &&
50-
DATABASE_URL=postgres://postgres:changeme@postgres:5432/windmill
51-
DISABLE_EMBEDDING=true RUST_LOG=info cargo test --features
52-
enterprise,deno_core --all -- --nocapture
64+
deno --version && bun -v && go version && python3 --version &&
65+
SQLX_OFFLINE=true
66+
DATABASE_URL=postgres://postgres:changeme@localhost:5432/windmill
67+
DISABLE_EMBEDDING=true RUST_LOG=info PYTHON_PATH=$(which python)
68+
DENO_PATH=$(which deno) BUN_PATH=$(which bun) GO_PATH=$(which go)
69+
UV_PATH=$(which uv) cargo test --features
70+
enterprise,deno_core,license,python,rust --all -- --nocapture

.github/workflows/build-publish-rh-image.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ jobs:
6464
platforms: linux/amd64
6565
push: true
6666
build-args: |
67-
features=enterprise,enterprise_saml,stripe,embedding,parquet,prometheus,openidconnect,cloud,jemalloc,deno_core,kafka,php,mysql
67+
features=enterprise,enterprise_saml,stripe,embedding,parquet,prometheus,openidconnect,cloud,jemalloc,deno_core,license,http_trigger,zip,oauth2,kafka,php,mysql,mssql,bigquery,websocket,python,smtp,csharp,static_frontend,rust
6868
secrets: |
6969
rh_username=${{ secrets.RH_USERNAME }}
7070
rh_password=${{ secrets.RH_PASSWORD }}
@@ -81,7 +81,7 @@ jobs:
8181
platforms: linux/arm64
8282
push: true
8383
build-args: |
84-
features=enterprise,enterprise_saml,stripe,embedding,parquet,prometheus,openidconnect,cloud,jemalloc,deno_core,kafka,php,mysql
84+
features=enterprise,enterprise_saml,stripe,embedding,parquet,prometheus,openidconnect,cloud,jemalloc,deno_core,license,http_trigger,zip,oauth2,kafka,php,mysql,mssql,bigquery,websocket,python,smtp,csharp,static_frontend,rust
8585
secrets: |
8686
rh_username=${{ secrets.RH_USERNAME }}
8787
rh_password=${{ secrets.RH_PASSWORD }}
@@ -111,12 +111,16 @@ jobs:
111111
- uses: actions/upload-artifact@v4
112112
with:
113113
name: RHEL9-amd64 build
114-
path: ${{ steps.extract-ee-amd64.outputs.destination }}/windmill-ee-amd64-rhel9
114+
path:
115+
${{ steps.extract-ee-amd64.outputs.destination
116+
}}/windmill-ee-amd64-rhel9
115117

116118
- uses: actions/upload-artifact@v4
117119
with:
118120
name: RHEL9-arm64 build
119-
path: ${{ steps.extract-ee-arm64.outputs.destination }}/windmill-ee-arm64-rhel9
121+
path:
122+
${{ steps.extract-ee-arm64.outputs.destination
123+
}}/windmill-ee-arm64-rhel9
120124

121125
# - name: Attach binary to release
122126
# uses: softprops/action-gh-release@v2

.github/workflows/build-staging-image.yml

Lines changed: 0 additions & 70 deletions
This file was deleted.

.github/workflows/build_windows_worker_.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ jobs:
4545
$env:OPENSSL_DIR="${Env:VCPKG_INSTALLATION_ROOT}\installed\x64-windows-static"
4646
mkdir frontend/build && cd backend
4747
New-Item -Path . -Name "windmill-api/openapi-deref.yaml" -ItemType "File" -Force
48-
cargo build --release --features=enterprise,stripe,embedding,parquet,prometheus,openidconnect,cloud,jemalloc,tantivy,deno_core,kafka,php,mysql
48+
cargo build --release --features=enterprise,stripe,embedding,parquet,prometheus,openidconnect,cloud,jemalloc,tantivy,deno_core,license,http_trigger,zip,oauth2,kafka,php,mysql,mssql,bigquery,websocket,python,smtp,csharp,static_frontend,rust
4949
5050
- name: Rename binary with corresponding architecture
5151
run: |

.github/workflows/build_ws.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,10 @@ jobs:
1919
- uses: actions/checkout@v4
2020
with:
2121
fetch-depth: 0
22-
- uses: depot/setup-action@v1
22+
# - uses: depot/setup-action@v1
23+
- name: Set up Docker Buildx
24+
uses: docker/setup-buildx-action@v2
25+
2326
- name: Docker meta
2427
id: meta
2528
uses: docker/metadata-action@v5
@@ -40,7 +43,7 @@ jobs:
4043
password: ${{ secrets.GITHUB_TOKEN }}
4144

4245
- name: Build and push publicly
43-
uses: depot/build-push-action@v1
46+
uses: docker/build-push-action@v6
4447
with:
4548
context: .
4649
file: ./docker/DockerfileMultiplayer

.github/workflows/docker-image-rpi4.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ jobs:
6767
platforms: linux/amd64,linux/arm64
6868
push: true
6969
build-args: |
70-
features=embedding,parquet,openidconnect,deno_core,php,mysql
70+
features=embedding,parquet,openidconnect,deno_core,license,http_trigger,zip,oauth2,php,mysql,mssql,bigquery,websocket,python,smtp,csharp,static_frontend,rust
7171
tags: |
7272
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:dev
7373
${{ steps.meta-public.outputs.tags }}

0 commit comments

Comments
 (0)