Skip to content

Commit

Permalink
chore(ci): use new dsn for create database (#16968)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
zhang2014 authored Dec 5, 2024
1 parent 0343b57 commit ba9aa5f
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/actions/setup_bendsql/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ runs:
if: runner.os == 'Linux'
shell: bash
run: |
if bendsql --version; then
if command -v bendsql >/dev/null 2>&1; then
exit 0
fi
case $RUNNER_PROVIDER in
Expand All @@ -29,7 +29,7 @@ runs:
if: runner.os == 'macOS'
shell: bash
run: |
if bendsql --version; then
if command -v bendsql >/dev/null 2>&1; then
exit 0
fi
brew install databendcloud/homebrew-tap/bendsql
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/reuse.benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ jobs:
source_id: ${{ inputs.source_id }}

load:
runs-on: ubuntu-latest
runs-on: [self-hosted, X64, Linux, 2c8g, "${{ inputs.runner_provider }}"]
steps:
- uses: actions/checkout@v4
if: inputs.source == 'release'
Expand Down Expand Up @@ -126,7 +126,7 @@ jobs:
echo "DROP WAREHOUSE IF EXISTS 'benchmark-${{ inputs.run_id }}';" | bendsql
cloud:
runs-on: ubuntu-latest
runs-on: [self-hosted, X64, Linux, 2c8g, "${{ inputs.runner_provider }}"]
needs: load
strategy:
matrix:
Expand Down
2 changes: 1 addition & 1 deletion benchmark/clickbench/benchmark_cloud.sh
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ esac
echo "#######################################################"
echo "Running benchmark for Databend Cloud with S3 storage..."

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

echo "Creating warehouse..."
echo "DROP WAREHOUSE IF EXISTS '${CLOUD_WAREHOUSE}';" | bendsql
Expand Down
3 changes: 2 additions & 1 deletion benchmark/clickbench/benchmark_local.sh
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,9 @@ echo "Waiting on databend-query 10 seconds..."

# Connect to databend-query

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

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

0 comments on commit ba9aa5f

Please sign in to comment.