[go: up one dir, main page]

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.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 Nicolas Raymond

Merge request reports

Loading