Skip to content

Commit 7ac293d

Browse files
committed
ci: run sqllogic test with docker image
1 parent 5d7e38b commit 7ac293d

File tree

3 files changed

+15
-19
lines changed

3 files changed

+15
-19
lines changed

.github/actions/test_sqllogic_cluster_linux/action.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,13 @@ runs:
2323
sha: ${{ github.sha }}
2424
target: ${{ inputs.target }}
2525

26-
- name: Test setup
27-
shell: bash
28-
run: |
29-
bash ./scripts/setup/dev_setup.sh -yd
30-
3126
- name: Run sqllogic Tests with Cluster mode
3227
shell: bash
3328
run: |
34-
bash ./scripts/ci/ci-run-sqllogic-tests-cluster.sh ${{ inputs.dirs }}
29+
docker run --rm --tty --net=host \
30+
--user $(id -u):$(id -g) \
31+
--volume "${PWD}:/workspace" \
32+
--workdir "/workspace" \
33+
datafuselabs/build-tool:sqllogic \
34+
bash ./scripts/ci/ci-run-sqllogic-tests-cluster.sh \
35+
${{ inputs.dirs }}

.github/actions/test_sqllogic_standalone_linux/action.yml

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -23,18 +23,13 @@ runs:
2323
sha: ${{ github.sha }}
2424
target: ${{ inputs.target }}
2525

26-
- name: Test setup
27-
shell: bash
28-
run: |
29-
bash ./scripts/setup/dev_setup.sh -yd
30-
3126
- name: Run sqllogic Tests with Standalone mode with embedded meta-store
3227
shell: bash
3328
run: |
34-
bash ./scripts/ci/ci-run-sqllogic-tests.sh ${{ inputs.dirs }}
35-
36-
# - name: Upload failure
37-
# if: failure()
38-
# uses: ./.github/actions/artifact_failure
39-
# with:
40-
# name: test-sqllogic-standalone-linux
29+
docker run --rm --tty --net=host \
30+
--user $(id -u):$(id -g) \
31+
--volume "${PWD}:/workspace" \
32+
--workdir "/workspace" \
33+
datafuselabs/build-tool:sqllogic \
34+
bash ./scripts/ci/ci-run-sqllogic-tests.sh \
35+
${{ inputs.dirs }}

.github/workflows/databend-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ jobs:
203203
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}
204204
- name: Upload to github release
205205
env:
206-
GH_TOKEN: ${{ inputs.github_token }}
206+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
207207
run: |
208208
version=${{ needs.create_release.outputs.version }}
209209
tar -C ./tests/logictest -czvf testsuites-${version}.tar.gz suites

0 commit comments

Comments
 (0)