Skip to content

Fixtures: Consider adding more metadata to _info section #319

Open
@danceratopz

Description

@danceratopz

We could consider adding more information to the _info section included in test fixtures.

The following input is from @winsvega in #45:

            "filling-rpc-server" : "evm version 1.10.20-unstable-ba99e192-20220616",
            "filling-tool-version" : "retesteth-0.2.2-testinfo+commit.e48b58bc.Linux.g++",
            "generatedTestHash" : "648a4f2707dfd4c4eb4c70ef78931fa8e9d82429c777ff8a70b8d7ff4c58aefa",
            "lllcversion" : "Version: 0.5.14-develop.2022.6.16+commit.401d5358.Linux.g++",
            "solidity" : "Version: 0.8.5+commit.a4f2e591.Linux.g++",
            "source" : "src/BlockchainTestsFiller/ValidBlocks/bcEIP3675/tipInsideBlockFiller.yml",
            "sourceHash" : "ec69209b98c76673d794939765efff731b1f57400bf6fb3c8c37a325a7d33bfb"

filling-rpc-server refers to evm t8n version. rpc server because there was an idea to ask remote evm providers for test execution using rpc test protocol, not t8n.

filling-tool-version is pyspec version

source is relative path from the test repo to .py script that generated the test.

sourceHash is the hash of the script. in case we edit the test src it will be visible that the test need regeneration.

generatedTestHash is the hash of the generated test json without the _info section. printed as string with spaces stripped. used to verify if the test regeneration changed the existing test or not. if not, then _info section is not updated when regenerating all the tests, keeping git tidy

Metadata

Metadata

Assignees

No one assigned

    Labels

    scope:fwScope: Framework (evm|tools|forks|pytest)scope:toolsScope: Changes ethereum_test_tools packagetype:feattype: Feature

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions