Skip to content

Commit 1890560

Browse files
committed
Revert "Merge branch 'main' into feat/native_multi_observe"
This reverts commit ea82760, reversing changes made to 3230ce8.
1 parent a64c8ca commit 1890560

File tree

739 files changed

+9544
-39328
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

739 files changed

+9544
-39328
lines changed

.github/workflows/benchmark-call.yml

Lines changed: 11 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,6 @@ on:
106106

107107
env:
108108
S3_METRICS_PATH: s3://openvm-public-data-sandbox-us-east-1/benchmark/github/metrics
109-
S3_FLAMEGRAPHS_PATH: s3://openvm-public-data-sandbox-us-east-1/benchmark/github/flamegraphs
110109
FEATURE_FLAGS: "bench-metrics,parallel,nightly-features"
111110
INPUT_ARGS: ""
112111
CARGO_NET_GIT_FETCH_WITH_CLI: "true"
@@ -182,9 +181,9 @@ jobs:
182181
- name: Set working directory
183182
id: set-working-dir
184183
run: |
185-
WORKING_DIR=$(jq -r --arg id "${{ inputs.benchmark_id }}" '
184+
WORKING_DIR=$(jq -r --arg name "${{ inputs.benchmark_name }}" '
186185
.benchmarks[] |
187-
select(.id == $id) |
186+
select(.name == $name) |
188187
.working_directory
189188
' ./ci/benchmark-config.json)
190189
RELATIVE_PATH=$(python3 -c "import os.path; print(os.path.relpath('.', '$WORKING_DIR'))")
@@ -229,25 +228,16 @@ jobs:
229228
230229
s5cmd cp $METRIC_PATH ${{ env.S3_METRICS_PATH }}/${METRIC_NAME}-${current_sha}.json
231230
232-
- name: Install inferno-flamegraph
233-
if: ${{ contains(env.FEATURE_FLAGS, 'profiling') }}
234-
run: cargo install inferno
231+
# - name: Install inferno-flamegraph
232+
# run: cargo install inferno
235233

236-
- name: Generate flamegraphs
237-
if: ${{ contains(env.FEATURE_FLAGS, 'profiling') }}
238-
run: |
239-
if [[ -f $METRIC_PATH ]]; then
240-
GUEST_SYMBOLS_PATH="${METRIC_PATH%.json}.syms"
241-
if [[ -f $GUEST_SYMBOLS_PATH ]]; then
242-
echo "Generating flamegraphs with guest symbols"
243-
python3 ci/scripts/metric_unify/flamegraph.py $METRIC_PATH --guest-symbols $GUEST_SYMBOLS_PATH
244-
else
245-
echo "No guest symbols found, generating flamegraphs without symbols"
246-
python3 ci/scripts/metric_unify/flamegraph.py $METRIC_PATH
247-
fi
248-
s5cmd cp '.bench_metrics/flamegraphs/*.svg' "${{ env.S3_FLAMEGRAPHS_PATH }}/${METRIC_NAME}-${current_sha}/"
249-
echo "UPLOAD_FLAMEGRAPHS=1" >> $GITHUB_ENV
250-
fi
234+
# - name: Generate flamegraphs
235+
# run: |
236+
# if [[ -f $METRIC_PATH ]]; then
237+
# python3 ci/scripts/metric_unify/flamegraph.py $METRIC_PATH
238+
# s5cmd cp '.bench_metrics/flamegraphs/*.svg' "${{ env.PUBLIC_S3_PATH }}/${current_sha}/"
239+
# echo "UPLOAD_FLAMEGRAPHS=1" >> $GITHUB_ENV
240+
# fi
251241

252242
##########################################################################
253243
# Update s3 for latest main metrics upon a push event #

.github/workflows/benchmarks-execute.yml

Lines changed: 0 additions & 112 deletions
This file was deleted.

.github/workflows/benchmarks.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
types: [opened, synchronize, reopened, labeled]
88
branches: ["**"]
99
paths:
10-
- "benchmarks/prove/**"
10+
- "benchmarks/**"
1111
- "crates/circuits/**"
1212
- "crates/toolchain/**"
1313
- "crates/prof/**"
@@ -199,9 +199,6 @@ jobs:
199199
- name: Download all metric json files from S3
200200
run: |
201201
matrix=$(echo '${{ needs.create-matrix.outputs.matrix }}')
202-
names=$(echo $matrix | jq -r '.[] | "\(.id)"')
203-
names_list=$(echo -n "$names" | paste -sd "," -)
204-
205202
json_files=$(echo $matrix | jq -r '
206203
.[] |
207204
"\(.id)-${{ env.CURRENT_SHA }}.json"')
@@ -227,7 +224,6 @@ jobs:
227224
228225
openvm-prof --json-paths "${json_file_list}" \
229226
--prev-json-paths "${prev_json_file_list}" \
230-
--names "${names_list}" \
231227
summary \
232228
--benchmark-results-link "https://github.com/${{ github.repository }}/blob/benchmark-results/${BENCHMARK_RESULTS_PATH}" \
233229
--summary-md-path summary.md

.github/workflows/cli.yml

Lines changed: 15 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ on:
1212
- "crates/cli/**"
1313
- "examples/**"
1414
- "Cargo.toml"
15-
- ".github/workflows/cli.yml"
1615

1716
concurrency:
1817
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
@@ -26,11 +25,11 @@ jobs:
2625
app-level-cli:
2726
runs-on:
2827
- runs-on=${{ github.run_id }}
29-
- disk=large
3028
- runner=32cpu-linux-arm64
3129
- extras=s3-cache
3230

3331
steps:
32+
- uses: runs-on/action@v1
3433
- uses: actions/checkout@v4
3534
- uses: dtolnay/rust-toolchain@stable
3635
- uses: Swatinem/rust-cache@v2
@@ -40,41 +39,38 @@ jobs:
4039
- name: Install solc # svm should support arm64 linux
4140
run: (hash svm 2>/dev/null || cargo install --version 0.2.23 svm-rs) && svm install 0.8.19 && solc --version
4241

42+
- name: Install tools
43+
run: |
44+
rustup component add rust-src --toolchain nightly-2025-02-14
45+
4346
- name: Install cargo-openvm
4447
working-directory: crates/cli
4548
run: |
4649
cargo install --force --locked --path .
4750
51+
- name: check build consistency
52+
working-directory: examples/ecc
53+
run: |
54+
cargo openvm build
55+
mv openvm/app.vmexe app1.vmexe
56+
cargo openvm build
57+
cmp app1.vmexe openvm/app.vmexe || (echo "Build is not deterministic!" && exit 1)
58+
4859
- name: Build and run book examples
4960
working-directory: examples
5061
run: |
51-
set -e
5262
for dir in */; do
5363
if [ -f "${dir}Cargo.toml" ]; then
5464
echo "Building ${dir%/}"
5565
cd "$dir"
56-
cargo openvm build
57-
cargo openvm run
66+
cargo openvm build && cargo openvm run
5867
cd ..
5968
fi
6069
done
6170
62-
- name: check build consistency
63-
working-directory: examples/ecc
64-
run: |
65-
cargo openvm build
66-
mv target/openvm/release/ecc-example.vmexe app1.vmexe
67-
cargo openvm build
68-
cmp app1.vmexe target/openvm/release/ecc-example.vmexe || (echo "Build is not deterministic!" && exit 1)
69-
7071
- name: Run app-level CLI commands
7172
working-directory: crates/cli
7273
run: |
7374
export RUST_BACKTRACE=1
7475
cargo build
75-
cargo run --bin cargo-openvm -- openvm keygen --config ./example/app_config.toml --output-dir .
76-
77-
- name: Run CLI tests
78-
working-directory: crates/cli
79-
run: |
80-
cargo nextest run --cargo-profile=fast
76+
cargo run --bin cargo-openvm -- openvm keygen --config ./example/app_config.toml --output app.pk --vk-output app.vk

.github/workflows/extension-tests.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,8 @@ jobs:
7676
FEATURE_ARGS=""
7777
if [[ "${{ matrix.extension.name }}" == "pairing" ]]; then
7878
FEATURE_ARGS="--features=bn254,bls12_381,halo2curves"
79+
elif [[ "${{ matrix.extension.name }}" == "ecc" ]]; then
80+
FEATURE_ARGS="--features=k256,p256"
7981
fi
8082
cargo nextest run --cargo-profile=fast $FEATURE_ARGS --no-tests=pass
8183

.github/workflows/guest-lib-tests.yml

Lines changed: 0 additions & 77 deletions
This file was deleted.

0 commit comments

Comments
 (0)