Draft: Tezt: require specific tags to run executables
Context
Proof of concept to show that with nomadic-labs/tezt!36 (merged), one can run tezt codec
and be quite confidently sure that no test that runs octez-codec
is omitted.
When combined with !10550 (merged) it could start to significantly reduce the set of tests that we run for some MRs (mostly those that do not modify the node).
One limitation currently is that there is no way to ask Tezt to run "tests that have these tags or tests that are from this file". It sounds like an extended language for test selection may be needed.
Manually testing the MR
# "vendor" the right branch of Tezt
cd src
git clone https://gitlab.com/nomadic-labs/tezt.git
cd tezt
git checkout romain-current-test
# go back
cd ../..
# run Tezt on tests that use Codec
dune exec tezt/tests/main.exe -f RPC_test.ml -f encoding.ml -f precheck.ml -f retro.ml -f rpc_versioning_attestation.ml -j 8
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