Skip to content

Commit 65b5b3d

Browse files
authored
chore(ci): test with different license (#16815)
* chore(ci): test with different license * z * z * z * z
1 parent aab0f85 commit 65b5b3d

File tree

11 files changed

+84
-47
lines changed

11 files changed

+84
-47
lines changed

.github/actions/build_linux/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ runs:
3030
uses: ./.github/actions/setup_build_tool
3131
with:
3232
target: ${{ inputs.target }}
33-
bypass_env_vars: RUSTFLAGS,RUST_LOG
33+
bypass_env_vars: RUSTFLAGS,RUST_LOG,DATABEND_ENTERPRISE_LICENSE_PUBLIC_KEY
3434

3535
- name: Cross setup
3636
if: startsWith(inputs.target, 'aarch64-')

.github/actions/setup_license/action.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ inputs:
55
description: "Self-hosted runner provider, aws or gcp"
66
required: true
77
default: "aws"
8+
type:
9+
description: "License type, enterprise or trial"
10+
required: true
11+
default: "trial"
812

913
runs:
1014
using: "composite"
@@ -13,15 +17,15 @@ runs:
1317
if: inputs.runner_provider == 'aws'
1418
shell: bash
1519
run: |
16-
aws s3 cp s3://databend-ci/misc/license.key license.key
17-
aws s3 cp s3://databend-ci/misc/license.json license.json
20+
aws s3 cp s3://databend-ci/misc/license-${{ inputs.type }}.key license.key
21+
aws s3 cp s3://databend-ci/misc/license-${{ inputs.type }}.json license.json
1822
1923
- name: Get License from GCS
2024
if: inputs.runner_provider == 'gcp'
2125
shell: bash
2226
run: |
23-
gcloud storage cp gs://databend-ci/misc/license.key license.key
24-
gcloud storage cp gs://databend-ci/misc/license.json license.json
27+
gcloud storage cp gs://databend-ci/misc/license-${{ inputs.type }}.key license.key
28+
gcloud storage cp gs://databend-ci/misc/license-${{ inputs.type }}.json license.json
2529
2630
- name: Output License
2731
shell: bash

.github/workflows/cloud.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,8 @@ jobs:
5959
- name: Build Release
6060
uses: ./.github/actions/build_linux
6161
timeout-minutes: 60
62+
env:
63+
DATABEND_ENTERPRISE_LICENSE_PUBLIC_KEY: ${{ secrets.DATABEND_ENTERPRISE_LICENSE_PUBLIC_KEY }}
6264
with:
6365
sha: ${{ needs.info.outputs.sha }}
6466
target: ${{ matrix.arch }}-unknown-linux-gnu

.github/workflows/dev.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ jobs:
5252
with:
5353
build_profile: release
5454
runner_provider: aws
55+
license_type: trial
5556

5657
linux_hive:
5758
needs: changes

.github/workflows/main.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ jobs:
4444
with:
4545
build_profile: release
4646
runner_provider: aws
47+
license_type: enterprise
4748

4849
# macos:
4950
# needs: linux

.github/workflows/merge_group.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ jobs:
5656
with:
5757
build_profile: release
5858
runner_provider: aws
59+
license_type: enterprise
5960

6061
ready:
6162
if: always()

.github/workflows/release.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,7 @@ jobs:
117117
uses: ./.github/actions/build_linux
118118
env:
119119
DATABEND_RELEASE_VERSION: ${{ needs.create_release.outputs.version }}
120+
DATABEND_ENTERPRISE_LICENSE_PUBLIC_KEY: ${{ secrets.DATABEND_ENTERPRISE_LICENSE_PUBLIC_KEY }}
120121
with:
121122
sha: ${{ github.sha }}
122123
target: ${{ matrix.target }}
@@ -149,6 +150,7 @@ jobs:
149150
uses: ./.github/actions/build_linux
150151
env:
151152
DATABEND_RELEASE_VERSION: ${{ needs.create_release.outputs.version }}
153+
DATABEND_ENTERPRISE_LICENSE_PUBLIC_KEY: ${{ secrets.DATABEND_ENTERPRISE_LICENSE_PUBLIC_KEY }}
152154
with:
153155
sha: ${{ github.sha }}
154156
target: ${{ matrix.target }}
@@ -173,6 +175,7 @@ jobs:
173175
uses: ./.github/actions/build_linux
174176
env:
175177
DATABEND_RELEASE_VERSION: ${{ needs.create_release.outputs.version }}
178+
DATABEND_ENTERPRISE_LICENSE_PUBLIC_KEY: ${{ secrets.DATABEND_ENTERPRISE_LICENSE_PUBLIC_KEY }}
176179
with:
177180
sha: ${{ github.sha }}
178181
target: ${{ matrix.target }}

.github/workflows/reuse.linux.hive.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@ on:
44
workflow_call:
55
inputs:
66
build_profile:
7-
description: 'Build profile, debug or release'
7+
description: "Build profile, debug or release"
88
type: string
99
required: true
10-
default: 'debug'
10+
default: "debug"
1111
runner_provider:
12-
description: 'Self-hosted runner provider, aws or gcp'
12+
description: "Self-hosted runner provider, aws or gcp"
1313
type: string
1414
required: true
15-
default: 'aws'
15+
default: "aws"
1616

1717
env:
1818
BUILD_PROFILE: ${{ inputs.build_profile }}
@@ -32,6 +32,8 @@ jobs:
3232
fetch-depth: 0
3333
- uses: ./.github/actions/build_linux
3434
timeout-minutes: 60
35+
env:
36+
DATABEND_ENTERPRISE_LICENSE_PUBLIC_KEY: ${{ secrets.DATABEND_ENTERPRISE_LICENSE_PUBLIC_KEY }}
3537
with:
3638
sha: ${{ github.sha }}
3739
target: ${{ matrix.arch }}-unknown-linux-${{ matrix.libc }}

.github/workflows/reuse.linux.yml

Lines changed: 49 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,19 @@ on:
1313
type: string
1414
required: true
1515
default: "aws"
16+
license_type:
17+
description: "License type, enterprise or trial"
18+
type: string
19+
required: true
20+
default: "trial"
1621

1722
env:
1823
BUILD_PROFILE: ${{ inputs.build_profile }}
1924
RUNNER_PROVIDER: ${{ inputs.runner_provider }}
2025

2126
jobs:
2227
check:
23-
runs-on: [ self-hosted, X64, Linux, 16c32g, "${{ inputs.runner_provider }}" ]
28+
runs-on: [self-hosted, X64, Linux, 16c32g, "${{ inputs.runner_provider }}"]
2429
steps:
2530
- uses: actions/checkout@v4
2631
with:
@@ -50,6 +55,8 @@ jobs:
5055
fetch-depth: 0
5156
- uses: ./.github/actions/build_linux
5257
timeout-minutes: 60
58+
env:
59+
DATABEND_ENTERPRISE_LICENSE_PUBLIC_KEY: ${{ secrets.DATABEND_ENTERPRISE_LICENSE_PUBLIC_KEY }}
5360
with:
5461
sha: ${{ github.sha }}
5562
target: ${{ matrix.arch }}-unknown-linux-gnu
@@ -75,6 +82,8 @@ jobs:
7582
fetch-depth: 0
7683
- uses: ./.github/actions/build_linux
7784
timeout-minutes: 60
85+
env:
86+
DATABEND_ENTERPRISE_LICENSE_PUBLIC_KEY: ${{ secrets.DATABEND_ENTERPRISE_LICENSE_PUBLIC_KEY }}
7887
with:
7988
sha: ${{ github.sha }}
8089
target: ${{ matrix.arch }}-unknown-linux-gnu
@@ -106,7 +115,7 @@ jobs:
106115
# artifacts: query
107116

108117
test_unit:
109-
runs-on: [ self-hosted, X64, Linux, 16c32g, "${{ inputs.runner_provider }}" ]
118+
runs-on: [self-hosted, X64, Linux, 16c32g, "${{ inputs.runner_provider }}"]
110119
steps:
111120
- uses: actions/checkout@v4
112121
with:
@@ -116,75 +125,76 @@ jobs:
116125
timeout-minutes: 60
117126

118127
test_metactl:
119-
runs-on: [ self-hosted, X64, Linux, 4c8g, "${{ inputs.runner_provider }}" ]
120-
needs: [ build, check ]
128+
runs-on: [self-hosted, X64, Linux, 4c8g, "${{ inputs.runner_provider }}"]
129+
needs: [build, check]
121130
steps:
122131
- uses: actions/checkout@v4
123132
- uses: ./.github/actions/test_metactl
124133
timeout-minutes: 10
125134

126135
test_compat_meta_query:
127-
runs-on: [ self-hosted, X64, Linux, 4c8g, "${{ inputs.runner_provider }}" ]
128-
needs: [ build, check ]
136+
runs-on: [self-hosted, X64, Linux, 4c8g, "${{ inputs.runner_provider }}"]
137+
needs: [build, check]
129138
steps:
130139
- uses: actions/checkout@v4
131140
- uses: ./.github/actions/test_compat_meta_query
132141
timeout-minutes: 10
133142

134143
test_compat_fuse:
135-
runs-on: [ self-hosted, X64, Linux, 4c8g, "${{ inputs.runner_provider }}" ]
136-
needs: [ build, check ]
144+
runs-on: [self-hosted, X64, Linux, 4c8g, "${{ inputs.runner_provider }}"]
145+
needs: [build, check]
137146
steps:
138147
- uses: actions/checkout@v4
139148
- uses: ./.github/actions/test_compat_fuse
140149
timeout-minutes: 20
141150

142151
test_compat_meta_meta:
143-
runs-on: [ self-hosted, X64, Linux, 4c8g, "${{ inputs.runner_provider }}" ]
144-
needs: [ build, check ]
152+
runs-on: [self-hosted, X64, Linux, 4c8g, "${{ inputs.runner_provider }}"]
153+
needs: [build, check]
145154
steps:
146155
- uses: actions/checkout@v4
147156
- uses: ./.github/actions/test_compat_meta_meta
148157
timeout-minutes: 20
149158

150159
test_logs:
151-
runs-on: [ self-hosted, X64, Linux, 4c8g, "${{ inputs.runner_provider }}" ]
152-
needs: [ build, check ]
160+
runs-on: [self-hosted, X64, Linux, 4c8g, "${{ inputs.runner_provider }}"]
161+
needs: [build, check]
153162
steps:
154163
- uses: actions/checkout@v4
155164
- uses: ./.github/actions/test_logs
156165
timeout-minutes: 20
157166

158167
test_meta_cluster:
159-
runs-on: [ self-hosted, X64, Linux, 4c8g, "${{ inputs.runner_provider }}" ]
160-
needs: [ build, check ]
168+
runs-on: [self-hosted, X64, Linux, 4c8g, "${{ inputs.runner_provider }}"]
169+
needs: [build, check]
161170
steps:
162171
- uses: actions/checkout@v4
163172
- uses: ./.github/actions/test_meta_cluster
164173
timeout-minutes: 10
165174

166175
test_stateless_standalone:
167-
runs-on: [ self-hosted, X64, Linux, 4c8g, "${{ inputs.runner_provider }}" ]
168-
needs: [ build, check ]
176+
runs-on: [self-hosted, X64, Linux, 4c8g, "${{ inputs.runner_provider }}"]
177+
needs: [build, check]
169178
steps:
170179
- uses: actions/checkout@v4
171180
- uses: ./.github/actions/test_stateless_standalone_linux
172181
timeout-minutes: 15
173182

174183
test_stateless_cluster:
175-
runs-on: [ self-hosted, X64, Linux, 4c8g, "${{ inputs.runner_provider }}" ]
176-
needs: [ build, check ]
184+
runs-on: [self-hosted, X64, Linux, 4c8g, "${{ inputs.runner_provider }}"]
185+
needs: [build, check]
177186
steps:
178187
- uses: actions/checkout@v4
179188
- uses: ./.github/actions/setup_license
180189
with:
181190
runner_provider: ${{ inputs.runner_provider }}
191+
type: ${{ inputs.license_type }}
182192
- uses: ./.github/actions/test_stateless_cluster_linux
183193
timeout-minutes: 15
184194

185195
test_stateful_standalone:
186-
runs-on: [ self-hosted, X64, Linux, 4c8g, "${{ inputs.runner_provider }}" ]
187-
needs: [ build, check ]
196+
runs-on: [self-hosted, X64, Linux, 4c8g, "${{ inputs.runner_provider }}"]
197+
needs: [build, check]
188198
steps:
189199
- uses: actions/checkout@v4
190200
- uses: ./.github/actions/test_stateful_standalone_linux
@@ -196,13 +206,14 @@ jobs:
196206
name: test-stateful-standalone-linux
197207

198208
test_stateful_cluster:
199-
runs-on: [ self-hosted, X64, Linux, 4c8g, "${{ inputs.runner_provider }}" ]
200-
needs: [ build, check ]
209+
runs-on: [self-hosted, X64, Linux, 4c8g, "${{ inputs.runner_provider }}"]
210+
needs: [build, check]
201211
steps:
202212
- uses: actions/checkout@v4
203213
- uses: ./.github/actions/setup_license
204214
with:
205215
runner_provider: ${{ inputs.runner_provider }}
216+
type: ${{ inputs.license_type }}
206217
- uses: ./.github/actions/test_stateful_cluster_linux
207218
timeout-minutes: 15
208219
- name: Upload failure
@@ -213,16 +224,16 @@ jobs:
213224

214225
test_stateful_large_data:
215226
if: contains(github.event.pull_request.labels.*.name, 'ci-largedata')
216-
runs-on: [ self-hosted, X64, Linux, 4c8g, "${{ inputs.runner_provider }}" ]
217-
needs: [ build, check ]
227+
runs-on: [self-hosted, X64, Linux, 4c8g, "${{ inputs.runner_provider }}"]
228+
needs: [build, check]
218229
steps:
219230
- uses: actions/checkout@v4
220231
- uses: ./.github/actions/test_stateful_large_data
221232
timeout-minutes: 60
222233

223234
test_stateful_iceberg_rest:
224-
runs-on: [ self-hosted, X64, Linux, 4c8g, "${{ inputs.runner_provider }}" ]
225-
needs: [ build, check ]
235+
runs-on: [self-hosted, X64, Linux, 4c8g, "${{ inputs.runner_provider }}"]
236+
needs: [build, check]
226237
steps:
227238
- uses: actions/checkout@v4
228239
- uses: ./.github/actions/test_stateful_iceberg_rest_standalone
@@ -243,13 +254,14 @@ jobs:
243254
# continue-on-error: true
244255

245256
test_ee_standalone:
246-
needs: [ build, check ]
247-
runs-on: [ self-hosted, X64, Linux, 4c8g, "${{ inputs.runner_provider }}" ]
257+
needs: [build, check]
258+
runs-on: [self-hosted, X64, Linux, 4c8g, "${{ inputs.runner_provider }}"]
248259
steps:
249260
- uses: actions/checkout@v4
250261
- uses: ./.github/actions/setup_license
251262
with:
252263
runner_provider: ${{ inputs.runner_provider }}
264+
type: ${{ inputs.license_type }}
253265
- uses: ./.github/actions/test_ee_standalone_linux
254266
timeout-minutes: 10
255267
- name: Upload failure
@@ -259,14 +271,15 @@ jobs:
259271
name: test-stateful-standalone-linux
260272

261273
test_ee_standalone_background:
262-
needs: [ build, check ]
263-
runs-on: [ self-hosted, X64, Linux, 4c8g, "${{ inputs.runner_provider }}" ]
274+
needs: [build, check]
275+
runs-on: [self-hosted, X64, Linux, 4c8g, "${{ inputs.runner_provider }}"]
264276
steps:
265277
- uses: actions/checkout@v4
266278
- uses: ./.github/actions/setup_bendsql
267279
- uses: ./.github/actions/setup_license
268280
with:
269281
runner_provider: ${{ inputs.runner_provider }}
282+
type: ${{ inputs.license_type }}
270283
- uses: ./.github/actions/test_ee_standalone_background_linux
271284
timeout-minutes: 10
272285
- name: Upload failure
@@ -288,6 +301,7 @@ jobs:
288301
# - uses: ./.github/actions/setup_license
289302
# with:
290303
# runner_provider: ${{ inputs.runner_provider }}
304+
# type: ${{ inputs.license_type }}
291305
# - uses: ./.github/actions/test_ee_standalone_fake_time_linux
292306
# timeout-minutes: 10
293307
# - name: Upload failure
@@ -297,14 +311,15 @@ jobs:
297311
# name: test-stateful-standalone-fake-time-linux
298312

299313
test_ee_management_mode:
300-
needs: [ build, check ]
301-
runs-on: [ self-hosted, X64, Linux, 4c8g, "${{ inputs.runner_provider }}" ]
314+
needs: [build, check]
315+
runs-on: [self-hosted, X64, Linux, 4c8g, "${{ inputs.runner_provider }}"]
302316
steps:
303317
- uses: actions/checkout@v4
304318
- uses: ./.github/actions/setup_bendsql
305319
- uses: ./.github/actions/setup_license
306320
with:
307321
runner_provider: ${{ inputs.runner_provider }}
322+
type: ${{ inputs.license_type }}
308323
- uses: ./.github/actions/test_ee_management_mode_linux
309324
timeout-minutes: 10
310325
- name: Upload failure
@@ -314,9 +329,10 @@ jobs:
314329
name: test-ee-management-mode-linux
315330

316331
sqllogic:
317-
needs: [ build, check ]
332+
needs: [build, check]
318333
uses: ./.github/workflows/reuse.sqllogic.yml
319334
secrets: inherit
320335
with:
321336
build_profile: ${{ inputs.build_profile }}
322337
runner_provider: ${{ inputs.runner_provider }}
338+
license_type: ${{ inputs.license_type }}

0 commit comments

Comments
 (0)