Skip to content

Conversation

@spencer-tb
Copy link
Collaborator

This PR updates fixture generation such that it is split into 2 seperate formats. The format is determined by the --enable-hive flag:

  1. The --disable-hive flag has been replaced by the --enable-hive flag. I decided to flip this due to increasing queries about the extra hive fields within the fixtures.
  2. Without the --enable-hive flag, the default format is used. Client teams use this within there CI/CD.
  3. With the --enable-hive an new fixture format is generated, similar to the current but only with the fields required by the hive pyspec simulator.
  4. Its worth noting that we require feature: Add engine API forkchoice updated information in fixtures #256 to be merged first, which adds the forkchoice version information for the hive pyspec simulator.

Note: after we merge this PR we will have to start including 2 tar files within every new release. One for the default fixture format fixtures.tar.gz and another for the hive fixture format fixtures_hive.tar.gz.

@spencer-tb spencer-tb force-pushed the hive-fixture-refactor branch from e4fd95d to 139f277 Compare September 20, 2023 15:30
@spencer-tb
Copy link
Collaborator Author

Tests for the hive fixture format have been added for reference, for any additional changes.

The hive fixture format is consumable in the pyspec simulator - tagging: ethereum/hive#844

These have been updated for both solc version 0.8.20 &0.8.21 to still account for padding differences.

@spencer-tb spencer-tb marked this pull request as ready for review September 20, 2023 23:18
Copy link
Member

@marioevz marioevz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

We can leave the fixture refactor for a follow up PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants