Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump the ethereum-tests submodule #2506

Merged
merged 19 commits into from
Jul 3, 2024
Merged

Bump the ethereum-tests submodule #2506

merged 19 commits into from
Jul 3, 2024

Conversation

anvacaru
Copy link
Contributor

@anvacaru anvacaru commented Jun 27, 2024

  • Bumping the ethereum-tests submodule to latest release

  • Adding Cancun schedule to schedules.md.

  • Some changes to driver.md to support the updated test structure

  • <blobGasUsed>, <excessBlobGas> ,<beaconRoot> cells are added to decode the new rlp used in tests.

  • Updated failing.llvm list:
    - skipping entire Cancun test suite from BlockchainTests/GeneralStateTests/Pyspecs/cancun/, and BlockchainTests/GeneralStateTests/Cancun/
    - skipping individual tests that use the Cancun schedule.
    - skipping BlockchainTests/GeneralStateTests/Pyspecs/shanghai/eip4895_withdrawals/ as withdrawals are not fully implemented.
    - (I) there are some new tests for already existing schedules that fail due to some gas costs
    - (II) some tests are getting stuck on <k> #halt ~> clear ~> run { .JSONs } ~> success .EthereumSimulation ~> .K </k>

(I)
BlockchainTests/GeneralStateTests/stCreate2/RevertInCreateInInitCreate2Paris.json
BlockchainTests/GeneralStateTests/stCreate2/create2collisionStorage.json
BlockchainTests/GeneralStateTests/stCreate2/RevertInCreateInInitCreate2.json
BlockchainTests/GeneralStateTests/stCreate2/create2collisionStorageParis.json
BlockchainTests/GeneralStateTests/stExtCodeHash/dynamicAccountOverwriteEmpty.json
BlockchainTests/GeneralStateTests/stExtCodeHash/dynamicAccountOverwriteEmpty_Paris.json
BlockchainTests/GeneralStateTests/stSStoreTest/InitCollisionParis.json
BlockchainTests/GeneralStateTests/stSStoreTest/InitCollision.json
BlockchainTests/GeneralStateTests/stEIP1559/outOfFundsOldTypes.json
BlockchainTests/GeneralStateTests/stEIP1559/intrinsic.json
BlockchainTests/GeneralStateTests/stEIP1559/transactionIntinsicBug_Paris.json
BlockchainTests/GeneralStateTests/stEIP1559/transactionIntinsicBug.json
BlockchainTests/GeneralStateTests/stEIP1559/lowFeeCap.json
BlockchainTests/GeneralStateTests/stEIP1559/typeTwoBerlin.json
BlockchainTests/GeneralStateTests/stEIP1559/lowGasLimit.json
BlockchainTests/GeneralStateTests/stEIP1559/tipTooHigh.json
BlockchainTests/GeneralStateTests/stEIP1559/outOfFunds.json
BlockchainTests/GeneralStateTests/stEIP1559/valCausesOOF.json
BlockchainTests/GeneralStateTests/stEIP1559/lowGasPriceOldTypes.json
BlockchainTests/GeneralStateTests/Pyspecs/frontier/opcodes/double_kill.json
BlockchainTests/GeneralStateTests/Pyspecs/constantinople/create2/recreate.json
BlockchainTests/GeneralStateTests/Pyspecs/paris/security/tx_selfdestruct_balance_bug.json
BlockchainTests/GeneralStateTests/Pyspecs/shanghai/eip3860_initcode/gas_usage.json
BlockchainTests/GeneralStateTests/stEIP3607/transactionCollidingWithNonEmptyAccount_send.json
BlockchainTests/GeneralStateTests/stEIP3607/transactionCollidingWithNonEmptyAccount_init_Paris.json
BlockchainTests/GeneralStateTests/stEIP3607/transactionCollidingWithNonEmptyAccount_callsItself.json
BlockchainTests/GeneralStateTests/stEIP3607/transactionCollidingWithNonEmptyAccount_init.json
BlockchainTests/GeneralStateTests/stEIP3607/transactionCollidingWithNonEmptyAccount_calls.json
BlockchainTests/GeneralStateTests/stEIP3607/transactionCollidingWithNonEmptyAccount_send_Paris.json
BlockchainTests/GeneralStateTests/stRevertTest/RevertInCreateInInit.json
BlockchainTests/GeneralStateTests/stRevertTest/RevertInCreateInInit_Paris.json
BlockchainTests/GeneralStateTests/stCreateTest/CreateTransactionHighNonce.json
BlockchainTests/GeneralStateTests/stExample/invalidTr.json
BlockchainTests/GeneralStateTests/stExample/accessListExample.json
BlockchainTests/GeneralStateTests/stExample/basefeeExample.json
BlockchainTests/GeneralStateTests/stExample/eip1559.json
BlockchainTests/GeneralStateTests/stTransactionTest/ValueOverflowParis.json
BlockchainTests/GeneralStateTests/stTransactionTest/HighGasPrice.json
BlockchainTests/GeneralStateTests/stTransactionTest/ValueOverflow.json
BlockchainTests/GeneralStateTests/stTransactionTest/HighGasPriceParis.json
BlockchainTests/GeneralStateTests/stSpecialTest/eoaEmpty.json
BlockchainTests/GeneralStateTests/stSpecialTest/eoaEmptyParis.json
(II)
BlockchainTests/GeneralStateTests/stTransactionTest/NoSrcAccountCreate1559.json
BlockchainTests/GeneralStateTests/stTransactionTest/ValueOverflow.json
BlockchainTests/GeneralStateTests/stTransactionTest/NoSrcAccount1559.json
BlockchainTests/GeneralStateTests/stTransactionTest/HighGasPriceParis.json
BlockchainTests/GeneralStateTests/stTransactionTest/NoSrcAccountCreate.json
BlockchainTests/GeneralStateTests/stTransactionTest/NoSrcAccount.json
BlockchainTests/GeneralStateTests/Shanghai/stEIP3860-limitmeterinitcode/creationTxInitCodeSizeLimit.json
BlockchainTests/GeneralStateTests/Pyspecs/shanghai/eip3860_initcode/contract_creating_tx.json

