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

Merge develop into feat/continuations #359

Merged
merged 280 commits into from
Jul 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
280 commits
Select commit Hold shift + click to select a range
280cd81
Populate `prev_hashes` in rpc module
cpubot Nov 17, 2023
9d07ee7
Add an option for passing in a previous proof to the prover
cpubot Nov 17, 2023
dfbca30
Write prover state to disk
cpubot Nov 17, 2023
3751eba
Use `Config` type
cpubot Nov 17, 2023
d6d0ee7
Fixed two prog args using same short char
BGluth Nov 21, 2023
5d5e547
Bump to paladin 0.3.2
cpubot Nov 23, 2023
8c996c4
Overhaul leader CLI such that flags are grouped by subcommand
cpubot Nov 23, 2023
6e2f6be
Merge pull request #2 from 0xPolygonZero/zbrown/leader-cli-improvements
cpubot Nov 23, 2023
d161bf1
Enable specifying prover circuit sizes in .env and CLI (#3)
cpubot Nov 25, 2023
a358f55
DNM! Prints and fixes
BGluth Nov 13, 2023
e7a97e5
Bumped deps
BGluth Nov 15, 2023
b93b514
Lock bump
BGluth Nov 15, 2023
5c35b45
Lock bump
BGluth Nov 15, 2023
61c81b7
Lock bump
BGluth Nov 15, 2023
a4d143e
Lock bump
BGluth Nov 15, 2023
8be0637
Lock bump
BGluth Nov 17, 2023
f0feb1f
Update Cargo.lock
Nashtare Nov 17, 2023
7a28608
Lock bump
BGluth Nov 17, 2023
2d0fe9d
Two fixes
BGluth Nov 20, 2023
3e13635
Fixed a few bugs
BGluth Nov 20, 2023
3b1ce97
Revision fixes
BGluth Nov 20, 2023
b33b3f7
Bump lock
Nashtare Nov 24, 2023
32eb622
Fix genesis root
Nashtare Nov 24, 2023
984f2f0
Fix block_hashes
Nashtare Nov 25, 2023
f228e48
Remove comment
Nashtare Nov 25, 2023
e12ae99
Fix fetching of previous block_hashes
Nashtare Nov 27, 2023
e2adb6d
Fix
Nashtare Nov 27, 2023
b05a7a0
Bump lock
Nashtare Nov 27, 2023
5795e91
Now queries the genesis state root
BGluth Nov 28, 2023
d92c46f
Lock bump
BGluth Nov 28, 2023
77a06ef
Added prog arg to specific specific path for proof output
BGluth Nov 28, 2023
de99262
Fixed generated proofs using wrong path
BGluth Nov 28, 2023
5214c52
Added a simple script to generate a range of proofs
BGluth Nov 28, 2023
61ba3f0
Lock bump
BGluth Nov 28, 2023
9843c7b
Lock bump
Nashtare Nov 28, 2023
d96a363
Lock bump
Nashtare Nov 29, 2023
a3e2c68
Lock bump
BGluth Nov 29, 2023
8a2d872
Lock bump
BGluth Nov 29, 2023
2636707
Lock bump
BGluth Nov 29, 2023
19cd34e
Lock bump
BGluth Nov 30, 2023
6b19ab6
Release builds are now more optimized
BGluth Nov 30, 2023
128cf07
Bump plonky2
Nashtare Nov 30, 2023
0c8c0d8
Update default ranges
Nashtare Nov 30, 2023
486ca5e
Update ranges
Nashtare Nov 30, 2023
c4886ca
Now uses revs for all of our deps
BGluth Nov 30, 2023
9e8f06c
Cleaned up the `Cargo.toml` for `rpc`
BGluth Nov 30, 2023
f7931a3
Requested changes for PR #5
BGluth Nov 30, 2023
0eb6d48
Requested changes for PR #5 (2)
BGluth Nov 30, 2023
55f4bb3
Merge pull request #5 from 0xPolygonZero/proof_fixes
BGluth Nov 30, 2023
c437aa8
migrate to paladin 0.4.0
cpubot Dec 1, 2023
32dba2f
Update dockerfiles
cpubot Dec 1, 2023
c9a4d29
Dep bump
BGluth Dec 1, 2023
183b0bc
Update block_hashes fetching
Nashtare Dec 1, 2023
2345dc8
Fix log wiping
Nashtare Dec 1, 2023
863fceb
paladin 0.4.1
cpubot Dec 3, 2023
4fa21d8
Merge pull request #6 from 0xPolygonZero/speed_up_blockhashes
Nashtare Dec 4, 2023
17c9bb9
Add licenses (#9)
cpubot Dec 5, 2023
30f140e
Add support for providing checkpoint block
cpubot Dec 22, 2023
d063843
Fix `fetch_previous_block_hashes` going out of bounds (#12)
cpubot Dec 23, 2023
cf1dffd
Allow verifier to load only necessary data
Nashtare Jan 20, 2024
9356bcc
Clippy
Nashtare Jan 21, 2024
2f08b98
Add verifier_state_* to .gitignore
Nashtare Jan 21, 2024
e0d0f11
Create output directory if non-existent
Nashtare Jan 21, 2024
ab4daf6
Add checkpoint height to script
Nashtare Jan 21, 2024
40cab23
Merge pull request #14 from 0xPolygonZero/output_dir_err_msg
Nashtare Jan 21, 2024
03f1d80
Small typo fix
muursh Jan 22, 2024
4e1d363
Merge pull request #15 from 0xPolygonZero/script_checkpoint
Nashtare Jan 22, 2024
81a3b07
Merge pull request #13 from 0xPolygonZero/verifier_state
Nashtare Jan 23, 2024
5e998e0
Update dependencies
Nashtare Feb 21, 2024
e6da9fa
Pacify clippy
Nashtare Feb 21, 2024
d2cc50b
More clippy
Nashtare Feb 21, 2024
28356c0
Logic to parse withdrawals from the full node
BGluth Feb 21, 2024
c3cdba1
Merge pull request #20 from 0xPolygonZero/move_deps
Nashtare Feb 21, 2024
44d8060
Implement on-demand recursive circuit table loading (#21)
cpubot Feb 23, 2024
3a1a81d
Create CODEOWNERS
muursh Feb 27, 2024
edb0b71
Merge pull request #22 from 0xPolygonZero/code_owners
muursh Feb 27, 2024
cc9b043
Bump h2 from 0.3.21 to 0.3.24
dependabot[bot] Mar 1, 2024
0811297
Update deps
Nashtare Mar 1, 2024
7c42df1
Add testing mode for debugging
Nashtare Mar 1, 2024
6430137
Add block debugging script
Nashtare Mar 1, 2024
3fb04e2
Merge pull request #23 from 0xPolygonZero/dependabot/cargo/h2-0.3.24
muursh Mar 1, 2024
07d8d27
Clippy
Nashtare Mar 1, 2024
b1020c5
Revert changes on prove_blocks script
Nashtare Mar 1, 2024
8db68b9
Address comments
Nashtare Mar 1, 2024
f5120b2
Remove dummy agg proof layer for testing
Nashtare Mar 1, 2024
5d1534f
Merge pull request #24 from 0xPolygonZero/test-tooling
Nashtare Mar 2, 2024
6dca99d
Fix checkpoint block for debug script
Nashtare Mar 6, 2024
7ba1576
Fix arithmetic circuit typos
Nashtare Mar 6, 2024
33c4c20
Merge pull request #29 from 0xPolygonZero/fix_old_blocks_debug_script
Nashtare Mar 6, 2024
7a738a6
Rework CI
Nashtare Mar 6, 2024
710a96e
Bump mio from 0.8.9 to 0.8.11
dependabot[bot] Mar 6, 2024
3ce315a
Merge pull request #31 from 0xPolygonZero/dependabot/cargo/mio-0.8.11
muursh Mar 6, 2024
55ee6da
Update circuit location
Nashtare Mar 6, 2024
1deb141
Merge pull request #30 from 0xPolygonZero/ci
Nashtare Mar 6, 2024
6f10bd8
Merge pull request #32 from 0xPolygonZero/circuits_folder
Nashtare Mar 6, 2024
f88151c
Bump deps and fix compile failure
Nashtare Mar 11, 2024
a4f1db3
Merge pull request #35 from 0xPolygonZero/fix-nightly-bump-deps
Nashtare Mar 11, 2024
410a1cc
Fixed proof gen debug script not forcing `1` worker
BGluth Mar 12, 2024
0e3e5c9
Added a section about branches and testing
BGluth Mar 12, 2024
1579645
Increased stack size for testing
BGluth Mar 12, 2024
f5a4c7e
Merge pull request #37 from 0xPolygonZero/testing_note_in_readme
BGluth Mar 12, 2024
77259df
Merge pull request #36 from 0xPolygonZero/debug_proof_script_fix
BGluth Mar 12, 2024
aea9355
Fix dead link in README
julianbraha Mar 15, 2024
c2df0fc
Merge pull request #39 from julianbraha/develop
muursh Mar 16, 2024
2661d84
Update CODEOWNERS
muursh Mar 18, 2024
53bc5e2
Merge pull request #40 from 0xPolygonZero/update_codeowners
muursh Mar 19, 2024
3984a91
Fix new nightly clippy warning (#41)
cpubot Mar 19, 2024
3d9c98e
Ran `cargo update`
BGluth Mar 19, 2024
e91515d
Also ran `cargo upgrades` and updated deps further
BGluth Mar 19, 2024
d04f78a
fix axum api
muursh Mar 21, 2024
601a014
Merge pull request #42 from 0xPolygonZero/dep_update
muursh Mar 21, 2024
d8c9759
Updated `.gitignore` to ignore generated plonky2 state
BGluth Mar 26, 2024
3d23565
Merge pull request #43 from 0xPolygonZero/gitignore_prover_state
BGluth Mar 26, 2024
72df63e
Update prover default features (#46)
Nashtare Mar 28, 2024
32bb50e
feat: add circuit version consistency check
lastminutedev Apr 2, 2024
eec2cad
Implement Polygon Hermez type2 SMT (#34)
Nashtare Apr 3, 2024
f3c1062
fix: use circuits code digests instead of evm_arithmetization pkg ver…
lastminutedev Apr 3, 2024
522d02a
fix: fix clippy issue
lastminutedev Apr 3, 2024
76a3b0c
Reduce verbosity in logs
Nashtare Apr 8, 2024
cd0b29b
Bump h2 from 0.3.25 to 0.3.26
dependabot[bot] Apr 8, 2024
e272b81
Merge pull request #50 from 0xPolygonZero/dependabot/cargo/h2-0.3.26
Nashtare Apr 8, 2024
af81644
Merge pull request #49 from 0xPolygonZero/verbosity
Nashtare Apr 8, 2024
db34d51
Add `POSEIDON_GENERAL` (#129)
4l0n50 Apr 8, 2024
9252990
`smt_trie` library deps cleanup (#152)
Nashtare Apr 8, 2024
6c65436
fix: add pr comments fixes
lastminutedev Apr 9, 2024
c7cabda
Debug & proving scripts now use indentical logging
BGluth Apr 10, 2024
a8ec4ac
Merge pull request #52 from 0xPolygonZero/script_logging_improvement
BGluth Apr 10, 2024
a5a9912
Add flag to scripts
Nashtare Apr 11, 2024
0a8ab51
Merge pull request #53 from 0xPolygonZero/script-native
Nashtare Apr 11, 2024
ddd6f11
Allow verifier to load .env file
Nashtare Apr 12, 2024
d429120
Add logging info from verifier side
Nashtare Apr 12, 2024
ab6f1f4
Merge pull request #55 from 0xPolygonZero/load_env_verifier
Nashtare Apr 12, 2024
cea7424
Merge pull request #47 from 0xPolygonZero/add_circuit_version_check
muursh Apr 16, 2024
427648d
Updated docs for new parameter in `prove_blocks.sh`
BGluth Apr 17, 2024
bb37594
Apply suggestions from code review (Nashtare)
BGluth Apr 17, 2024
d1535f0
Merge pull request #59 from 0xPolygonZero/docs/missing_param_in_prove…
BGluth Apr 17, 2024
204a443
Now logs time to generate proofs
BGluth Apr 19, 2024
17535a9
Removed agg & block proof timing logic
BGluth Apr 19, 2024
ae915a2
Merge pull request #61 from 0xPolygonZero/proof_timing
BGluth Apr 19, 2024
f99f4a6
Fixed txn proof logs not rendering correctly
BGluth Apr 19, 2024
211983b
Cleaned up txn proof timing output even more
BGluth Apr 19, 2024
4dd7bc3
Merge pull request #63 from 0xPolygonZero/fix/txn_log_times_cleanup
BGluth Apr 19, 2024
e92f3b3
feat: adding block proof ci
praetoriansentry Apr 22, 2024
3a008ed
Update tools/simple_test.sh
praetoriansentry Apr 22, 2024
26427f9
Merge pull request #65 from 0xPolygonZero/jhilliard/block-proof-ci
praetoriansentry Apr 22, 2024
c95155c
Merge pull request #182 from 0xPolygonZero/develop
Nashtare Apr 22, 2024
1798fde
Cargo audit updates (#66)
muursh Apr 23, 2024
75e8dc1
Implement RAII span for transaction timing to avoid cloning input (#67)
cpubot Apr 23, 2024
5ac1350
feat: provide IR for debugging upon failure (#48)
vladimir-trifonov Apr 24, 2024
35fb73a
fix: fix circuit version consistency check (#58)
vladimir-trifonov Apr 24, 2024
e49ef4b
Reduce sizes and add distinction with test_only mode (#69)
Nashtare Apr 24, 2024
0544eda
SMT KV store + SMT delete (#211)
wborgeaud May 2, 2024
5f8e41a
SMT hash node (#212)
wborgeaud May 3, 2024
b5e9063
SMT pruning (#215)
wborgeaud May 6, 2024
738c6c3
ci: add cargo audit job (#236)
Nashtare May 22, 2024
e9367f6
fix: Revert interpreter stack display (#238)
Nashtare May 22, 2024
ecfe184
mark: 0xaatif/ethers2alloy
0xaatif May 23, 2024
eda823a
wip
0xaatif May 23, 2024
de66688
refactor: migrate prover
0xaatif May 23, 2024
9d34e13
wip: migrate rpc
0xaatif May 23, 2024
fabc7ee
refactor: migrate leader
0xaatif May 23, 2024
8fbb52c
chore: clean up deps
0xaatif May 23, 2024
e08b62a
feat: fill out compat
0xaatif May 23, 2024
b209c1b
try: used
0xaatif May 23, 2024
2f31116
Revert "try: used"
0xaatif May 23, 2024
da32ab0
fix: -Zlinker-features=-lld
0xaatif May 23, 2024
22a4ad9
Fix linkme lld issue in CI (#79)
cpubot May 23, 2024
ebcd0ed
Revert "fix: -Zlinker-features=-lld"
0xaatif May 23, 2024
9e91f16
refactor: common::Compat -> rpc::Compat
0xaatif May 23, 2024
7b60e6a
Fix clippy doc_lazy_continuation (#247)
Nashtare May 24, 2024
7003764
perf: Improve blake2 precompile (#239)
Nashtare May 24, 2024
0e678fa
tweak: trivial review changes
0xaatif May 26, 2024
3658940
Merge pull request #78 from 0xPolygonZero/0xaatif/ethers2alloy
0xaatif May 28, 2024
16baf44
fix: rustdoc and tests
0xaatif May 28, 2024
12792f3
Merge pull request #255 from 0xPolygonZero/0xaatif/docs
0xaatif May 28, 2024
ef5270c
fix: fix compilation with `test_only` feature (#84)
Nashtare May 28, 2024
f685308
chore: remove duplicate print in script and lighten circuit loading (…
Nashtare May 28, 2024
1557a94
Native trace processing support (#246)
frisitano May 29, 2024
93a3f1d
Added `Clone` to a few error types in `mpt_trie` (#259)
BGluth Jun 5, 2024
e8e6071
cleanup: remove outdated segment (#262)
Nashtare Jun 5, 2024
cd604d3
Remove `Monolithic` load stragegy `restriction` for `InMemory` leader…
Nashtare Jun 8, 2024
4ab700e
fix: add multiple witness version check (#271)
atanmarko Jun 10, 2024
428ac1b
fix: add G2 subgroup check for `ECPAIRING` (#268)
Nashtare Jun 10, 2024
3c75186
feat: block interval and parallel block proving (#90)
atanmarko Jun 10, 2024
e4c45ba
add partial trie builder (#258)
frisitano Jun 12, 2024
53acd5e
Release 0.4.0 (#276)
Nashtare Jun 12, 2024
2bc8077
Merge branch 'main' into develop
Nashtare Jun 12, 2024
46eb449
Merge pull request #277 from 0xPolygonZero/develop
Nashtare Jun 12, 2024
893bb13
fix: docker images (#108)
leovct Jun 12, 2024
ade0466
feat: add transaction hash to zero trace (#103)
atanmarko Jun 12, 2024
677dc0d
perf: add benchmarks for different components (#273)
Nashtare Jun 13, 2024
c2e2331
fix: discard intermediate proofs (#106)
atanmarko Jun 14, 2024
3a3a16e
feat: stdio parallel proving (#109)
atanmarko Jun 14, 2024
c5433a2
Fixes related to nightly and alloy (#101)
LindaGuiga Jun 17, 2024
aa12938
Introduce native tracer support (#81)
frisitano Jun 17, 2024
91c665a
chore: bump alloy to v0.1.1 (#111)
atanmarko Jun 17, 2024
de8f0b5
Merge remote-tracking branch 'zero_bin/develop' into zero_bin_merge
BGluth Jun 17, 2024
236e2a4
A few dep updates to get `zero-bin` to build
BGluth Jun 17, 2024
9b61f59
cargo `autoinherit` pass
BGluth Jun 17, 2024
1bafd90
A few more dep changes to move to `workspace` deps
BGluth Jun 17, 2024
0fb571d
Requested PR changes for #279
BGluth Jun 18, 2024
a9eff88
fix: formatting
atanmarko Jun 18, 2024
a38af27
fix: ci tests
atanmarko Jun 18, 2024
8de4e4f
fix: ci tests 2
atanmarko Jun 18, 2024
5c0c165
fix: .gitignore
atanmarko Jun 18, 2024
da9383c
Merge pull request #279 from 0xPolygonZero/zero_bin_merge
Nashtare Jun 18, 2024
01cbe6c
fix: Bring back Cargo.lock (#280)
Nashtare Jun 18, 2024
45b57d0
ci: add labeler flag for new `zero-bin` crate + update `CODEOWNERS` (…
Nashtare Jun 18, 2024
34e98cb
fix: only executables should choose a global allocator (#301)
0xaatif Jun 19, 2024
2719964
doc: fix typos (#298)
Nashtare Jun 19, 2024
baecefc
misc: fix logging filename (#305)
Nashtare Jun 20, 2024
6df9cf9
Merge remote-tracking branch 'smt_trie/feat/type2' into cleanup/smt_t…
BGluth Jun 24, 2024
c8e248f
refactor zero_bin leader cli (#317)
frisitano Jun 24, 2024
ca420ed
Removed non-existing dep public `__compat_primitive_types` (#321)
BGluth Jun 24, 2024
a1880ce
perf: Check for zero amount early in 'add_eth' (#322)
Nashtare Jun 25, 2024
201a67e
fix: interval (#324)
atanmarko Jun 25, 2024
e47a1f4
fix: optimize previous hashes retrieval (#316)
atanmarko Jun 25, 2024
b0e8f1a
Requested PR changes for #320
BGluth Jun 25, 2024
12da5fa
Requested PR changes for #320 (2)
BGluth Jun 25, 2024
96e25d3
Merge pull request #320 from 0xPolygonZero/cleanup/smt_trie_to_develop
Nashtare Jun 25, 2024
7a01826
feat: add jerigon test workflow (#303)
atanmarko Jun 26, 2024
4e80f84
fix: do not add selfdestruct journal entry for empty accounts (#328)
Nashtare Jun 26, 2024
a3bd131
ci: add PR check job (#332)
Nashtare Jun 26, 2024
28ae2c7
Constrain FP254 operations and SUBMOD to be kernel-only (#333)
LindaGuiga Jun 26, 2024
8154e15
fix: Move PR check file into proper folder
Nashtare Jun 26, 2024
a00acda
fix: add recipient to touched_addresses even when skipping empty tran…
Nashtare Jun 27, 2024
1cba914
fix: Fix PR checking file
Nashtare Jun 27, 2024
9fd656e
Fixed leader crashing when `.env` not present (#335)
BGluth Jun 27, 2024
6ed5a78
perf: reduce overhead in final iteration of memset (#339)
Nashtare Jun 27, 2024
65b849f
Make leader work no matter what the CWD is (#307)
BGluth Jun 27, 2024
7351da5
Cleanup/clippy and update pass (#341)
BGluth Jun 27, 2024
39f4d8f
fix: get PR check workflow to work properly
Nashtare Jun 28, 2024
d81d683
Add `Columns` and `DerefColumns` derive macros (#315)
gio256 Jun 29, 2024
439b8c2
migrate compat to micro crate (#308)
frisitano Jun 29, 2024
15c9cf6
fix: docker build for worker and leader (#329)
atanmarko Jul 1, 2024
7a4a9bb
parse embedded short nodes (#345)
frisitano Jul 2, 2024
a591b6f
Add `LogicColumnsView` struct for `LogicStark` (#347)
gio256 Jul 2, 2024
653b7e4
fix: properly log final result when due (#352)
Nashtare Jul 2, 2024
9bed611
Start merge
LindaGuiga Jul 2, 2024
54b360a
Fix merge and add batch sizes to the benchmark
LindaGuiga Jul 3, 2024
da7902b
Fix test_only in zero_bin
LindaGuiga Jul 3, 2024
1f8d853
Merge branch 'develop' into merge-continuations-develop
LindaGuiga Jul 3, 2024
a31692a
Apply comments and fix CI.
LindaGuiga Jul 4, 2024
043ab68
fix: Check valid range for s and add test (#363)
Nashtare Jul 5, 2024
341c322
feat: add caching for `get_block` (#346)
atanmarko Jul 8, 2024
d02e150
refactor!: docker builds (#357)
0xaatif Jul 8, 2024
972f115
Merge branch 'develop' into merge-continuations-develop
Nashtare Jul 8, 2024
3704b01
Fix process_type_0_txn_invalid_sig
LindaGuiga Jul 8, 2024
adb8488
Apply comments
LindaGuiga Jul 8, 2024
986ec3b
Apply last comment
LindaGuiga Jul 8, 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
4 changes: 4 additions & 0 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[build]
# https://github.com/rust-lang/rust/pull/124129
# https://github.com/dtolnay/linkme/pull/88
rustflags = ["-Z", "linker-features=-lld"]
28 changes: 28 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# this is loosely based on `docker init`'s rust template.

**/.DS_Store
**/.classpath
**/.dockerignore
# **/.env
**/.git
**/.gitignore
**/.project
**/.settings
**/.toolstarget
**/.vs
**/.vscode
**/*.*proj.user
**/*.dbmdl
**/*.jfm
**/charts
**/docker-compose*
**/compose*
**/Dockerfile*
**/node_modules
**/npm-debug.log
**/secrets.dev.yaml
**/values.dev.yaml
/bin
/target
LICENSE
README.md
10 changes: 10 additions & 0 deletions .env
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
AMQP_URI=amqp://localhost:5672
ARITHMETIC_CIRCUIT_SIZE=16..23
BYTE_PACKING_CIRCUIT_SIZE=9..21
CPU_CIRCUIT_SIZE=12..25
KECCAK_CIRCUIT_SIZE=14..20
KECCAK_SPONGE_CIRCUIT_SIZE=9..15
LOGIC_CIRCUIT_SIZE=12..18
MEMORY_CIRCUIT_SIZE=17..28
MEMORY_BEFORE_CIRCUIT_SIZE=7..23
MEMORY_AFTER_CIRCUIT_SIZE=7..27
4 changes: 2 additions & 2 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
* @muursh @Nashtare @cpubot
/evm_arithmetization/ @wborgeaud @muursh @Nashtare @cpubot
* @muursh @Nashtare
/evm_arithmetization/ @wborgeaud @muursh @Nashtare
5 changes: 5 additions & 0 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@
- changed-files:
- any-glob-to-any-file: proof_gen/**

# Add 'crate: zero_bin' label to any changes within 'zero_bin' folder.
'crate: zero_bin':
- changed-files:
- any-glob-to-any-file: zero_bin/**

# Add 'specs' label to any changes within 'docs' folder.
'specs':
- changed-files:
Expand Down
118 changes: 109 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Continuous Integration

on:
push:
branches: [main]
branches: [develop, main]
pull_request:
branches:
- "**"
Expand All @@ -15,7 +15,7 @@ concurrency:
cancel-in-progress: true

env:
CARGO_TERM_COLOR: always
CARGO_TERM_COLOR: always

jobs:
test_mpt_trie:
Expand All @@ -33,7 +33,7 @@ jobs:
- name: Set up rust cache
uses: Swatinem/rust-cache@v2
with:
cache-on-failure: true
cache-on-failure: true

- name: Test in mpt_trie subdirectory
run: cargo test --manifest-path mpt_trie/Cargo.toml
Expand All @@ -58,7 +58,7 @@ jobs:
- name: Set up rust cache
uses: Swatinem/rust-cache@v2
with:
cache-on-failure: true
cache-on-failure: true

- name: Test in trace_decoder subdirectory
run: cargo test --manifest-path trace_decoder/Cargo.toml
Expand All @@ -83,7 +83,7 @@ jobs:
- name: Set up rust cache
uses: Swatinem/rust-cache@v2
with:
cache-on-failure: true
cache-on-failure: true

- name: Test in proof_gen subdirectory
run: cargo test --manifest-path proof_gen/Cargo.toml
Expand All @@ -108,7 +108,7 @@ jobs:
- name: Set up rust cache
uses: Swatinem/rust-cache@v2
with:
cache-on-failure: true
cache-on-failure: true

- name: Test in evm_arithmetization subdirectory
run: cargo test --manifest-path evm_arithmetization/Cargo.toml
Expand All @@ -118,8 +118,105 @@ jobs:
CARGO_INCREMENTAL: 1
RUST_BACKTRACE: 1

test_zero_bin:
name: Test zero_bin
runs-on: ubuntu-latest
timeout-minutes: 30
if: "! contains(toJSON(github.event.commits.*.message), '[skip-ci]')"
steps:
- name: Checkout sources
uses: actions/checkout@v4

- name: Install nightly toolchain
uses: dtolnay/rust-toolchain@nightly

- name: Set up rust cache
uses: Swatinem/rust-cache@v2
with:
cache-on-failure: true

- name: Test in zero_bin subdirectory
run: |
cargo test --manifest-path zero_bin/common/Cargo.toml
cargo test --manifest-path zero_bin/leader/Cargo.toml
cargo test --manifest-path zero_bin/ops/Cargo.toml
cargo test --manifest-path zero_bin/prover/Cargo.toml
cargo test --manifest-path zero_bin/rpc/Cargo.toml
cargo test --manifest-path zero_bin/verifier/Cargo.toml
cargo test --manifest-path zero_bin/worker/Cargo.toml

env:
RUSTFLAGS: -Copt-level=3 -Cdebug-assertions -Coverflow-checks=y -Cdebuginfo=0
RUST_LOG: 1
CARGO_INCREMENTAL: 1
RUST_BACKTRACE: 1

test_zk_evm_proc_macro:
name: Test zk_evm_proc_macro
runs-on: ubuntu-latest
timeout-minutes: 30
if: "! contains(toJSON(github.event.commits.*.message), '[skip-ci]')"
steps:
- name: Checkout sources
uses: actions/checkout@v4

- name: Install nightly toolchain
uses: dtolnay/rust-toolchain@nightly

- name: Set up rust cache
uses: Swatinem/rust-cache@v2
with:
cache-on-failure: true

- name: Test in proc_macro subdirectory
run: cargo test --manifest-path proc_macro/Cargo.toml
env:
RUSTFLAGS: -Copt-level=3 -Cdebug-assertions -Coverflow-checks=y -Cdebuginfo=0
RUST_LOG: 1
CARGO_INCREMENTAL: 1
RUST_BACKTRACE: 1

simple_proof_regular:
name: Execute bash script to generate and verify a proof for a small block.
runs-on: zero-ci

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Run the script
run: |
pushd zero_bin/tools
./prove_stdio.sh artifacts/witness_b19240705.json

simple_proof_witness_only:
name: Execute bash script to generate the proof witness for a small block.
runs-on: zero-ci

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Run the script
run: |
pushd zero_bin/tools
./prove_stdio.sh artifacts/witness_b19240705.json test_only

multi_blocks_proof_regular:
name: Execute bash script to generate and verify a proof for multiple blocks using parallel proving.
runs-on: zero-ci

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Run the script
run: |
pushd zero_bin/tools
./prove_stdio.sh artifacts/witness_b2_b7.json

lints:
name: Formatting and Clippy
name: Rustdoc, Formatting and Clippy
runs-on: ubuntu-latest
timeout-minutes: 10
if: "! contains(toJSON(github.event.commits.*.message), '[skip-ci]')"
Expand All @@ -130,15 +227,18 @@ jobs:
- name: Install nightly toolchain
uses: dtolnay/rust-toolchain@nightly
with:
components: rustfmt, clippy
components: rustfmt, clippy

- name: Set up rust cache
uses: Swatinem/rust-cache@v2
with:
cache-on-failure: true
cache-on-failure: true

- name: Run cargo fmt
run: cargo fmt --all --check

- name: Run cargo clippy
run: cargo clippy --all-features --all-targets -- -D warnings -A incomplete-features

- name: Rustdoc
run: cargo doc --all
26 changes: 26 additions & 0 deletions .github/workflows/docker_build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Docker Build & Run

on:
push:
branches: [develop, main]
pull_request:
branches:
- "**"
workflow_dispatch:
branches:
- "**"

jobs:
docker:
name: Regression test docker images
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- run: |
docker build --progress=plain --build-arg=PROFILE=dev --tag scratch .
docker run --rm --init --entrypoint leader scratch --help
docker run --rm --init --entrypoint worker scratch --help
docker run --rm --init --entrypoint rpc scratch --help
docker run --rm --init --entrypoint verifier scratch --help
55 changes: 55 additions & 0 deletions .github/workflows/docker_build_push.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: Docker Build & Push

on:
push:
branches: [develop, main]
release:
types: [created]

env:
REGISTRY: ghcr.io

jobs:
docker:
name: Build and push leader and worker docker images to GitHub Container Registry
runs-on: ubuntu-latest
permissions:
packages: write
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Set up QEMU
uses: docker/setup-qemu-action@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Login to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Extract metadata (tags, labels)
id: meta
uses: docker/metadata-action@v5
with:
images: |
name=${{ env.REGISTRY }}/${{ github.repository }}
tags: |
type=ref,event=branch
type=ref,event=pr
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}

- name: Push to GitHub Container Registry
uses: docker/build-push-action@v3
with:
push: true
# platforms: linux/amd64,linux/arm64
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max
Loading
Loading