Commit 07d1256
committed
feat(static): implement address tag resolution for static test fillers
Hard-coded address conversion in yml and json fillers:
- Add convert_addresses.py script to automate tag conversion
- The correct way to run this is with the ``CONVERT_COINBASE`` flag set to ``False``
as this allows the same coinbase for all tests (just as python tests do). If we
decide we want to handle the coinbase setting on the python side, we can turn this
flag on and hard-code on the python side... but the currect approach seems correct.
- Convert 1000+ static test YAML/JSON files to use address tags
(Python) Generate deterministic addresses from tags coming from static test fillers:
- Resolve tags to deterministic addresses in the same way python tests do - via pytest static filler plugin
- Add ``BlockchainEngineXFixture`` support for pre-allocation groups
This enables static tests to use symbolic address tags instead of hardcoded addresses,
minimizing muddied context across tests when running via pre alloc sharing.
----
fix(tests/static): Fine tune addr tag script, turn on more static tests for tagging.
- Wrap up stTransaction tests fine-tuning
- [fine-tuning] Replace 0 address in CALL code if in pre
- Changes from comments on PR ethereum#1781:
- Use Prague.precompiles() for precompile addresses in convert_addresses.py
- Revamp script, simplify Claude code over-engineering.
- fine tune by not tagging some addrs, add short name tag compat for selected tests1 parent 73e2d89 commit 07d1256
File tree
1,788 files changed
+45697
-17613
lines changed- docs
- scripts
- src
- ethereum_test_specs/static_state
- common
- pytest_plugins/filler
- tests/static/state_tests
- Cancun
- stEIP1153_transientStorage
- stEIP4844_blobtransactions
- stEIP5656_MCOPY
- Shanghai
- stEIP3651_warmcoinbase
- stEIP3855_push0
- VMTests
- vmArithmeticTest
- vmIOandFlowOperations
- vmTests
- stArgsZeroOneBalance
- stAttackTest
- stBadOpcode
- stBugs
- stCallCodes
- stCallCreateCallCodeTest
- stCallDelegateCodesCallCodeHomestead
- stCallDelegateCodesHomestead
- stChainId
- stCodeCopyTest
- stDelegatecallTestHomestead
- stEIP150Specific
- stEIP150singleCodeGasPrices
- stEIP1559
- stEIP158Specific
- stEIP2930
- stEIP3607
- stExample
- stExtCodeHash
- stHomesteadSpecific
- stInitCodeTest
- stLogTests
- stMemExpandingEIP150Calls
- stMemoryStressTest
- stMemoryTest
- stNonZeroCallsTest
- stPreCompiledContracts2
- stPreCompiledContracts
- stQuadraticComplexityTest
- stRandom2
- stRandom
- stRefundTest
- stReturnDataTest
- stRevertTest
- stSLoadTest
- stSStoreTest
- stSelfBalance
- stShift
- stSolidityTest
- stSpecialTest
- stStackTests
- stStaticCall
- stStaticFlagEnabled
- stSystemOperationsTest
- stTransactionTest
- stTransitionTest
- stZeroCallsRevert
- stZeroCallsTest
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
1,788 files changed
+45697
-17613
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
| 52 | + | |
52 | 53 | | |
53 | 54 | | |
54 | 55 | | |
| |||
Large diffs are not rendered by default.
0 commit comments