Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(aptos): Release aptos-v1.1.0 #261

Merged
merged 66 commits into from
Sep 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
66 commits
Select commit Hold shift + click to select a range
e15ee25
chore(aptos): Release `aptos-v1.1.0`
tchataigner Sep 27, 2024
a489d7f
refactor: update lock files
tchataigner Sep 27, 2024
e7263ba
ci: Add `cargo-deny` workflow (#79)
samuelburnham Jul 9, 2024
0a74ebb
ci: Update licenses (#86)
samuelburnham Jul 10, 2024
1e2b1a8
ci: Update fixtures in nightly job (#92)
samuelburnham Jul 11, 2024
3981010
chore: Update fixtures (#95)
github-actions[bot] Jul 15, 2024
b02c400
chore: Update fixtures (#98)
github-actions[bot] Jul 17, 2024
3a8464e
chore: Update fixtures (#107)
github-actions[bot] Jul 18, 2024
996b85b
chore: Update fixtures (#114)
github-actions[bot] Jul 22, 2024
2b8da9e
feat: Wrapper contract with additional LC protocol-specific checks (…
storojs72 Jul 22, 2024
976f96c
chore: Update fixtures (#116)
github-actions[bot] Jul 24, 2024
1c04b0d
chore: Update fixtures (#120)
github-actions[bot] Jul 25, 2024
9ff8b3c
feat: Lookahead Move verifier (#119)
storojs72 Jul 25, 2024
d47be5c
chore: Fix inclusion program output format (#122)
storojs72 Jul 26, 2024
13444b8
chore: Update fixtures (#124)
github-actions[bot] Jul 29, 2024
13c6a6e
Revert "chore: Update fixtures (#124)" (#129)
samuelburnham Jul 29, 2024
81dba81
fix: fixtures (#130)
tchataigner Jul 29, 2024
2f60e99
chore: Update `aptos` Rust version to `nightly-2024-07-30` (#139)
github-actions[bot] Aug 1, 2024
6eae926
feat: port patches 1.0.1 (#141)
tchataigner Aug 2, 2024
12df82a
update licenses (#142)
johnchandlerburnham Aug 2, 2024
e309edd
chore: Rename to argument (#144)
samuelburnham Aug 5, 2024
d971dff
chore: Update deny.toml for new defaults (#145)
wwared Aug 6, 2024
bc0ef85
ci: simplify URL for dependencies
huitseeker Aug 9, 2024
132b1dc
ci: remove token setup for no-longer-private repos
huitseeker Aug 9, 2024
ca6c647
chore: Update fixtures (#155)
github-actions[bot] Aug 12, 2024
e180fe8
chore: Update `aptos` Rust version to `nightly-2024-08-13` (#158)
samuelburnham Aug 15, 2024
4db0714
chore: Update sphinx dependencies to use 'dev' branch (#165)
huitseeker Aug 17, 2024
8bb36a5
chore: update dependencies, fix optional deps (#168)
huitseeker Aug 17, 2024
68e3bc2
fix: Use `Box::pin` for large futures in ethereum's client binary (#177)
wwared Aug 20, 2024
c46bcd1
refactor: Adapt to Sphinx (Refactor proof handling) (#161)
huitseeker Aug 20, 2024
127fd82
refactor: update lock files
tchataigner Sep 27, 2024
8c31a56
chore: Remove superfluous nightly versions (#185)
samuelburnham Aug 23, 2024
f92e03a
ci: Use custom runner for `bench.yml` (#187)
samuelburnham Aug 26, 2024
3df2a8a
ci: Fix cycle regression checker (#188)
samuelburnham Aug 27, 2024
6cdb3b2
feat: Update E2E Aptos bench (#196)
storojs72 Aug 29, 2024
1d8f49a
feat: docker & k8s (#12)
tchataigner Aug 30, 2024
4ef8678
chore: Update fixtures (#198)
argument-ci-bot[bot] Sep 2, 2024
a83e58a
chore: Update `aptos` Rust version to `nightly-2024-08-29` (#200)
argument-ci-bot[bot] Sep 2, 2024
6fd0f83
chore: Update fixtures (#203)
argument-ci-bot[bot] Sep 4, 2024
e97ac07
chore: Update fixtures (#206)
argument-ci-bot[bot] Sep 5, 2024
73a255f
chore: Update fixtures (#208)
argument-ci-bot[bot] Sep 9, 2024
49d320f
chore: Update fixtures (#212)
argument-ci-bot[bot] Sep 10, 2024
638c80b
chore: Update fixtures (#215)
argument-ci-bot[bot] Sep 11, 2024
4ea7cc3
chore: Update fixtures (#218)
argument-ci-bot[bot] Sep 12, 2024
dfaa2db
chore: Update fixtures (#222)
argument-ci-bot[bot] Sep 13, 2024
02834a3
chore: Update fixtures (#223)
argument-ci-bot[bot] Sep 16, 2024
e14d32f
chore: Update `aptos` Rust version to `nightly-2024-09-13` (#227)
argument-ci-bot[bot] Sep 16, 2024
b7200c6
chore: Update fixtures (#229)
argument-ci-bot[bot] Sep 17, 2024
a8b5454
chore: Update fixtures (#230)
argument-ci-bot[bot] Sep 18, 2024
dce9026
chore: Update fixtures (#232)
argument-ci-bot[bot] Sep 19, 2024
d113417
feat: helm chart (#228)
tchataigner Sep 20, 2024
71ff295
chore: Update fixtures (#235)
argument-ci-bot[bot] Sep 20, 2024
ff40f06
chore: Update fixtures (#238)
argument-ci-bot[bot] Sep 23, 2024
5944013
chore: Update fixtures (#242)
argument-ci-bot[bot] Sep 24, 2024
d2a68a1
chore: Update fixtures (#245)
argument-ci-bot[bot] Sep 25, 2024
dd47423
chore: Update fixtures (#248)
argument-ci-bot[bot] Sep 26, 2024
82e0065
chore: Update fixtures (#252)
argument-ci-bot[bot] Sep 27, 2024
143f3f8
feat: aptos cleanup (#253)
tchataigner Sep 27, 2024
7c81c93
refactor: refer aptos in docker folder
tchataigner Sep 27, 2024
d254381
refactor: update git org
tchataigner Sep 27, 2024
5a09e68
fix: deny (#250)
tchataigner Sep 26, 2024
cda06a5
ci: Refactor release workflow (#236)
samuelburnham Sep 26, 2024
fff8a9f
feat: Implement Solidity contract for Kadena (#247)
storojs72 Sep 27, 2024
f1da5ba
ci: Fix `release-pr.yml` version (#255)
samuelburnham Sep 27, 2024
f45cd88
refactor: fix fixture generator Cargo.toml
tchataigner Sep 27, 2024
8594c5b
refactor: lint fixture generator
tchataigner Sep 27, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 9 additions & 12 deletions .github/actions/setup/action.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,7 @@
name: Test setup
inputs:
pull_token:
description: "Token to use for private repo access"
required: true
runs:
using: "composite"
steps:
- name: Set up git private repo access
shell: bash
run: |
git config --global url."https://${{ inputs.pull_token }}@github.com/".insteadOf ssh://[email protected]
git config --global url."https://${{ inputs.pull_token }}@github.com".insteadOf https://github.com
- name: Set env
shell: bash
run: |
Expand All @@ -20,9 +11,15 @@ runs:
with:
go-version: '1.22'
cache-dependency-path: "**/go.sum"
- uses: dtolnay/rust-toolchain@master
# Assumes the `fixture-generator` Rust version is reasonably up to date with all of the light clients
- name: Get Rust toolchain version
shell: bash
run: |
echo "TOOLCHAIN_VERSION=$(grep -E '^channel\s*=' ./fixture-generator/rust-toolchain.toml | awk -F'"' '{ print $2 }')" | tee -a $GITHUB_ENV
- name: Install Rust
uses: dtolnay/rust-toolchain@master
with:
toolchain: nightly-2024-05-31
toolchain: ${{ env.TOOLCHAIN_VERSION }}
- uses: Swatinem/rust-cache@v2
with:
workspaces: "aptos -> target"
Expand All @@ -34,7 +31,7 @@ runs:

sudo apt-get install -y build-essential pkg-config libssl-dev libudev-dev cmake clang

git clone https://github.com/lurk-lab/sphinx.git
git clone https://github.com/argumentcomputer/sphinx.git
cd sphinx/cli
cargo install --locked --force --path .

Expand Down
8 changes: 8 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,18 @@ updates:
separator: "-"
schedule:
interval: weekly
ignore:
# Ignore updates from certain packages
- dependency-name: "syn" # this is a major update for a pre-1.0 package

groups:
rust-dependencies:
patterns:
- "*"
update-types:
- "minor"
- "patch"

open-pull-requests-limit: 5

- package-ecosystem: "github-actions"
Expand Down
116 changes: 0 additions & 116 deletions .github/workflows/assets/APACHE.md

This file was deleted.

71 changes: 48 additions & 23 deletions .github/workflows/bench.yml
Original file line number Diff line number Diff line change
@@ -1,72 +1,97 @@
# Runs benchmarks on self-hosted infra via `workflow_dispatch`
# This trigger can be found at https://github.com/wormhole-foundation/example-zk-light-clients-internal/actions/workflows/bench.yml
# This trigger can be found at https://github.com/argumentcomputer/zk-light-clients/actions/workflows/bench.yml
#
# The output can be found in the logs or in a comment on the latest commit. This can be viewed on GitHub at the bottom of the commit page.
# See https://github.com/wormhole-foundation/example-zk-light-clients-internal/commit/3d06c3585e94fe027bf7dacf865106c259994c85#comments
name: Manual benchmark
# The benchmark report can be found in the logs and as a comment on the latest commit on `dev`.
# The report can also be sent as a Zulip message to https://zulip.argument.xyz
name: Light client benchmark
on:
workflow_dispatch:
inputs:
# Name of the `aptos/light-client` benchmark to run
# Which light client to bench, e.g. `aptos`, `ethereum` or `kadena`
light-client:
description: 'Name of the light client to benchmark'
type: string
required: true
# Name of the `light-client` benchmark to run, e.g. `inclusion`
# Runs in the `light-client` directory, so it cannot benchmark `proof_server` or `programs`
bench-name:
description: 'Name of the benchmark to run'
type: string
required: true
# List of comma-separated env vars, e.g. `RUST_LOG=debug,SNARK=1`
# `RUSTFLAGS="-C target-cpu=native --cfg tokio_unstable -C opt-level=3"` is set by default
env:
description: 'List of comma-separated environment variables'
type: string
required: false
# Optionally send a message to the below Zulip streams
# Defaults to false
zulip:
description: 'Send the report to Zulip'
type: boolean
required: false
# User(s) to whom to send a private DM (optional)
# Comma-separated list of user ID integers, e.g. `11,12` (IDs can be found in user profiles)
# If not specified, sends to a stream/topic pair instead
private:
description: 'DM given user ID(s)'
description: 'Send DM to given user ID(s)'
type: string
required: false
# Zulip stream in which to send the message (optional)
# Ignored if `private` input is specified
# Defaults to `light_client` stream
stream:
channel:
description: 'Send message to channel (default is `light-client`). Ignored if `private`'
type: string
required: false
# Zulip topic in which to send the message (optional)
# Ignored if `private` input is specified
# Defaults to `chat`
topic:
description: 'Send message to topic (default is `chat`). Ignored if `private`'
type: string
required: false
schedule:
# Bench report on Tuesdays at 11pm EST/12pm EDT
- cron: '0 16 * * 4'
- cron: '0 16 * * 4'

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true

jobs:
benchmark:
name: Manual benchmark
runs-on: [self-hosted, bench, avx512]
env:
CARGO_NET_GIT_FETCH_WITH_CLI: "true"
name: Light client benchmark
runs-on: warp-custom-r7iz-metal-16xl
steps:
- uses: actions/checkout@v4
with:
repository: lurk-lab/ci-workflows
repository: argumentcomputer/ci-workflows
- uses: ./.github/actions/ci-env
- uses: actions/checkout@v4
- name: Setup CI
uses: ./.github/actions/setup
with:
pull_token: ${{ secrets.REPO_TOKEN }}
- uses: dtolnay/rust-toolchain@master
with:
toolchain: nightly-2024-05-31
- name: Install extra deps
run: |
sudo apt-get update && sudo apt-get install -y python3-pip
pip3 install jtbl
- name: Parse inputs
- name: Set env
run: |
# Default benchmark settings optimized for light clients, can be overwritten with `env` input
echo "RUSTFLAGS='-C target-cpu=native --cfg tokio_unstable -C opt-level=3'" | tee -a $GITHUB_ENV
echo "SHARD_SIZE=4194304" | tee -a $GITHUB_ENV
echo "SHARD_BATCH_SIZE=0" | tee -a $GITHUB_ENV
echo "RECONSTRUCT_COMMITMENTS=false" | tee -a $GITHUB_ENV
echo "SHARD_CHUNKING_MULTIPLIER=256" | tee -a $GITHUB_ENV
echo "SNARK=1" | tee -a $GITHUB_ENV

IFS=',' read -ra ENV_VARS <<< "${{ inputs.env }}"
for VAR in "${ENV_VARS[@]}"; do
VAR_NAME="${VAR%%=*}"
VAR_VALUE="${VAR#*=}"
echo "${VAR_NAME}=${VAR_VALUE}" | tee -a $GITHUB_ENV
done
- name: Parse Zulip inputs
run: |
if [[ "${{ inputs.zulip }}" == "true" ]]; then
if [[ ! -z "${{ inputs.private }}" ]]; then
Expand Down Expand Up @@ -95,8 +120,8 @@ jobs:
run: |
make bench-ci BENCH=${{ inputs.bench-name }} 2>&1 | tee out.txt

grep 'cycles=' out.txt >> cycles.txt
grep 'proving_time' out.txt >> timings.txt
grep 'cycles=' out.txt > cycles.txt
grep 'proving_time' out.txt > timings.txt

while IFS=$'\t' read -r f1 f2
do
Expand All @@ -115,11 +140,11 @@ jobs:
echo "report<<EOF" >> $GITHUB_OUTPUT
cat summary.md >> $GITHUB_OUTPUT
echo "EOF" >> $GITHUB_OUTPUT
working-directory: ${{ github.workspace }}/aptos/light-client
working-directory: ${{ github.workspace }}/${{ inputs.package }}/light-client
- name: Write bench on commit comment
uses: peter-evans/commit-comment@v3
with:
body-path: ${{ github.workspace }}/aptos/light-client/summary.md
body-path: ${{ github.workspace }}/${{ inputs.package }}/light-client/summary.md
- name: Send report to Zulip
if: inputs.zulip
uses: zulip/github-actions-zulip/send-message@v1
Expand Down
Loading
Loading