Skip to content

Commit b2c4ee9

Browse files
committed
Move case sensitive entry from ClickHouseDbRunner.js to ClickHouseDbRunner.ts
2 parents 153b3fd + 5a540db commit b2c4ee9

File tree

646 files changed

+43892
-14933
lines changed

Some content is hidden

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

646 files changed

+43892
-14933
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#!/bin/bash
2+
set -eo pipefail
3+
4+
# Debug log for test containers
5+
export DEBUG=testcontainers
6+
7+
echo "::group::Dremio [cloud]"
8+
yarn lerna run --concurrency 1 --stream --no-prefix integration:dremio
9+
10+
echo "::endgroup::"
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#!/bin/bash
2+
set -eo pipefail
3+
4+
# Debug log for test containers
5+
export DEBUG=testcontainers
6+
7+
echo "::group::Firebolt [cloud]"
8+
yarn lerna run --concurrency 1 --stream --no-prefix integration:firebolt
9+
10+
echo "::endgroup::"
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#!/bin/bash
2+
set -eo pipefail
3+
4+
# Debug log for test containers
5+
export DEBUG=testcontainers
6+
7+
export TEST_VERTICA_VERSION=12.0.4-0
8+
9+
echo "::group::Vertica ${TEST_VERTICA_VERSION}"
10+
docker pull vertica/vertica-ce:${TEST_VERTICA_VERSION}
11+
yarn lerna run --concurrency 1 --stream --no-prefix integration:vertica
12+
echo "::endgroup::"

.github/actions/smoke.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,10 @@ echo "::group::MongoBI"
5757
yarn lerna run --concurrency 1 --stream --no-prefix smoke:mongobi
5858
echo "::endgroup::"
5959

60+
echo "::group::Vertica"
61+
yarn lerna run --concurrency 1 --stream --no-prefix smoke:vertica
62+
echo "::endgroup::"
63+
6064
echo "::group::RBAC"
6165
yarn lerna run --concurrency 1 --stream --no-prefix smoke:rbac
6266
echo "::endgroup::"

.github/pull_request_template.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
**Check List**
2-
- [ ] Tests has been run in packages where changes made if available
2+
- [ ] Tests have been run in packages where changes made if available
33
- [ ] Linter has been run for changed code
44
- [ ] Tests for the changes have been added if not covered yet
55
- [ ] Docs have been added / updated if required

.github/workflows/drivers-tests.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ on:
2424
- 'packages/cubejs-mysql-driver/**'
2525
- 'packages/cubejs-postgres-driver/**'
2626
- 'packages/cubejs-snowflake-driver/**'
27+
- 'packages/cubejs-vertica-driver/**'
2728

2829
# To test SQL API Push down
2930
- 'packages/cubejs-backend-native/**'
@@ -49,6 +50,7 @@ on:
4950
- 'packages/cubejs-mysql-driver/**'
5051
- 'packages/cubejs-postgres-driver/**'
5152
- 'packages/cubejs-snowflake-driver/**'
53+
- 'packages/cubejs-vertica-driver/**'
5254

5355
# To test SQL API Push down
5456
- 'packages/cubejs-backend-native/**'

.github/workflows/publish.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ jobs:
152152
strategy:
153153
matrix:
154154
node-version: [20.x]
155-
os-version: ["macos-12"]
155+
os-version: ["macos-13"]
156156
target: ["x86_64-apple-darwin", "aarch64-apple-darwin"]
157157
python-version: ["3.9", "3.10", "3.11", "3.12", "fallback"]
158158
include:
@@ -677,7 +677,7 @@ jobs:
677677
tar_executable: tar
678678
# Please use minimal possible version of macOS, because it produces constraint on libstdc++
679679
- target: x86_64-apple-darwin
680-
os: macos-12
680+
os: macos-13
681681
executable_name: cubestored
682682
# upx has been disabled because it is crashing for macOS Ventura or above! It was disabled on 2024-09-05.
683683
strip: false

.github/workflows/push.yml

Lines changed: 43 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ jobs:
4242
matrix:
4343
# Current docker version + next LTS
4444
node-version: [20.x, 22.x]
45+
python-version: [3.11]
4546
fail-fast: false
4647

4748
steps:
@@ -65,6 +66,10 @@ jobs:
6566
uses: actions/setup-node@v4
6667
with:
6768
node-version: ${{ matrix.node-version }}
69+
- name: Install Python
70+
uses: actions/setup-python@v5
71+
with:
72+
python-version: ${{ matrix.python-version }}
6873
- name: Get yarn cache directory path
6974
id: yarn-cache-dir-path
7075
run: echo "dir=$(yarn cache dir)" >> "$GITHUB_OUTPUT"
@@ -92,6 +97,12 @@ jobs:
9297
run: yarn tsc
9398
- name: Build client
9499
run: yarn build
100+
- name: Build cubejs-backend-native (with Python)
101+
run: yarn run native:build-release-python
102+
working-directory: ./packages/cubejs-backend-native
103+
env:
104+
PYO3_PYTHON: python${{ matrix.python-version }}
105+
95106
- name: Lerna test
96107
run: yarn lerna run --concurrency 1 --stream --no-prefix unit
97108
# - uses: codecov/codecov-action@v1
@@ -313,13 +324,19 @@ jobs:
313324
runs-on: ubuntu-20.04
314325
timeout-minutes: 60
315326
if: (needs['latest-tag-sha'].outputs.sha != github.sha)
327+
env:
328+
CLOUD_DATABASES: >
329+
firebolt
330+
dremio
331+
# Athena (just to check for secrets availability)
332+
DRIVERS_TESTS_ATHENA_CUBEJS_AWS_KEY: ${{ secrets.DRIVERS_TESTS_ATHENA_CUBEJS_AWS_KEY }}
316333

