Skip to content

Conversation

@MegaRedHand
Copy link
Collaborator

Motivation

The import benchmark doesn't work out of the box, and has some quirks that can be easily fixed.

Description

This PR changes the benchmark.sh script so it outputs results into tooling/import_benchmark/bench_results. It now also uses the correct directory to find the highest bench ID.

Also, the Python script to parse results was difficult to use, since the results needed to be in the repo root; otherwise, it wouldn't work. Now it receives the file paths directly, which is more flexible and straightforward. Additionally, numpy was removed as a dependency, since it was unused.

Copilot AI review requested due to automatic review settings December 4, 2025 18:52
@MegaRedHand MegaRedHand requested a review from a team as a code owner December 4, 2025 18:52
@github-actions github-actions bot added the L1 Ethereum client label Dec 4, 2025
@MegaRedHand MegaRedHand added tech debt Refactors, cleanups, etc tooling External and Internal tooling that makes it easier to test the client and removed L1 Ethereum client labels Dec 4, 2025
@MegaRedHand MegaRedHand moved this to In Review in ethrex_l1 Dec 4, 2025
@MegaRedHand MegaRedHand added the L1 Ethereum client label Dec 4, 2025
Copilot finished reviewing on behalf of MegaRedHand December 4, 2025 18:54
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR improves the usability of the import benchmark tooling by fixing path handling issues and making the scripts more flexible.

  • Modified benchmark.sh to output results to tooling/import_benchmark/bench_results directory and correctly determine the next bench ID
  • Updated parse_bench.py to accept file paths directly as arguments instead of numeric ranges, making it more flexible and removing the unused numpy dependency
  • Updated documentation in README.md and Makefile to reflect the new command-line interface

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.

File Description
tooling/import_benchmark/parse_bench.py Refactored to accept file paths as arguments instead of numeric ranges; removed unused numpy import; improved code formatting
tooling/import_benchmark/benchmark.sh Added logic to determine script directory, create bench_results directory, and output logs to the correct location
tooling/import_benchmark/README.md Updated usage documentation to reflect new file path-based argument passing
tooling/import_benchmark/Makefile Updated help text to document the new command-line interface for parse_bench.py

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@MegaRedHand MegaRedHand added this pull request to the merge queue Dec 5, 2025
Merged via the queue into main with commit 7722c65 Dec 5, 2025
44 checks passed
@MegaRedHand MegaRedHand deleted the fix-import_benchmark branch December 5, 2025 16:03
@github-project-automation github-project-automation bot moved this from In Review to Done in ethrex_l1 Dec 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

L1 Ethereum client tech debt Refactors, cleanups, etc tooling External and Internal tooling that makes it easier to test the client

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

4 participants