[go: up one dir, main page]

Draft: Dal/Node: tezt daemon and long test for slot management RPCs

Context

Running the DAL node requires a trusted setup, meaning a public parameter allowing to safely sign data. This trusted setup takes the form of a structured reference string (SRS) shared as file provided by the octez repository, as zcash parameters are provided for example. The problem is, to run tests, we need this SRS at execution time when the file size is around 100MB. Loading the file takes less than 5 sec.

This MR adds code on tezt library side to run DAL node as daemon and a rather simple test to check on DAL node slot management.

But the main question of this contribution is : How do we add the SRS file in the CI to make tests pass ?

  • the script to download the file is currently in scripts/install_dal_trusted_setup.sh
    • the url is not final and should be changed asap
  • the function to look for the file is very similar to the ZCASH params one
    • it is called find_trusted_setup, and found in src/lib_crypto/dal/dal_cryptobox.ml

fixing #3479 (closed)

Manually testing the MR

./scripts/install_dal_trusted_setup.sh
dune exec tezt/long_tests/main.exe -- --file dal.ml

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 Rémy El Sibaïe

Merge request reports

Loading