Skip to content

Commit f228325

Browse files
authored
chore(ci): Fix post-release and cloud db tests ci workflows (#9145)
* fix post-release ci job * fix cloud tests ci mb * Add missed packages/cubejs-redshift-driver path for watching changes for drivers tests
1 parent d130dbc commit f228325

File tree

3 files changed

+38
-13
lines changed

3 files changed

+38
-13
lines changed

.github/workflows/cloud.yml

Lines changed: 24 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -80,13 +80,6 @@ jobs:
8080
uses: actions/setup-node@v4
8181
with:
8282
node-version: ${{ matrix.node-version }}
83-
- name: Install cargo-cp-artifact
84-
run: npm install -g [email protected]
85-
- uses: Swatinem/rust-cache@v2
86-
with:
87-
workspaces: ./packages/cubejs-backend-native
88-
key: native-${{ runner.OS }}-${{ matrix.target }}
89-
shared-key: native-${{ runner.OS }}-${{ matrix.target }}
9083
- name: Get yarn cache directory path
9184
id: yarn-cache-dir-path
9285
run: echo "dir=$(yarn cache dir)" >> "$GITHUB_OUTPUT"
@@ -101,19 +94,37 @@ jobs:
10194
- name: Set Yarn version
10295
run: yarn policies set-version v1.22.22
10396
- name: Yarn install
104-
run: CUBESTORE_SKIP_POST_INSTALL=true yarn install --frozen-lockfile
105-
- name: Build client
97+
uses: nick-fields/retry@v3
98+
env:
99+
CUBESTORE_SKIP_POST_INSTALL: true
100+
with:
101+
max_attempts: 3
102+
retry_on: error
103+
retry_wait_seconds: 15
104+
timeout_minutes: 20
105+
command: yarn install --frozen-lockfile
106+
- name: Build Core Client libraries
106107
run: yarn build
108+
- name: Build other packages
109+
run: yarn lerna run --concurrency 1 build
110+
env:
111+
NODE_OPTIONS: --max_old_space_size=4096
107112
- name: Lerna tsc
108113
run: yarn tsc
109-
- name: Build native (no python)
110-
run: cd packages/cubejs-backend-native && npm run native:build-release
114+
- name: Build cubejs-backend-native (without Python)
115+
run: yarn run native:build-release
116+
working-directory: ./packages/cubejs-backend-native
111117
- name: Run Integration tests for ${{ matrix.db }} matrix
112-
timeout-minutes: 30
118+
uses: nick-fields/retry@v3
119+
with:
120+
max_attempts: 3
121+
retry_on: error
122+
retry_wait_seconds: 15
123+
timeout_minutes: 30
124+
command: ./.github/actions/integration/${{ matrix.db }}.sh
113125
env:
114126
CUBEJS_DB_BQ_CREDENTIALS: ${{ secrets.CUBEJS_DB_BQ_CREDENTIALS }}
115127
CUBEJS_AWS_KEY: ${{ secrets.CUBEJS_AWS_KEY }}
116128
CUBEJS_AWS_SECRET: ${{ secrets.CUBEJS_AWS_SECRET }}
117129
CUBEJS_DB_USER: ${{ secrets.DRIVERS_TESTS_CUBEJS_DB_SNOWFLAKE_USER }}
118130
CUBEJS_DB_PASS: ${{ secrets.DRIVERS_TESTS_CUBEJS_DB_SNOWFLAKE_PASS }}
119-
run: ./.github/actions/integration/${{ matrix.db }}.sh

.github/workflows/drivers-tests.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ on:
2323
- 'packages/cubejs-mssql-driver/**'
2424
- 'packages/cubejs-mysql-driver/**'
2525
- 'packages/cubejs-postgres-driver/**'
26+
- 'packages/cubejs-redshift-driver/**'
2627
- 'packages/cubejs-snowflake-driver/**'
2728
- 'packages/cubejs-vertica-driver/**'
2829

@@ -49,6 +50,7 @@ on:
4950
- 'packages/cubejs-mssql-driver/**'
5051
- 'packages/cubejs-mysql-driver/**'
5152
- 'packages/cubejs-postgres-driver/**'
53+
- 'packages/cubejs-redshift-driver/**'
5254
- 'packages/cubejs-snowflake-driver/**'
5355
- 'packages/cubejs-vertica-driver/**'
5456

.github/workflows/post-release.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,15 @@ jobs:
2929
steps:
3030
- name: Checkout
3131
uses: actions/checkout@v4
32+
- name: Install Rust
33+
uses: actions-rust-lang/setup-rust-toolchain@v1
34+
with:
35+
toolchain: nightly-2024-07-15
36+
# override: true # this is by default on
37+
rustflags: ""
38+
components: rustfmt
39+
target: x86_64-unknown-linux-gnu
40+
cache: false
3241
- name: Install Node.js ${{ matrix.node-version }}
3342
uses: actions/setup-node@v4
3443
with:
@@ -61,6 +70,9 @@ jobs:
6170
run: yarn build
6271
- name: Lerna tsc
6372
run: yarn tsc
73+
- name: Build cubejs-backend-native (without Python)
74+
run: yarn run native:build-release
75+
working-directory: ./packages/cubejs-backend-native
6476
- name: Birdbox
6577
env:
6678
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}

0 commit comments

Comments
 (0)