Skip to content

Commit ba9aa5f

Browse files
authored
chore(ci): use new dsn for create database (#16968)
* chore(ci): use new dsn for create database * chore(ci): use new dsn for create database * chore(ci): use new dsn for create database * chore(ci): use new dsn for create database * chore(ci): use new dsn for create database
1 parent 0343b57 commit ba9aa5f

File tree

4 files changed

+7
-6
lines changed

4 files changed

+7
-6
lines changed

.github/actions/setup_bendsql/action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ runs:
77
if: runner.os == 'Linux'
88
shell: bash
99
run: |
10-
if bendsql --version; then
10+
if command -v bendsql >/dev/null 2>&1; then
1111
exit 0
1212
fi
1313
case $RUNNER_PROVIDER in
@@ -29,7 +29,7 @@ runs:
2929
if: runner.os == 'macOS'
3030
shell: bash
3131
run: |
32-
if bendsql --version; then
32+
if command -v bendsql >/dev/null 2>&1; then
3333
exit 0
3434
fi
3535
brew install databendcloud/homebrew-tap/bendsql

.github/workflows/reuse.benchmark.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ jobs:
9090
source_id: ${{ inputs.source_id }}
9191

9292
load:
93-
runs-on: ubuntu-latest
93+
runs-on: [self-hosted, X64, Linux, 2c8g, "${{ inputs.runner_provider }}"]
9494
steps:
9595
- uses: actions/checkout@v4
9696
if: inputs.source == 'release'
@@ -126,7 +126,7 @@ jobs:
126126
echo "DROP WAREHOUSE IF EXISTS 'benchmark-${{ inputs.run_id }}';" | bendsql
127127
128128
cloud:
129-
runs-on: ubuntu-latest
129+
runs-on: [self-hosted, X64, Linux, 2c8g, "${{ inputs.runner_provider }}"]
130130
needs: load
131131
strategy:
132132
matrix:

benchmark/clickbench/benchmark_cloud.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ esac
5252
echo "#######################################################"
5353
echo "Running benchmark for Databend Cloud with S3 storage..."
5454

55-
export BENDSQL_DSN="databend://${CLOUD_USER}:${CLOUD_PASSWORD}@${CLOUD_GATEWAY}:443"
55+
export BENDSQL_DSN="databend://${CLOUD_USER}:${CLOUD_PASSWORD}@${CLOUD_GATEWAY}:443?login=disable"
5656

5757
echo "Creating warehouse..."
5858
echo "DROP WAREHOUSE IF EXISTS '${CLOUD_WAREHOUSE}';" | bendsql

benchmark/clickbench/benchmark_local.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,9 @@ echo "Waiting on databend-query 10 seconds..."
5555

5656
# Connect to databend-query
5757

58-
export BENDSQL_DSN="databend://root:@localhost:8000/${BENCHMARK_DATASET}?sslmode=disable"
58+
export BENDSQL_DSN="databend://root:@localhost:8000?sslmode=disable"
5959
echo "CREATE DATABASE ${BENCHMARK_DATASET};" | bendsql
60+
export BENDSQL_DSN="databend://root:@localhost:8000/${BENCHMARK_DATASET}?sslmode=disable"
6061

6162
# Create table
6263
if [[ -f "${BENCHMARK_DATASET}/create_local.sql" ]]; then

0 commit comments

Comments
 (0)