Commit 8836fb4
feat: add mev cli tests (#300)
* feat: add mev cli tests
* clippy
* Remove type aliases for test cases
- Follow the `test validator` approach (enum + impl block)
- Simplify error handling for timeouts
* Use `JoinSet`
* Consistent argument ordering
* Remove select with CT
- Test is already cancelled by caller appropriately
* Reorder parameters
* Remove redundant `CancellationToken`s
* Pass main CT
* Fix clippy lints
- Workaround for false positive
* fix(cli/mev): address PR review comments for mev test command
- 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>
* fix(deny): ignore RUSTSEC advisories for transitive deps
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>
* fix(cli/mev): remove x-timeout-ms, custom headers, and credentials
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>
* ci: use local /review-pr skill for PR reviews (#331)
* 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>
* ci: fix permissions and pass GITHUB_TOKEN for review comments (#333)
Co-authored-by: Bohdan Ohorodnii <35969035+varex83@users.noreply.github.com>
* chore: fix cargo deny check (#335)
* 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
* revert: ci: fix permissions and pass GITHUB_TOKEN for review comments (#333) (#334)
Co-authored-by: Bohdan Ohorodnii <35969035+varex83@users.noreply.github.com>
* Revert deny `ignore`
* Pass CT as value instead of ref
- Remove unnecessary clones
* ci: fix permissions and pass GITHUB_TOKEN for review comments (#333)
Co-authored-by: Bohdan Ohorodnii <35969035+varex83@users.noreply.github.com>
* revert: ci: fix permissions and pass GITHUB_TOKEN for review comments (#333) (#334)
Co-authored-by: Bohdan Ohorodnii <35969035+varex83@users.noreply.github.com>
* chore: restore workflow file to match main branch
Co-Authored-By: Bohdan Ohorodnii <35969035+varex83@users.noreply.github.com>
* fix: revert workflow file changes
---------
Co-authored-by: Lautaro Emanuel <emlautarom1@gmail.com>
Co-authored-by: Bohdan Ohorodnii <273991985+varex83agent@users.noreply.github.com>
Co-authored-by: Bohdan Ohorodnii <35969035+varex83@users.noreply.github.com>
Co-authored-by: Maciej Skrzypkowski <mskr@gmx.com>1 parent 614f647 commit 8836fb4
3 files changed
Lines changed: 721 additions & 14 deletions
0 commit comments