Skip to content

feat: aggregate and summarize metrics with rust (#1154) #258

feat: aggregate and summarize metrics with rust (#1154)

feat: aggregate and summarize metrics with rust (#1154) #258

Workflow file for this run

name: OpenVM SDK Tests
on:
push:
branches: ["main"]
pull_request:
branches: ["**"]
paths:
- "crates/circuits/primitives/**"
- "crates/vm/**"
- "crates/sdk/**"
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
cancel-in-progress: true
env:
CARGO_TERM_COLOR: always
OPENVM_FAST_TEST: "1"
jobs:
tests:
runs-on:
- runs-on=${{ github.run_id }}
- family=m7a.48xlarge
- disk=large
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
with:
cache-on-failure: true
- uses: taiki-e/install-action@nextest
- name: Install solc # svm should support arm64 linux
run: (hash svm 2>/dev/null || cargo install --version 0.2.23 svm-rs) && svm install 0.8.19 && solc --version
- name: Install architecture specific tools
run: |
arch=$(uname -m)
case $arch in
arm64|aarch64)
S5CMD_BIN="s5cmd_2.2.2_linux_arm64.deb"
rustup component add rust-src --toolchain nightly-2024-10-30-aarch64-unknown-linux-gnu
;;
x86_64|amd64)
S5CMD_BIN="s5cmd_2.2.2_linux_amd64.deb"
rustup component add rust-src --toolchain nightly-2024-10-30-x86_64-unknown-linux-gnu
;;
*)
echo "Unsupported architecture: $arch"
exit 1
;;
esac
echo "Checking s5cmd"
if type s5cmd &>/dev/null; then
echo "s5cmd was installed."
else
TMP_DIR=/tmp/s5cmd
rm -rf $TMP_DIR
mkdir $TMP_DIR
echo "s5cmd was not installed. Installing.."
wget "https://github.com/peak/s5cmd/releases/download/v2.2.2/${S5CMD_BIN}" -P $TMP_DIR
sudo dpkg -i "${TMP_DIR}/${S5CMD_BIN}"
fi
- name: Setup halo2
working-directory: crates/sdk
run: |
bash ../../extensions/native/recursion/trusted_setup_s3.sh
- name: Run openvm-sdk crate tests
working-directory: crates/sdk
run: |
export RUST_BACKTRACE=1
cargo nextest run --cargo-profile=fast --test-threads=2 --features parallel