Skip to content

EVM: Kernel: check result of bench pipeline

Pierre-Emmanuel CORNILLEAU requested to merge pec@evm@gas@read_csv into master

Context

Contributes: #6091

Uses node-csv to parse a csv file containing the benchmark data, perform a simple check, and output with or without an error exit status depending on result.

Two uses:

  • as a lib, to be added in run_benchmarks to do the analysis as soon as data is collected, while it's still in memory
  • as an exec, to do the analysis on previously obtained .csv files

Manually testing the MR

Run check_csv.js on a benchmark result csv

node src/kernel_evm/benchmarks/scripts/check_csv.js tests/test_ok.csv

expected: a summary, and process exit in success state

node src/kernel_evm/benchmarks/scripts/check_csv.js tests/test_ko.csv

expected: a summary, and process exit in error state

Checklist

  • Document the interface of any function added or modified (see the coding guidelines)
  • Document any change to the user interface, including configuration parameters (see node configuration)
  • Provide automatic testing (see the testing guide).
  • For new features and bug fixes, add an item in the appropriate changelog (docs/protocols/alpha.rst for the protocol and the environment, CHANGES.rst at the root of the repository for everything else).
  • Select suitable reviewers using the Reviewers field below.
  • Select as Assignee the next person who should take action on that MR
Edited by Pierre-Emmanuel CORNILLEAU

Merge request reports