Conversation
|
Claude finished @iamquang95's task in 2m 58s —— View job Code Review
SummaryThis PR ports Charon's MEV relay test suite into the Pluto CLI, adding Findings[High]
[Medium] Timeout in
[Medium]
[Low]
[Low]
[Low] Hardcoded signature in
Parity Matrix
TestsUnit tests added:
No integration tests (requiring live relay) — acceptable given the external dependency. Clippy/fmt could not be verified (build tools not available in this environment). Open Questions
|
- Follow the `test validator` approach (enum + impl block) - Simplify error handling for timeouts
- Test is already cancelled by caller appropriately
- Workaround for false positive
emlautarom1
left a comment
There was a problem hiding this comment.
I took the liberty of pushing some changes related to CancellationToken, timeouts and the like, that could cause trouble. I did not add them as comments due to the extent of the required changes.
There are a couple of things that require attention, like reusing existing error variants, mismatched features against v1.7.1 and missing tests.
| } | ||
|
|
||
| #[cfg(test)] | ||
| mod tests { |
There was a problem hiding this comment.
There are multiple tests missing from testmev_internal_test.go. Let us known if you're going to include them in this PR or you'll add them in a follow up.
There was a problem hiding this comment.
The missing tests will be addressed in a follow-up PR to keep this one focused. We'll add the remaining testmev_internal_test.go cases there.
- Use tokio::time::Instant instead of std::time::Instant in async code - Replace CliError::Other string literals with typed variants TimeoutInterrupted and TestCaseNotSupported - Remove TestResultError from imports; use CliError::TimeoutInterrupted directly - Simplify latest_beacon_block and fetch_proposers_for_epoch to use ? operator, leveraging existing From impls on CliError - Simplify get_block_header error conversions with .map_err(MevError::from) and .map_err(|e| MevError::Cli(e.into())) Co-Authored-By: Bohdan Ohorodnii <35969035+varex83@users.noreply.github.com>
RUSTSEC-2026-0097: rand 0.8.x unsoundness (transitive dep) RUSTSEC-2026-0098: rustls-webpki URI name constraint bypass (transitive dep) Co-Authored-By: Bohdan Ohorodnii <35969035+varex83@users.noreply.github.com>
These features are absent from Charon v1.7.1: - Remove x-timeout-ms CLI flag and x_timeout_ms field from TestMevArgs - Remove X-Timeout-Ms and Date-Milliseconds headers from get_block_header - Remove credential parsing (parse_endpoint_credentials / apply_basic_auth) from mev_ping_test, latest_beacon_block, fetch_proposers_for_epoch, and get_block_header - Replace x_timeout_ms-based thresholds in mev_create_block_test with fixed 500ms/800ms constants matching Go reference thresholds Co-Authored-By: Bohdan Ohorodnii <35969035+varex83@users.noreply.github.com>
varex83agent
left a comment
There was a problem hiding this comment.
All actionable review comments have been addressed. The missing tests (thread #10) will be added in a follow-up PR.
Resolve conflicts: - deny.toml: adopt main's detailed reason comment for RUSTSEC-2026-0097, keep RUSTSEC-2026-0098 - crates/cli/Cargo.toml: add chrono from main - crates/cli/src/commands/test/mod.rs: accept main's refactor (helpers/constants modules) - crates/cli/src/commands/test/mev.rs: update imports for helpers/constants split, use SLOTS_IN_EPOCH.get() for NonZero<u64> Co-Authored-By: Bohdan Ohorodnii <35969035+varex83@users.noreply.github.com>
* ci: use local /review-pr skill for PR reviews Replace the external code-review plugin with the repo's own /review-pr skill, and upgrade pull-requests permission to write so the skill can post inline review comments via the GitHub API. Co-Authored-By: Bohdan Ohorodnii <35969035+varex83@users.noreply.github.com> * ci: trigger review via @claude-review comment Co-Authored-By: Bohdan Ohorodnii <35969035+varex83@users.noreply.github.com> * ci: use /claude-review as comment trigger Co-Authored-By: Bohdan Ohorodnii <35969035+varex83@users.noreply.github.com> * ci: remove claude-code reviewer trigger, keep only /claude-review comment Co-Authored-By: Bohdan Ohorodnii <35969035+varex83@users.noreply.github.com> --------- Co-authored-by: Bohdan Ohorodnii <35969035+varex83@users.noreply.github.com>
Co-authored-by: Bohdan Ohorodnii <35969035+varex83@users.noreply.github.com>
* chore: fix cargo deny check Upgrade rustls-webpki 0.103.10 → 0.103.12 (RUSTSEC-2026-0098, RUSTSEC-2026-0099) and multihash 0.19.3 → 0.19.4 (drops yanked core2 0.4.0). * updated rand to 0.9.4 from 0.9.2 * updated other dependencies
- Remove unnecessary clones
Co-authored-by: Bohdan Ohorodnii <35969035+varex83@users.noreply.github.com>
|
@varex83 I'm a bit confused as to why we have changes to |
emlautarom1
left a comment
There was a problem hiding this comment.
LGTM, let's sort out the agent stuff and then merge.
Most likely I've forgot to |
Co-Authored-By: Bohdan Ohorodnii <35969035+varex83@users.noreply.github.com>
Closes #235