feat(ethexe/blob-loader): extend BlobLoader tests and add Mock BlobReader#5381
feat(ethexe/blob-loader): extend BlobLoader tests and add Mock BlobReader#5381
Conversation
Changed Files
|
|
Maybe we'd rather not have MockBlobLoader, but rather test various cases of ConsensusLayerBlobReader? For example: beacon rpc disconnect, the case when chain id != anvil, blob re-request, invalid json data. |
Summary of ChangesHello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request significantly enhances the testing capabilities for the BlobLoader component. By introducing a mock BlobReader and expanding the test suite, it ensures more robust validation of blob loading processes, including handling of network failures, invalid JSON responses, and various chain configurations. The changes also include necessary dependency updates to support these testing improvements. Highlights
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here. Footnotes
|
There was a problem hiding this comment.
Code Review
This pull request updates the ethexe blob loader to improve code loading efficiency and adds comprehensive tests for the consensus layer blob reader. The changes include adding ethexe-db to dependencies, refining the ConsensusLayerBlobReader struct, and introducing new test utilities for simulating beacon server responses and anvil interactions. I have kept the review comment regarding the Cargo.toml configuration, as removing the target-specific cfg for dependencies could break compilation for WASM-targeted crates in the workspace.
|
|
||
| ### BEGIN HAKARI SECTION | ||
| [target.'cfg(not(target_arch = "wasm32"))'.dependencies] | ||
| [dependencies] |
There was a problem hiding this comment.
Removing the target-specific cfg for these dependencies will force them to be resolved for all targets, including wasm32-unknown-unknown. Many of these crates (e.g., alloy with node-bindings and provider-ws) require std and are not compatible with the no_std environment used for Gear programs. This change is likely to break the compilation of WASM-targeted crates in the workspace. This also applies to the build-dependencies section at line 489.
| [dependencies] | |
| [target.'cfg(not(target_arch = "wasm32"))'.dependencies] |
ecol-master
left a comment
There was a problem hiding this comment.
From my view there is a number of useless tests, for example, tests connected with fake beacon server. I think we do not need to test de-/serialise errors.
Resolves #4674