Skip to content

pydantic Validation errors at teardown since index file generation #724

@pdobacz

Description

@pdobacz

#716 seems to have broken test generation for me (which previously worked).

My invocation is:

PATH=$PATH:/home/user/sources/ethereum/evmone/build/bin fill --fork=CancunEIP7692 --evm-bin=~/sources/ethereum/evmone/build/bin/evmone-t8n -v tests/prague/eip7692_eof_v1/eip7069_extcall/test_calls.py::test_eof_calls_clear_return_buffer

Gives:

tests/prague/eip7692_eof_v1/eip7069_extcall/test_calls.py::test_eof_calls_clear_return_buffer[fork_CancunEIP7692-state_test-EOFContract-opcode_EXTSTATICCALL] PASSED [36/36]
tests/prague/eip7692_eof_v1/eip7069_extcall/test_calls.py::test_eof_calls_clear_return_buffer[fork_CancunEIP7692-state_test-EOFContract-opcode_EXTSTATICCALL] ERROR [36/36]

================================================= ERRORS =================================================
_ ERROR at teardown of test_eof_calls_clear_return_buffer[fork_CancunEIP7692-state_test-EOFContract-opcode_EXTSTATICCALL] _
src/pytest_plugins/filler/filler.py:621: in fixture_collector
    generate_fixtures_index(
src/cli/gen_index.py:190: in generate_fixtures_index
    raise e
src/cli/gen_index.py:187: in generate_fixtures_index
    fixtures = Fixtures.from_file(file, fixture_format=fixture_format)
src/ethereum_test_fixtures/file.py:85: in from_file
    return cls.from_json_data(json_data, fixture_format)
src/ethereum_test_fixtures/file.py:118: in from_json_data
    return model_class(root=json_data)
E   pydantic_core._pydantic_core.ValidationError: 10 validation errors for Fixtures
E   `tests/istanbul/eip1344_chainid/test_chainid.py::test_chainid[fork_Cancun-blockchain_test_hive]`.Fixture.lastblockhash
E     Field required [type=missing, input_value={'_info': {'hash': '0x91b...: '0x', 'storage': {}}}}, input_type=dict]
E       For further information visit https://errors.pydantic.dev/2.8/v/missing

<snip>

---------------------------------------- Captured stdout teardown ----------------------------------------
Error loading fixtures from 
fixtures/blockchain_tests_hive/istanbul/eip1344_chainid/chainid/chainid.json
...                                                                  0% 0:00:00
- Generated html report: file:///home/user/sources/ethereum/execution-spec-tests/fixtures/report_fill.html -
======================================== short test summary info =========================================
ERROR tests/prague/eip7692_eof_v1/eip7069_extcall/test_calls.py::test_eof_calls_clear_return_buffer[fork_CancunEIP7692-state_test-EOFContract-opcode_EXTSTATICCALL] - pydantic_core._pydantic_core.ValidationError: 10 validation errors for Fixtures
=============================== 36 passed, 1 deselected, 1 error in 2.72s ================================

I'm on 28f376b, but b7f00cd fails in a similar fashion, while a6a400b works fine

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions