Extract insights and statistics from replay validation logs #1304
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
util
Changes
process_replay_logs.sh
that cleans the logs, splits them into separate files, and then creates statistics.Log structure tokens
The transaction hash follows the structure tokens, and for execution, the entry function is also logged.
Example submission logs
Example execution logs
Files generated by the shell script
clean_logs
: contains all submission and execution logs produced by the replay tool. Everything up to the@R:
token (inclusive) has been removed from each line.Submission log files
S_logs
: extracted submission logs from theclean_logs
file. The@S:
prefix has been removed from each line.S_AF_logs
: contains only submission logs where the submission to Aptos failed and on Movement succeeded.S_MF_logs
: contains only submission logs where the submission to Movement failed and on Aptos succeeded.S_BS_logs
: contains only submission logs where the submission to Aptos and Movement succeeded.S_BF_logs
: contains only submission logs where the submission to Aptos and Movement failed.Execution log files
E_logs
: extracted execution logs from theclean_logs
file. The@E:
prefix has been removed from each line.E_AF_logs
: contains only execution logs where the execution on Aptos failed and on Movement succeeded.E_MF_logs
: contains only execution logs where the execution on Movement failed and on Aptos succeeded.E_BS_logs
: contains only execution logs where the execution on Aptos and Movement succeeded.E_BS_diff_logs
: contains logs fromE_BS_logs
filtered for differences in execution outputs (events, changes).E_BF_logs
: contains only execution logs where the execution on Aptos and Movement failed.E_BF_diff_logs
: contains logs fromE_BF_logs
filtered for differences in execution errors.Execution failure locations
E_AF_entry
: contains a unique sorted list of all transaction entry functions where the execution failed.E_AF_entry_freq
: same asE_AF_entry
but with failure occurrence frequencies.E_AF_abort
: contains a unique sorted list of all functions where the execution has been aborted.E_AF_abort_freq
: same asE_AF_abort
but with abort occurrence frequencies.Statistics
S_logs_stats
: contains a report with submission statistics.E_logs_stats
: contains a report with execution statistics.Example submission statistics:
Example submission statistics:
Testing
Outstanding issues
None.