Kaitai: Add input samples for semantic validation of ground int encodings

Context

Follows !10939 (merged), part of #6629.

Add semantic validation for .ksy files that represent ground int encodings.

This MR does:

  • Adds new script to automate input generation as part of the dd0cc502.
  • Adds e2e validation for remaining ground int encodings.

Observe that e2e testing also exposes a "bug" in translation high level plan - #6730. The issue is tracked as part of the codebase now.

Follow-up

!11289 (merged)

Manually testing the MR

  1. CI should pass
  2. It is important that during input generation inside generate_input_samples.sh, errors coming from octez-codec encode [id] from [data] are not silently propagated, as this may give false impression about the correctness. I have tested this locally to not be the case.

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 Martin Tomazic

Merge request reports

Loading