From 17aced1491be16a58c6f3749dd01afb81ac16d48 Mon Sep 17 00:00:00 2001 From: stas Date: Wed, 13 Mar 2024 14:35:50 -0400 Subject: [PATCH] debug --- .github/workflows/manual_workflow.yml | 2 +- zkbench/src/main.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/manual_workflow.yml b/.github/workflows/manual_workflow.yml index 877f7ee..1e3817a 100644 --- a/.github/workflows/manual_workflow.yml +++ b/.github/workflows/manual_workflow.yml @@ -29,7 +29,7 @@ jobs: DATABASE_URL: ${{ secrets.DATABASE_URL }} #run: docker run --rm -e DATABASE_URL="${DATABASE_URL}" --gpus all --name zk-benchmarks -w /app/zk-benchmarks zk-benchmarks-image:latest /bin/bash -c "cd /app/zk-benchmarks/benchmarks/rust/msm && cargo bench" # run: docker run --rm -e BENCHMARK_REPO=/app/icicle -e DATABASE_URL="${DATABASE_URL}" --gpus all --name zk-benchmarks -w /app/zk-benchmarks zk-benchmarks-image:latest /bin/bash -c "cd /app/zk-benchmarks/zkbench && cargo run" - run: docker run --rm -e BENCHMARK_REPO=/app/icicle -e DATABASE_URL="${DATABASE_URL}" --gpus all --name zk-benchmarks -w /app/zk-benchmarks zk-benchmarks-image:latest /bin/bash -c "cd /app/zk-benchmarks && git pull && git rev-parse --abbrev-ref HEAD && git rev-parse --short HEAD; cd /app/zk-benchmarks/zkbench && cargo run" + run: docker run --rm -e BENCHMARK_REPO=/app/icicle -e DATABASE_URL="${DATABASE_URL}" --gpus all --name zk-benchmarks -w /app/zk-benchmarks zk-benchmarks-image:latest /bin/bash -c "cd /app/zk-benchmarks && git pull && git rev-parse --abbrev-ref HEAD && git rev-parse --short HEAD; cd /app/zk-benchmarks/zkbench && cargo run --quiet" # - name: Benchmark Rust MSM operation # run: | diff --git a/zkbench/src/main.rs b/zkbench/src/main.rs index 529eea2..65a1beb 100644 --- a/zkbench/src/main.rs +++ b/zkbench/src/main.rs @@ -66,8 +66,8 @@ async fn main() -> std::result::Result<(), Box> { let database_url = env::var("DATABASE_URL").expect("DATABASE_URL must be set"); println!("Database URL: {}", database_url); - // let id = zkbench::git_id(&repository_path); - // println!("Current commit hash: {}", id); + let id = zkbench::git_id(&repository_path); + println!("Current commit hash: {}", id); // std::process::exit(1); // let path= "../benchmarks/rust/msm";