Skip to content

Commit

Permalink
Use username and token when running benchmark
Browse files Browse the repository at this point in the history
  • Loading branch information
pflooky committed Jan 20, 2025
1 parent c63f974 commit d41abb8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ jobs:
- name: Get Spark query engine jars
run: bash benchmark/setup_query_engine_jars.sh
- name: Run benchmark script
env:
DATA_CATERER_API_USER: ${{ secrets.DATA_CATERER_API_USER }}
DATA_CATERER_API_TOKEN: ${{ secrets.DATA_CATERER_API_TOKEN }}
run: |
version=$(grep dataCatererVersion gradle.properties | cut -d= -f2)
bash benchmark/run_benchmark.sh
Expand Down
4 changes: 4 additions & 0 deletions benchmark/run_benchmark.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
enable_query_engine_run=${ENABLE_QUERY_ENGINE_RUN:-true}
enable_data_size_run=${ENABLE_DATA_SIZE_RUN:-true}
enable_data_sink_run=${ENABLE_DATA_SINK_RUN:-true}
data_caterer_user=${DATA_CATERER_API_USER:-}
data_caterer_token=${DATA_CATERER_API_TOKEN:-}

data_caterer_version=$(grep dataCatererVersion gradle.properties | cut -d= -f2)
default_job="io.github.datacatering.plan.benchmark.BenchmarkParquetPlanRun"
Expand Down Expand Up @@ -59,6 +61,8 @@ run_docker() {
-e "DEPLOY_MODE=client" \
-e "$driver_memory" \
-e "$executor_memory" \
-e "DATA_CATERER_API_USER=$data_caterer_user" \
-e "DATA_CATERER_API_TOKEN=$data_caterer_token" \
-e "ADDITIONAL_OPTS=$additional_conf" \
datacatering/data-caterer:"$data_caterer_version";
} 2>&1 | grep "real " | sed "$sed_option" "s/^.*real ([0-9\.]+)$/\1/")
Expand Down

0 comments on commit d41abb8

Please sign in to comment.