Skip to content

Commit 13e9626

Browse files
authored
ci: run vacuum after benchmark (#18109)
1 parent 5e40a8d commit 13e9626

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/workflows/reuse.benchmark.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,10 @@ jobs:
120120
env:
121121
BENDSQL_DSN: "databend://${{ secrets.BENCHMARK_CLOUD_USER }}:${{ secrets.BENCHMARK_CLOUD_PASSWORD }}@${{ secrets.BENCHMARK_CLOUD_GATEWAY }}:443/?warehouse=default"
122122
run: |
123-
echo "DROP DATABASE IF EXISTS load_test_${{ inputs.run_id }};" | bendsql
124-
echo "DROP WAREHOUSE IF EXISTS 'benchmark-${{ inputs.run_id }}';" | bendsql
123+
echo "DROP DATABASE IF EXISTS load_test_${{ inputs.run_id }};" | bendsql -o table
124+
echo "DROP WAREHOUSE IF EXISTS 'benchmark-${{ inputs.run_id }}';" | bendsql -o table
125+
echo 'VACUUM TEMPORARY FILES;' | bendsql -o table
126+
echo 'VACUUM DROP TABLE;' | bendsql -o table
125127
126128
cloud:
127129
runs-on: [self-hosted, X64, Linux, 2c8g, "${{ inputs.runner_provider }}"]
@@ -166,7 +168,7 @@ jobs:
166168
env:
167169
BENDSQL_DSN: "databend://${{ secrets.BENCHMARK_CLOUD_USER }}:${{ secrets.BENCHMARK_CLOUD_PASSWORD }}@${{ secrets.BENCHMARK_CLOUD_GATEWAY }}:443/?warehouse=default"
168170
run: |
169-
echo "DROP WAREHOUSE IF EXISTS 'benchmark-${{ inputs.run_id }}';" | bendsql
171+
echo "DROP WAREHOUSE IF EXISTS 'benchmark-${{ inputs.run_id }}';" | bendsql -o table
170172
171173
comment:
172174
needs: [local, cloud]

0 commit comments

Comments
 (0)