@anvacaru anvacaru self-assigned this Jun 27, 2024
@anvacaru anvacaru marked this pull request as draft June 27, 2024 17:00
@anvacaru anvacaru marked this pull request as ready for review July 2, 2024 09:45
@palinatolmach
Copy link
Contributor

(II) some tests are getting stuck on #halt ~> clear ~> run { .JSONs } ~> success .EthereumSimulation ~> .K

Is it expected?

@anvacaru
Copy link
Contributor Author

anvacaru commented Jul 3, 2024

(II) some tests are getting stuck on #halt ~> clear ~> run { .JSONs } ~> success .EthereumSimulation ~> .K

Is it expected?

No, I didn't get to the bottom of it yet. However, if I change the parsing rule of the "rlp_decoded" to

    rule <k> run  TESTID : { "rlp_decoded" : { .JSONs } , REST } => run TESTID : { REST } ~> failure TEST_ID ... </k>

the execution does not get stuck anymore. It has to be related to the updated encoding of the blocks field in a test.

Before the update, the structure was

"blocks" : [
    {
        "blockHeader" : {
            "baseFeePerGas" : "",
            "blobGasUsed" : "",
            "bloom" : "",
            "coinbase" : "",
            "difficulty" : "",
            "excessBlobGas" : "",
            "extraData" : "",
            "gasLimit" : "",
            "gasUsed" : "",
            "hash" : "",
            "mixHash" : "",
            "nonce" : "",
            "number" : "",
            "parentBeaconBlockRoot" : "",
            "parentHash" : "",
            "receiptTrie" : "",
            "stateRoot" : "",
            "timestamp" : "",
            "transactionsTrie" : "",
            "uncleHash" : "",
            "withdrawalsRoot" : ""
        },
        "blocknumber" : "",
        "rlp" : "",
        "transactions" : [],
        "uncleHeaders" : [],
        "withdrawals" : []
    }
],

After the update, some tests use the same structure, but other tests have this new rlp_decoded field.

"blocks" : [
    {
        "expectException" : "",
        "rlp" : "",
        "rlp_decoded" : {
            "blockHeader" : {
                "baseFeePerGas" : "",
                "blobGasUsed" : "",
                "bloom" : "",
                "coinbase" : "",
                "difficulty" : "",
                "excessBlobGas" : "",
                "extraData" : "",
                "gasLimit" : "",
                "gasUsed" : "",
                "hash" : "",
                "mixHash" : "",
                "nonce" : "",
                "number" : "",
                "parentBeaconBlockRoot" : "",
                "parentHash" : "",
                "receiptTrie" : "",
                "stateRoot" : "",
                "timestamp" : "",
                "transactionsTrie" : "",
                "uncleHash" : "",
                "withdrawalsRoot" : ""
            },
            "blocknumber" : "",
            "transactions" : [],
            "uncleHeaders" : [],
            "withdrawals" : []
        }
    }
]

The order of the rlp, which is a loadKey and of blockHeader which is a checkKey, has switched around, so maybe that's why it gets stuck.

@rv-jenkins rv-jenkins merged commit 1984739 into master Jul 3, 2024
13 checks passed
@rv-jenkins rv-jenkins deleted the schedule_update2 branch July 3, 2024 17:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants