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

Reth update #2

Closed
wants to merge 382 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
382 commits
Select commit Hold shift + click to select a range
00f97f3
fix(staged-sync): correctly calculate total entries in bodies checkpo…
rkrasiuk Mar 6, 2024
f5be925
chore: use cache to determine hardfork (#6989)
yjhmelody Mar 6, 2024
9226488
Node tests crate (#6972)
loocapro Mar 6, 2024
23a72d3
remove clique related tests (#6996)
int88 Mar 6, 2024
d1dc906
chore: use `IntoIterator` more (#6998)
DaniPopes Mar 6, 2024
e42fb32
ci/test: speed up tests (#6987)
DaniPopes Mar 6, 2024
422b8f8
Prioritisation network manager + transactions manager + eth request h…
emhane Mar 6, 2024
c7826cb
fix: immediately refill slots (#6997)
mattsse Mar 6, 2024
a1df972
chore: remove most ethers mentions and code (#6999)
DaniPopes Mar 6, 2024
ed08649
Shorten error message on debug assertion (#6988)
emhane Mar 6, 2024
d681dbf
fix: setting GH_TOKEN for hive tests (#7009)
rswanson Mar 6, 2024
dd6742e
test(stages): fix deadlock with multiple static file writers (#7011)
shekhirin Mar 6, 2024
6f8d1a8
Rename TxType variants to UpperCamelCase (#7012)
AbnerZheng Mar 6, 2024
64854c1
bugfix: hive build-args (#7013)
rswanson Mar 6, 2024
bd01fd8
Add new mempool panels + existing mempool panels to new dashboard (#7…
emhane Mar 6, 2024
914b165
docs: update static file documentation (#6878)
joshieDo Mar 6, 2024
b66f54d
chore(deps): bump ethers to 2.0.14, enr to 0.10, unpin discv5 (#6634)
emhane Mar 6, 2024
efa6bbc
chore(github): skip some heavy jobs when PR is not related (#6667)
jsvisa Mar 6, 2024
aec59b7
release: v0.2.0-beta.1 (#7021)
shekhirin Mar 6, 2024
968354c
Update panel descriptions (#7020)
emhane Mar 6, 2024
3308ddb
chore: condition export of generate_blob_sidecar on its cfg (#7023)
Rjected Mar 6, 2024
9f21d1c
feat(storage): improve current process detection for MDBX HSR (#6917)
shekhirin Mar 6, 2024
6557da1
test(ef-tests, storage): do not `sync_all` static files in state test…
shekhirin Mar 7, 2024
4017b3a
docs: more node-builder docs (#7034)
mattsse Mar 7, 2024
1cd05b0
decrease default tracing permits (#7010)
AbnerZheng Mar 7, 2024
91c7dd0
Revert "chore(github): skip some heavy jobs when PR is not related (#…
shekhirin Mar 7, 2024
eb6a959
chore: mem take topics when converting logs (#7048)
mattsse Mar 8, 2024
5d83de2
fix: revert filter_logs type (#7046)
greged93 Mar 8, 2024
43bb4cc
chore: remove repetitive words (#7041)
onbjerg Mar 8, 2024
ed0dce8
chore: make clippy happy (#7045)
jsvisa Mar 8, 2024
820b122
chore: bump Grafana version in docker compose (#7032)
shekhirin Mar 8, 2024
9569692
feat(trie): parallel storage roots (#6903)
rkrasiuk Mar 8, 2024
7fa3504
perf: replace BytesMut with alloy_rlp::encode (#7047)
estensen Mar 8, 2024
3c028e5
chore: fix typos (#7049)
DaniPopes Mar 8, 2024
e213049
bug template use multi-line input for version (#7055)
wakamex Mar 8, 2024
bf948d1
chore: be less strict when slashing trusted peers (#7052)
mattsse Mar 8, 2024
486945f
feat(rpc): add support for `muxTracer` (#7053)
ArtificialPB Mar 8, 2024
78f9dbd
chore(txpool): update size metrics on every insert & removal of trans…
rkrasiuk Mar 8, 2024
48b763f
chore: bump max concurrent outbound dials (#7057)
mattsse Mar 8, 2024
d4ff65b
bump: revm v7.1.0 (#7064)
rakita Mar 9, 2024
9cae775
perf: use special geth tracer config setups (#7062)
mattsse Mar 9, 2024
51761b6
Remove tx pool row from reth dashboard (#7029)
emhane Mar 9, 2024
6dbc5e0
fix: remove redundant checking for if peer is banned (#7069)
int88 Mar 9, 2024
a8345e3
grafana/overview: add RPC QPS dashboard (#7025)
jsvisa Mar 9, 2024
4aecad8
chore: inspector stack from evm-inspectors (#7076)
DaniPopes Mar 9, 2024
cc3b20e
chore(deps): weekly `cargo update` (#7080)
github-actions[bot] Mar 10, 2024
84e9704
fix(rpc): cache transaction hash when filtering over receipt logs (#7…
joshieDo Mar 10, 2024
4943619
fix(rpc): less clones in logs filter (#7060)
shekhirin Mar 10, 2024
8e5c943
chore: mount all datadirs in docker-compose.yml (#7088)
shekhirin Mar 10, 2024
a828d12
fix(bin, node-core): commit genesis header into static files after db…
shekhirin Mar 11, 2024
76c1d05
feat(storage): bump mdbx to 0.12.9 (#7090)
shekhirin Mar 11, 2024
72d6e95
fix(storage): backport read-only FS database support (#7091)
shekhirin Mar 11, 2024
81291ff
chore: more Vec over BytesMut (#7084)
mattsse Mar 11, 2024
f217482
fix: add timeouts to the hive CI (#7092)
greged93 Mar 11, 2024
72bea5f
feat(rpc): Add 4844 checks to `ethCallBundle` (#7078)
clabby Mar 11, 2024
66c9403
primitives/chain: dev chain support cancun upgrade (#7033)
jsvisa Mar 11, 2024
5ce8034
reth/db: make code more readable (#7094)
jsvisa Mar 11, 2024
63dd5d4
docs: add note about hashing (#7073)
mattsse Mar 11, 2024
1156be2
cmd/debug: use inline cfg to reduce optimism/ethereum code duplicate …
jsvisa Mar 11, 2024
82b6504
chore: use safe math when calculating missing senders (#7099)
mattsse Mar 11, 2024
ef1a196
fix: ban trusted peer for a short period (#7071)
int88 Mar 11, 2024
3c2d3a0
Feat: add signers (#6826)
allnil Mar 11, 2024
e4f34e7
feat(book): update CLI section (#7102)
shekhirin Mar 11, 2024
ff56ce4
Fix misleading comment (#7105)
emhane Mar 11, 2024
9707cb2
chore: remove test structs that are never constructed (#7107)
Rjected Mar 12, 2024
024bb26
rm nippyjar from reth-interfaces (#7081)
justcode740 Mar 12, 2024
7a83143
fix: `eth_getRawReceipts` (#7101)
greged93 Mar 12, 2024
913f5c3
feat(grafana): trie charts (#7112)
rkrasiuk Mar 12, 2024
22d585d
fix(chain_spec): Set correct paris block and chain difficulty (#7111)
Deniallugo Mar 12, 2024
9971155
fix: use concat_kdf crate instead of hand rolled NIST SP 800-56A KDF …
Rjected Mar 12, 2024
cab2301
fix: use INVALID_PAYLOAD_ATTRIBUTES code for attribute validation err…
Rjected Mar 12, 2024
074747a
fix: refactor ecies message parsing to check bounds (#7108)
Rjected Mar 12, 2024
f75bebd
fix: use checked math for read_body (#7117)
Rjected Mar 12, 2024
eb68283
fix: check that data is large enough to fit header and mac (#7118)
Rjected Mar 12, 2024
fb30619
fix(op-reth): non-deposit txs have depositReceiptVersion=1 (#6784)
0xZerohero Mar 12, 2024
027d50f
feat(ci): tag docker image as latest only for beta (#7103)
shekhirin Mar 12, 2024
c949308
Adds metrics for All Transactions (#7067)
codenikel Mar 12, 2024
c15f2d5
chore(primitives): remove static file stage (#7116)
shekhirin Mar 12, 2024
10aeeb0
release: v0.2.0-beta.2 (#7122)
rkrasiuk Mar 12, 2024
8b0292d
chore(make): run doctest in `make test` (#7125)
jsvisa Mar 13, 2024
b05f8a9
test: headers first stage (#7127)
rkrasiuk Mar 13, 2024
bf18bf5
docs(txpool): fix docs for cancun activation check (#7128)
rkrasiuk Mar 13, 2024
884fd71
chore(stages): debug logs with progress in sender recovery (#7113)
shekhirin Mar 13, 2024
610731c
feat(db): record client version history (#7119)
rkrasiuk Mar 13, 2024
8fbab73
add more helper functions to PooledTransactionElement (#7126)
int88 Mar 13, 2024
c9c269b
fix: receipt for non EIP-4844 transactions (#7129)
greged93 Mar 13, 2024
5d6ac4c
Make ETL file size configurable (#6927)
SozinM Mar 13, 2024
28f3a2e
feat: add `EtlConfig` as well as setting the directory to datadir (#7…
joshieDo Mar 13, 2024
455b2af
fix: apply block overrides before create env (#7135)
mattsse Mar 13, 2024
d2c8b77
perf: replace BytesMut with alloy_rlp::encode (#7087)
estensen Mar 14, 2024
b032120
fix: estimate gas (#7133)
greged93 Mar 14, 2024
520d635
feat(primitives): OP Sepolia `ChainSpec` (#6812)
clabby Mar 14, 2024
6e059ed
chore: add cancun mainnet block (#7139)
mattsse Mar 14, 2024
baa45c6
fix: enforce soft response limit accurately (#7142)
mattsse Mar 14, 2024
41c6f24
fix: payload builder london boundary block gaslimit and basefee (#7136)
Rjected Mar 14, 2024
3d86c4a
chore: add safety check on `StaticFileProviderRW::increment_block` (#…
joshieDo Mar 14, 2024
5584468
dep: lock enr (#7148)
rkrasiuk Mar 15, 2024
9312424
Always accept incoming connections from trusted peers (#7140)
AbnerZheng Mar 15, 2024
fdbe63b
chore: rm duplicated code (#7147)
mattsse Mar 15, 2024
27194de
chore: move tower+hyper to workspace (#7150)
mattsse Mar 15, 2024
b66b8e9
chore: remove unused deps (#7151)
mattsse Mar 15, 2024
189de79
chore: add ipv6 related cases in NodeRecord UT (#7152)
int88 Mar 15, 2024
52d4983
fix(static-file): pass producer as `Arc<Mutex<_>>` to ensure only one…
shekhirin Mar 15, 2024
9495459
Check that `excess_blob_gas` is a multiple of `data_gas_per_blob` (#7…
jtraglia Mar 15, 2024
4e1c56f
Track PendingIn state separately (#7163)
AbnerZheng Mar 15, 2024
4c3ab9a
feat(node-core, stages): stage preparation notification (#7156)
shekhirin Mar 15, 2024
26f290e
fix: decrease connection info based on current state (#7165)
mattsse Mar 15, 2024
96149f0
docs(node-core): add document of build_blockchain_tree (#7120)
jsvisa Mar 15, 2024
bddd1c6
chore: bump revm inspector, bump msrv (#7167)
mattsse Mar 15, 2024
7012e04
fix: use unit workflow for README CI badge (#7168)
Rjected Mar 15, 2024
6f0b129
release: v0.2.0-beta.3 (#7166)
shekhirin Mar 15, 2024
e7c23ed
bin/reth/db: use macro to dry (#7159)
jsvisa Mar 15, 2024
82ec589
fix: panic conditions for concat kdf in ecies (#7171)
Rjected Mar 16, 2024
5e9e21d
chore: bump rust-version in Cargo.toml to 1.76 (#7172)
Rjected Mar 16, 2024
3b4726a
fix: use tempdir when testing static files (#6962)
AbnerZheng Mar 16, 2024
11dc546
feat: support trusted peer ids without address (#7155)
mattsse Mar 16, 2024
4e49aa9
Comment pool import error is not nonce gap (#7145)
emhane Mar 16, 2024
e88b16e
chore(deps): weekly `cargo update` (#7180)
github-actions[bot] Mar 17, 2024
5000c32
chore(hardfork): add hardfork upgrade url (#7184)
jsvisa Mar 17, 2024
3a10c31
chore(grafana): fetch each query with instance as filter (#7173)
jsvisa Mar 17, 2024
a5e662d
chore(node-builder): display the hardfork info in new line (#7185)
jsvisa Mar 18, 2024
7c03881
bugfix: setup discovery addr appropriately (#7182)
int88 Mar 18, 2024
7b3e418
feat(net/manager): apply trust-nodes-only for incoming nodes (#7177)
jsvisa Mar 18, 2024
56d688b
Small refactoring in transaction pool (#7179)
tcoratger Mar 18, 2024
273f3c7
chore: add AllTransactionsEvents::new (#7192)
mattsse Mar 18, 2024
9962c39
fix: propagate try_make_sync_target_canonical error (#7164)
Rjected Mar 18, 2024
cee35a0
docs: fix metric doc (#7198)
mattsse Mar 18, 2024
de9fb89
chore: remove txpool optimism feature (#7199)
mattsse Mar 18, 2024
038a633
fix: decrease pending out on already connected (#7197)
mattsse Mar 18, 2024
abce09c
Return invalid header on error in consensus validation methods (#7175)
AbnerZheng Mar 18, 2024
80c5fcb
Enable clippy's empty_line_after_outer_attr linter (#7200)
jtraglia Mar 18, 2024
804c54a
feat: autoscale session event capacity (#7149)
mattsse Mar 18, 2024
89b188e
fix bug: synchronized local node record with discv4 (#7181)
AbnerZheng Mar 18, 2024
3861bc0
Enable clippy's derive_partial_eq_without_eq linter (#7203)
jtraglia Mar 18, 2024
f7d3cc5
Enable clippy's trait_duplication_in_bounds linter (#7201)
jtraglia Mar 18, 2024
5b94dbb
perf: replace BytesMut with alloy_rlp::encode (#7170)
estensen Mar 18, 2024
b7ef60b
Enable clippy's uninlined_format_args linter (#7204)
jtraglia Mar 18, 2024
d91274e
Enable clippy's redundant_clone linter (#7202)
jtraglia Mar 19, 2024
6ffd6ef
Small refactor (#7208)
tcoratger Mar 19, 2024
d4e9695
perf(trie): calculate state root from `BundleState` (#7186)
rkrasiuk Mar 19, 2024
28157f0
feat: Display the reth version in the log (#7207)
winksaville Mar 19, 2024
332e412
docs(primitives): transaction method comments (#7217)
shekhirin Mar 19, 2024
170306d
support IPv6 for NetworkArgs.addr and DiscoveryArgs.addr (#7210)
int88 Mar 19, 2024
c108a24
Enable clippy's equatable_if_let linter (#7221)
jtraglia Mar 19, 2024
78d15d4
`reth-primitives`: Fix warnings when default features are off. (#7213)
citizen-stig Mar 19, 2024
4a347b5
Add AllTransactionsMetrics graph in txpool dashboard (#7141)
AbnerZheng Mar 19, 2024
a8c692c
feat: add metrics for pending connections (#7225)
mattsse Mar 19, 2024
1ad50d1
fix: enforce timeouts for pending sessions (#7219)
mattsse Mar 19, 2024
553a271
Decode with EMPTY_STRING_CODE and buf.advance() (#7227)
jtraglia Mar 19, 2024
11bedc1
Enable clippy's or_fun_call linter (#7222)
jtraglia Mar 19, 2024
aed833b
fix: tell jemalloc to use 64-KiB pages when cross building aarch64 (#…
jtraglia Mar 19, 2024
8cddc40
Enable clippy's branches_sharing_code linter (#7223)
jtraglia Mar 19, 2024
1bf5d6a
feat(node-core): omit stage progress from logs if empty (#7218)
shekhirin Mar 19, 2024
709d8a1
Enable clippy's useless_let_if_seq linter (#7220)
jtraglia Mar 19, 2024
d86d4d2
fix: enforce max inbound == 0 (#7229)
mattsse Mar 19, 2024
ce89a2b
feat: add BeaconConsensusEvent for live sync download requests (#7230)
Rjected Mar 19, 2024
9d039a2
chore(deps): use tikv-jemallocator instead of jemallocator (#7232)
DaniPopes Mar 19, 2024
6801869
feat(storage): bump mdbx to 0.12.10 (#7236)
shekhirin Mar 19, 2024
c1f051a
dev: `with_capacity` for HashMap (#7246)
greged93 Mar 20, 2024
0a803c4
Integrate Config into admin_nodeInfo response (#7206)
tcoratger Mar 20, 2024
6b28fa4
fix: skip block tracing if empty (#7251)
mattsse Mar 20, 2024
b2ab33e
chore: replace op cfg with default match arm (#7253)
mattsse Mar 20, 2024
672bdcc
chore: make blockchain tree error results more specific (#7237)
Rjected Mar 20, 2024
a4e32c8
chore: remove unused op dep (#7252)
mattsse Mar 20, 2024
1c6ea1e
feat: support any node format in admin API (#7247)
mattsse Mar 20, 2024
713da1b
Integrate new pending session metrics into grafana (#7231)
AbnerZheng Mar 20, 2024
28b9834
chore: move op types; less op cfgs (#7255)
mattsse Mar 20, 2024
52668c6
fix: do not rlp encode extradata (#7256)
jtraglia Mar 20, 2024
c868c52
Enable clippy's large_stack_frames linter (#7258)
jtraglia Mar 20, 2024
ffbe8be
chore(bump): revm v7.2, c-kzg v1.0 (#7240)
rakita Mar 21, 2024
1a42b09
fix(cmd-p2p): split off `create_db` from `init_db` (#7265)
joshieDo Mar 21, 2024
0da7b7c
chore: fix typos (#7264)
shekhirin Mar 21, 2024
31b9458
chore: move nodetypes to node-api (#7268)
mattsse Mar 21, 2024
7753a17
docs: clarify how SubPool is determined from TxState (#7269)
mattsse Mar 21, 2024
aac0b00
fix: configure global rayon pool to `available_parallelism() - 2` (#7…
joshieDo Mar 21, 2024
56b63ad
perf(tree): integrate parallel state root (#7161)
rkrasiuk Mar 21, 2024
f4b5000
Indicate that Syncing FCUs are not affecting sync progress during pip…
AbnerZheng Mar 21, 2024
6eb7397
chore: remove trusted setups (#7274)
JackG-eth Mar 21, 2024
ea5535c
fix: DisconnectReason::decode should return error on zero length list…
Mar 21, 2024
30d79a9
Add `try_from` method for `TxType` with `U64` (#7291)
tcoratger Mar 22, 2024
f96d790
fix: validate empty item in p2p start_send (#7294)
allnil Mar 22, 2024
a3d2e90
Safe rlpx capability id masking (#7297)
AbnerZheng Mar 22, 2024
88186a2
chore: make Session established log debug (#7301)
Rjected Mar 22, 2024
1dc0aab
feat: Extend fork activation blocks data with Arbitrum data (#7305)
mattsse Mar 23, 2024
71474b8
chore: make types pub (#7308)
mattsse Mar 23, 2024
dc4e2e2
chore(deps): weekly `cargo update` (#7313)
github-actions[bot] Mar 24, 2024
7efd5b0
chore: move paste to workspace deps (#7306)
mattsse Mar 24, 2024
7e6d61a
chore(stages/metrics): use Counter instead of Gauge for mgas_processe…
jsvisa Mar 24, 2024
a312026
chore: apply some style suggestions (#7307)
mattsse Mar 24, 2024
10854e5
feat(node-core): omit stage progress from Status logs if empty (#7318)
shekhirin Mar 25, 2024
b58cca7
fix: race condition concurrent in and out from same peer (#7317)
mattsse Mar 25, 2024
61801b9
fix: Returns an error if multiplex message is empty (#7314)
kamuik16 Mar 25, 2024
eed60d9
feat: Implement ots_getTransactionError endpoints (#7316)
AbnerZheng Mar 25, 2024
28935da
fix(node-core): log stage progress only after the first stage run (#7…
shekhirin Mar 25, 2024
c6abf0c
chore: misc static tx range (#7326)
mattsse Mar 25, 2024
c9e3261
chore: rm match arm for op deposit (#7324)
mattsse Mar 25, 2024
a6d4f6b
feat: Implement ots_getBlockTransactions (#7315)
AbnerZheng Mar 25, 2024
172fd40
perf: rm header lookup in feeHistory (#7329)
mattsse Mar 25, 2024
074af7b
Check RequestPair payload length during decoding (#7292)
AbnerZheng Mar 25, 2024
d2fb8f2
fix: some minor nits in txpool code (#7330)
jtraglia Mar 25, 2024
d611f11
`reth-primitives`: Allow feature gating zstd for non default feature …
citizen-stig Mar 25, 2024
903fc2d
Implement `ots_getInternalOperations` (#7332)
AbnerZheng Mar 26, 2024
e97c973
fix: prevent duplicate events for single blocks (#7335)
mattsse Mar 26, 2024
d9ce894
feat: enable nursery lints without findings (#7334)
jtraglia Mar 26, 2024
5968e9f
feat(reth_db/mdbx): fix API regression in `DatabaseArguments` (#7323)
lmittmann Mar 26, 2024
1939939
fix(provider): consider static files in last block num/hash lookups (…
rkrasiuk Mar 26, 2024
96e39d2
feat: add `ETL` to Hashing Stages (#7030)
joshieDo Mar 26, 2024
e3d8ceb
feat: add `ETL` to `HistoryStages` (#7249)
joshieDo Mar 26, 2024
8e1d781
fix: spawn batch ranges from a tokio thread instead on `SenderRecover…
joshieDo Mar 26, 2024
bdca722
fix: return error on type 0 enveloped decoding (#7339)
Rjected Mar 26, 2024
57fc4e0
fix: ignore BlockHashNotFoundInChain error for unexpected canonical e…
Rjected Mar 26, 2024
c04dbe6
release: v0.2.0-beta.4 (#7341)
joshieDo Mar 26, 2024
3f34db3
fix: don't write blob to disk if it already exists (#7338)
jtraglia Mar 26, 2024
4d798c7
feature: Add timeouts for handshake functions (#7295)
JackG-eth Mar 26, 2024
4bb2de6
Merge commit '025fa5f03' into lumio-update
i1i1 Mar 27, 2024
cac6296
Merge commit '6b5b6f7a4' into lumio-update
i1i1 Mar 27, 2024
963f12d
Merge commit '9468527aa' into lumio-update
i1i1 Mar 27, 2024
053f4df
Merge commit '7d36206df' into lumio-update
i1i1 Mar 27, 2024
f79b10b
Merge commit 'c5955f130' into lumio-update
i1i1 Mar 27, 2024
3fe57cd
`cargo fmt`
i1i1 Mar 27, 2024
63d4b15
Merge commit '2df0d91f8' into lumio-update
i1i1 Mar 27, 2024
8095b60
Merge commit 'd32a8efb1' into lumio-update
i1i1 Mar 27, 2024
863711e
Merge commit 'a79f1951c' into lumio-update
i1i1 Mar 27, 2024
83dde9a
Merge commit 'c8df17206' into lumio-update
i1i1 Mar 27, 2024
78a7a86
Merge commit 'aec59b730' into lumio-update
i1i1 Mar 27, 2024
46dc65a
Merge tag 'v0.2.0-beta.1' into lumio-update
i1i1 Mar 27, 2024
e8b6af2
Merge commit 'eb6828350' into lumio-update
i1i1 Mar 27, 2024
8dde141
Merge commit 'fb3061919' into lumio-update
i1i1 Mar 27, 2024
276c8bf
Merge tag 'v0.2.0-beta.2' into lumio-update
i1i1 Mar 27, 2024
c9986ff
Merge commit 'd2c8b77e6' into lumio-update
i1i1 Mar 27, 2024
eb55011
Merge commit 'b032120ff' into lumio-update
i1i1 Mar 27, 2024
574451f
Merge commit '9312424db' into lumio-update
i1i1 Mar 27, 2024
195947d
Merge commit 'fdbe63b13' into lumio-update
i1i1 Mar 27, 2024
4287e1b
Merge commit '56d688b93' into lumio-update
i1i1 Mar 27, 2024
7024bdc
Merge commit 'b7ef60b89' into lumio-update
i1i1 Mar 27, 2024
998041f
Merge commit 'd91274eaa' into lumio-update
i1i1 Mar 27, 2024
a3e38e1
Merge commit '6ffd6ef8f' into lumio-update
i1i1 Mar 27, 2024
7d7a9eb
Merge commit 'd4e969555' into lumio-update
i1i1 Mar 27, 2024
989b0e3
Merge commit '1ad50d148' into lumio-update
i1i1 Mar 27, 2024
353c63f
Merge commit '6801869c0' into lumio-update
i1i1 Mar 27, 2024
9424e90
Merge commit '28b983403' into lumio-update
i1i1 Mar 27, 2024
dc0788c
Merge commit '7753a17a3' into lumio-update
i1i1 Mar 27, 2024
5e07287
Merge commit '71474b87b' into lumio-update
i1i1 Mar 27, 2024
3369bbd
Merge commit 'c04dbe6e9' into lumio-update
i1i1 Mar 27, 2024
0cdb9a5
Merge commit '4d798c7b6' into lumio-update
i1i1 Mar 27, 2024
35af380
`cargo fmt`
i1i1 Mar 27, 2024
262ae7f
Remove unused dependencies
i1i1 Mar 27, 2024
21b309e
`cargo clippy --all --all-targets --all-features --fix`
i1i1 Mar 27, 2024
dd3677f
Fix clippy
i1i1 Mar 27, 2024
f2522f8
Fix tests
i1i1 Mar 29, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion .config/nextest.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ slow-timeout = { period = "30s", terminate-after = 4 }

[[profile.default.overrides]]
filter = "test(general_state_tests)"
slow-timeout = { period = "1m", terminate-after = 4 }
slow-timeout = { period = "1m", terminate-after = 10 }
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/bug.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ body:
- Windows (ARM)
validations:
required: true
- type: input
- type: textarea
id: client-version
attributes:
label: What version/commit are you on?
Expand Down
15 changes: 0 additions & 15 deletions .github/SANITY_UNUSED_DEPS_ISSUE_TEMPLATE.md

This file was deleted.

6 changes: 6 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
230 changes: 230 additions & 0 deletions .github/workflows/assertoor.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,230 @@
name: Assertoor Tests

on:
workflow_dispatch:
schedule:
- cron: '0 0 * * *'

jobs:
get_tests:
name: "Run assertoor tests on reth pairs"
runs-on: ubuntu-latest
outputs:
test_result: ${{ steps.test_result.outputs.test_result }}
test_status: ${{ steps.test_result.outputs.test_status }}
failed_test_status: ${{ steps.test_result.outputs.failed_test_status }}
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Setup Kurtosis
shell: bash
run: |
echo "deb [trusted=yes] https://apt.fury.io/kurtosis-tech/ /" | sudo tee /etc/apt/sources.list.d/kurtosis.list
sudo apt update
sudo apt install kurtosis-cli
kurtosis analytics disable

- name: Run Kurtosis
shell: bash
id: services
run: |
export github_sha=${{ github.sha }}
export github_repository=${{ github.repository }}

cat etc/assertoor/assertoor-template.yaml | envsubst > etc/assertoor/assertoor.yaml

kurtosis run github.com/kurtosis-tech/ethereum-package --enclave assertoor-${{ github.run_id }} --args-file etc/assertoor/assertoor.yaml

enclave_dump=$(kurtosis enclave inspect assertoor-${{ github.run_id }})

assertoor_url=$(echo "$enclave_dump" | grep assertoor | grep http | sed 's/.*\(http:\/\/[0-9.:]\+\).*/\1/')
echo "assertoor_url: ${assertoor_url}"
echo "assertoor_url=${assertoor_url}" >> $GITHUB_OUTPUT

- name: Await test completion
shell: bash
id: test_result
run: |
assertoor_url="${{ steps.services.outputs.assertoor_url }}"

YELLOW='\033[1;33m'
GRAY='\033[0;37m'
GREEN='\033[0;32m'
RED='\033[0;31m'
NC='\033[0m'

# print assertor logs
assertoor_container=$(docker container list | grep assertoor | sed 's/^\([^ ]\+\) .*$/\1/')
docker logs -f $assertoor_container &

# helper to fetch task status for specific test id
get_tasks_status() {
tasks=$(curl -s ${assertoor_url}/api/v1/test_run/$1 | jq -c ".data.tasks[] | {index, parent_index, name, title, status, result}")
declare -A task_graph_map
task_graph_map[0]=""

while read task; do
task_id=$(echo "$task" | jq -r ".index")
task_parent=$(echo "$task" | jq -r ".parent_index")
task_name=$(echo "$task" | jq -r ".name")
task_title=$(echo "$task" | jq -r ".title")
task_status=$(echo "$task" | jq -r ".status")
task_result=$(echo "$task" | jq -r ".result")

task_graph="${task_graph_map[$task_parent]}"
task_graph_map[$task_id]="$task_graph |"
if [ ! -z "$task_graph" ]; then
task_graph="${task_graph}- "
fi

if [ "$task_status" == "pending" ]; then
task_status="${GRAY}pending ${NC}"
elif [ "$task_status" == "running" ]; then
task_status="${YELLOW}running ${NC}"
elif [ "$task_status" == "complete" ]; then
task_status="${GREEN}complete${NC}"
fi

if [ "$task_result" == "none" ]; then
task_result="${GRAY}none ${NC}"
elif [ "$task_result" == "success" ]; then
task_result="${GREEN}success${NC}"
elif [ "$task_result" == "failure" ]; then
task_result="${RED}failure${NC}"
fi

echo -e " $(printf '%-4s' "$task_id")\t$task_status\t$task_result\t$(printf '%-50s' "$task_graph$task_name") \t$task_title"
done <<< $(echo "$tasks")
}

# poll & check test status
final_test_result=""
failed_test_id=""
while true
do
pending_tests=0
failed_tests=0
total_tests=0
running_test=""

status_lines=()
task_lines=""
status_lines+=("$(date +'%Y-%m-%d %H:%M:%S') Test Status:")

tests=$(curl -s ${assertoor_url}/api/v1/test_runs | jq -c ".data[] | {run_id, test_id, name, status}")
while read test; do
if [ -z "$test" ]; then
continue
fi
run_id=$(echo "$test" | jq -r ".run_id")
test_id=$(echo "$test" | jq -r ".test_id")
test_name=$(echo "$test" | jq -r ".name")
test_status=$(echo "$test" | jq -r ".status")

if [ "$test_status" == "pending" ]; then
pending_tests=$(expr $pending_tests + 1)
status_name="${GRAY}pending${NC}"
elif [ "$test_status" == "running" ]; then
pending_tests=$(expr $pending_tests + 1)
running_test="$run_id"
status_name="${YELLOW}running${NC}"

elif [ "$test_status" == "success" ]; then
status_name="${GREEN}success${NC}"
elif [ "$test_status" == "failure" ]; then
failed_tests=$(expr $failed_tests + 1)
failed_test_id="$run_id"
status_name="${RED}failure${NC}"
else
status_name="$test_status"
fi
status_lines+=(" $(printf '%-3s' "$test_id") $status_name \t$test_name")
total_tests=$(expr $total_tests + 1)
done <<< $(echo "$tests")

for status_line in "${status_lines[@]}"
do
echo -e "$status_line"
done

if ! [ -z "$running_test" ]; then
task_lines=$(get_tasks_status "$running_test")
echo "Active Test Task Status:"
echo "$task_lines"
fi

if [ $failed_tests -gt 0 ]; then
final_test_result="failure"
break
fi
if [ $total_tests -gt 0 ] && [ $pending_tests -le 0 ]; then
final_test_result="success"
break
fi

sleep 60
done

# save test results & status to github output
echo "test_result=$(echo "$final_test_result")" >> $GITHUB_OUTPUT
echo "test_status<<EOF" >> $GITHUB_OUTPUT
for status_line in "${status_lines[@]}"
do
echo -e "$status_line" >> $GITHUB_OUTPUT
done
echo "EOF" >> $GITHUB_OUTPUT

if ! [ -z "$failed_test_id" ]; then
echo "failed_test_status<<EOF" >> $GITHUB_OUTPUT
get_tasks_status "$failed_test_id" >> $GITHUB_OUTPUT
echo "EOF" >> $GITHUB_OUTPUT
else
echo "failed_test_status=" >> $GITHUB_OUTPUT
fi

- name: Generate dump and remove kurtosis enclave
shell: bash
run: |
mkdir -p ./temp/dump
cd ./temp/dump
cp ../../etc/assertoor/assertoor.yaml ./kurtosis-params.yaml

kurtosis enclave dump assertoor-${{ github.run_id }}
kurtosis enclave rm -f assertoor-${{ github.run_id }}

- name: Upload dump artifact
uses: actions/upload-artifact@v4
with:
name: "kurtosis-enclave-dump-${{ github.run_id }}"
path: ./temp/dump

- name: Return test result
shell: bash
run: |
test_result="${{ steps.test_result.outputs.test_result }}"
test_status=$(
cat <<"EOF"
${{ steps.test_result.outputs.test_status }}
EOF
)
failed_test_status=$(
cat <<"EOF"
${{ steps.test_result.outputs.failed_test_status }}
EOF
)

echo "Test Result: $test_result"
echo "$test_status"

if ! [ "$test_result" == "success" ]; then
echo ""
echo "Failed Test Task Status:"
echo "$failed_test_status"

echo ""
echo "See 'Await test completion' task for detailed logs about this failure!"
echo ""

exit 1 # fail action
fi

4 changes: 2 additions & 2 deletions .github/workflows/book.yml
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ jobs:
.

- name: Upload artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: github-pages
path: ${{ runner.temp }}/artifact.tar
Expand All @@ -132,4 +132,4 @@ jobs:
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2
uses: actions/deploy-pages@v4
2 changes: 1 addition & 1 deletion .github/workflows/dependencies.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ jobs:
echo "EOF" >> $GITHUB_OUTPUT

- name: Create Pull Request
uses: peter-evans/create-pull-request@v5
uses: peter-evans/create-pull-request@v6
with:
add-paths: ./Cargo.lock
commit-message: ${{ steps.msg.outputs.commit_message }}
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,9 @@ jobs:
run: |
docker run --privileged --rm tonistiigi/binfmt --install arm64,amd64
docker buildx create --use --name cross-builder
- name: Build and push image, tag as "latest"
if: ${{ contains(github.event.ref, 'beta') }}
run: make PROFILE=maxperf docker-build-push-latest
- name: Build and push image
run: make PROFILE=maxperf docker-build-latest
if: ${{ ! contains(github.event.ref, 'beta') }}
run: make PROFILE=maxperf docker-build-push
41 changes: 34 additions & 7 deletions .github/workflows/hive.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,19 +17,22 @@ concurrency:

jobs:
prepare:
timeout-minutes: 45
runs-on:
group: Reth
steps:
- uses: actions/checkout@v4
- run: mkdir artifacts
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
uses: docker/setup-buildx-action@v3
- name: Build and export reth image
uses: docker/build-push-action@v4
uses: docker/build-push-action@v5
with:
context: .
tags: ghcr.io/paradigmxyz/reth:latest
build-args: BUILD_PROFILE=hivetests
build-args: |
BUILD_PROFILE=hivetests
FEATURES=asm-keccak
outputs: type=docker,dest=./artifacts/reth_image.tar
cache-from: type=gha
cache-to: type=gha,mode=max
Expand All @@ -41,7 +44,7 @@ jobs:
ref: master
path: hivetests

- uses: actions/setup-go@v3
- uses: actions/setup-go@v5
with:
go-version: "^1.13.1"
- run: go version
Expand All @@ -52,12 +55,13 @@ jobs:
mv ./hive ../artifacts/

- name: Upload artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: artifacts
path: ./artifacts

test:
timeout-minutes: 60
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -162,10 +166,11 @@ jobs:
name: run
runs-on:
group: Reth

permissions:
issues: write
steps:
- name: Download artifacts
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: artifacts
path: /tmp
Expand All @@ -191,6 +196,28 @@ jobs:
cd hivetests
hive --sim "${{ matrix.sim }}$" --sim.limit "${{matrix.limit}}/${{join(matrix.include, '|')}}" --client reth

- name: Create github issue if sim failed
env:
GH_TOKEN: ${{ github.token }}
if: ${{ failure() }}
run: |
echo "Simulator failed, creating issue"
# Check if issue already exists
# get all issues with the label C-hivetest, loop over each page and check if the issue already exists

existing_issues=$(gh api /repos/paradigmxyz/reth/issues -H "Accept: application/vnd.github+json" -H "X-GitHub-Api-Version: 2022-11-28" -F "labels=C-hivetest" --method GET | jq '.[].title')
if [[ $existing_issues == *"Hive Test Failure: ${{ matrix.sim }}"* ]]; then
echo "Issue already exists"
exit 0
fi
gh api \
--method POST \
-H "Accept: application/vnd.github+json" \
-H "X-GitHub-Api-Version: 2022-11-28" \
/repos/${{ github.repository }}/issues \
-f title='Hive Test Failure: ${{ matrix.sim }}' \
-f body="!!!!!!! This is an automated issue created by the hive test failure !!!!!!!<br /><br />The hive test for ${{ matrix.sim }} failed. Please investigate and fix the issue.<br /><br />[Link to the failed run](https://github.com/paradigmxyz/reth/actions/runs/${{ github.run_id }})" \
-f "labels[]=C-hivetest"
- name: Print simulator output
if: ${{ failure() }}
run: |
Expand Down
Loading
Loading