317334
strategy:
318335
matrix:
319336
node-version: [20.x]
320337
db: [
321338
'clickhouse', 'druid', 'elasticsearch', 'mssql', 'mysql', 'postgres', 'prestodb',
322-
'mysql-aurora-serverless', 'crate', 'mongobi'
339+
'mysql-aurora-serverless', 'crate', 'mongobi', 'firebolt', 'dremio', 'vertica'
323340
]
324341
fail-fast: false
325342

@@ -370,6 +387,21 @@ jobs:
370387
retry_wait_seconds: 15
371388
timeout_minutes: 30
372389
command: ./.github/actions/integration/${{ matrix.db }}.sh
390+
# It's enough to test for any one secret because they are set all at once or not set all
391+
if: |
392+
(contains(env.CLOUD_DATABASES, matrix.db) && env.DRIVERS_TESTS_ATHENA_CUBEJS_AWS_KEY != '') ||
393+
(!contains(env.CLOUD_DATABASES, matrix.db))
394+
env:
395+
# Firebolt Integration
396+
DRIVERS_TESTS_FIREBOLT_CUBEJS_FIREBOLT_ENGINE_NAME: ${{ secrets.DRIVERS_TESTS_FIREBOLT_CUBEJS_FIREBOLT_ENGINE_NAME }}
397+
DRIVERS_TESTS_FIREBOLT_CUBEJS_DB_NAME: ${{ secrets.DRIVERS_TESTS_FIREBOLT_CUBEJS_DB_NAME }}
398+
DRIVERS_TESTS_FIREBOLT_CUBEJS_FIREBOLT_ACCOUNT: ${{ secrets.DRIVERS_TESTS_FIREBOLT_CUBEJS_FIREBOLT_ACCOUNT }}
399+
DRIVERS_TESTS_FIREBOLT_CUBEJS_DB_USER: ${{ secrets.DRIVERS_TESTS_FIREBOLT_CUBEJS_DB_USER }}
400+
DRIVERS_TESTS_FIREBOLT_CUBEJS_DB_PASS: ${{ secrets.DRIVERS_TESTS_FIREBOLT_CUBEJS_DB_PASS }}
401+
# Dremio Integration
402+
DRIVERS_TESTS_DREMIO_CUBEJS_DB_URL: ${{ secrets.DRIVERS_TESTS_DREMIO_CUBEJS_DB_URL }}
403+
DRIVERS_TESTS_DREMIO_CUBEJS_DB_NAME: ${{ secrets.DRIVERS_TESTS_DREMIO_CUBEJS_DB_NAME }}
404+
DRIVERS_TESTS_DREMIO_CUBEJS_DB_DREMIO_AUTH_TOKEN: ${{ secrets.DRIVERS_TESTS_DREMIO_CUBEJS_DB_DREMIO_AUTH_TOKEN }}
373405

374406
integration-smoke:
375407
needs: [ latest-tag-sha, build-cubestore ]
@@ -380,6 +412,7 @@ jobs:
380412
strategy:
381413
matrix:
382414
node-version: [ 20.x ]
415+
python-version: [ 3.11 ]
383416
fail-fast: false
384417

385418
steps:
@@ -405,6 +438,10 @@ jobs:
405438
uses: actions/setup-node@v4
406439
with:
407440
node-version: ${{ matrix.node-version }}
441+
- name: Install Python
442+
uses: actions/setup-python@v5
443+
with:
444+
python-version: ${{ matrix.python-version }}
408445
- name: Get yarn cache directory path
409446
id: yarn-cache-dir-path
410447
run: echo "dir=$(yarn cache dir)" >> "$GITHUB_OUTPUT"
@@ -432,6 +469,11 @@ jobs:
432469
uses: GoodManWEN/oracle-client-action@main
433470
- name: Build client
434471
run: yarn build
472+
- name: Build cubejs-backend-native (with Python)
473+
run: yarn run native:build-release-python
474+
working-directory: ./packages/cubejs-backend-native
475+
env:
476+
PYO3_PYTHON: python${{ matrix.python-version }}
435477
- name: Lerna tsc
436478
run: yarn tsc
437479
- name: Download cubestored-x86_64-unknown-linux-gnu-release artifact

.github/workflows/rust-cubestore-master.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ jobs:
196196
# cubestored.exe: CantPackException: superfluous data between sections
197197
compress: false
198198
# Please use minimal possible version of macOS, because it produces constraint on libstdc++
199-
- os: macos-12
199+
- os: macos-13
200200
target: x86_64-apple-darwin
201201
executable_name: cubestored
202202
# upx has been disabled because it is crashing for macOS Ventura or above! It was disabled on 2024-09-05.

.github/workflows/rust-cubestore.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ jobs:
127127
# cubestored.exe: CantPackException: superfluous data between sections
128128
compress: false
129129
# Please use minimal possible version of macOS, because it produces constraint on libstdc++
130-
- os: macos-12
130+
- os: macos-13
131131
target: x86_64-apple-darwin
132132
executable_name: cubestored
133133
# upx has been disabled because it is crashing for macOS Ventura or above! It was disabled on 2024-09-05.

0 commit comments

Comments
 (0)