long_tezt: Fix block validation initialization by upgrading storage
The block validation benchmark is currently failing continuously as the datadir was not upgraded since storage was upgraded to 1.0.
[09:03:55.242] [node2] tezos-node: Error:
[09:03:55.242] [node2] The data directory version is too old.
[09:03:55.242] [node2] Found '0.8', expected '1.0'.
[09:03:55.242] [node2] It needs to be upgraded with `tezos-node upgrade storage`.
This little patch proposes to add a storage upgrade at the start of the benchmarks in order for them to be resilient to future storage upgrades.
This was tested in local using a datadir in 0.8 to ensure that this can work properly. Don't hesitate to ask me a copy of this datadir to be able to test on your side.
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). - [n/a] For new features and bug fixes, add an item in the appropriate changelog (
docs/protocols/alpha.rstfor the protocol and the environment,CHANGES.rstat the root of the repository for everything else). -
Select suitable reviewers using the Reviewersfield below. -
Select as Assigneethe next person who should take action on that MR
Edited by Nicolas Raymond