From 28dc26e4a313d94ca01618cf23071664bd40d269 Mon Sep 17 00:00:00 2001 From: pdobacz <5735525+pdobacz@users.noreply.github.com> Date: Fri, 17 Jul 2026 09:34:16 +0000 Subject: [PATCH 1/2] test: mark eip4895 and eip4788 tests not valid for monad forks Co-Authored-By: Claude --- tests/cancun/eip4788_beacon_root/conftest.py | 7 +++++++ tests/shanghai/eip4895_withdrawals/conftest.py | 7 +++++++ 2 files changed, 14 insertions(+) diff --git a/tests/cancun/eip4788_beacon_root/conftest.py b/tests/cancun/eip4788_beacon_root/conftest.py index a60e814c4ea..0c2ae2c1710 100644 --- a/tests/cancun/eip4788_beacon_root/conftest.py +++ b/tests/cancun/eip4788_beacon_root/conftest.py @@ -26,6 +26,13 @@ BLOB_COMMITMENT_VERSION_KZG = 1 +def pytest_generate_tests(metafunc: pytest.Metafunc) -> None: + """Mark all tests in this subdir as not valid for Monad forks.""" + metafunc.definition.add_marker( + pytest.mark.not_valid_for("MONAD_EIGHT", subsequent_forks=True) + ) + + @pytest.fixture def timestamp() -> int: # noqa: D103 return 12 diff --git a/tests/shanghai/eip4895_withdrawals/conftest.py b/tests/shanghai/eip4895_withdrawals/conftest.py index 12707c2838f..e2b910cedd3 100644 --- a/tests/shanghai/eip4895_withdrawals/conftest.py +++ b/tests/shanghai/eip4895_withdrawals/conftest.py @@ -4,6 +4,13 @@ from execution_testing import Alloc, Environment +def pytest_generate_tests(metafunc: pytest.Metafunc) -> None: + """Mark all tests in this subdir as not valid for Monad forks.""" + metafunc.definition.add_marker( + pytest.mark.not_valid_for("MONAD_EIGHT", subsequent_forks=True) + ) + + @pytest.fixture def env() -> Environment: """Environment fixture.""" From 1befa4806610bcb2697be934994f1589015a9eff Mon Sep 17 00:00:00 2001 From: pdobacz <5735525+pdobacz@users.noreply.github.com> Date: Fri, 17 Jul 2026 09:34:16 +0000 Subject: [PATCH 2/2] test(eip7825): skip zero-byte full-calldata case under --monad-runloop The ~3 MB tx exceeds the runloop 2 MB proposal byte limit. Co-Authored-By: Claude --- .../test_tx_gas_limit.py | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/tests/osaka/eip7825_transaction_gas_limit_cap/test_tx_gas_limit.py b/tests/osaka/eip7825_transaction_gas_limit_cap/test_tx_gas_limit.py index 98e665bf6fd..9ee868fa582 100644 --- a/tests/osaka/eip7825_transaction_gas_limit_cap/test_tx_gas_limit.py +++ b/tests/osaka/eip7825_transaction_gas_limit_cap/test_tx_gas_limit.py @@ -343,7 +343,22 @@ def total_cost_floor_per_token(fork: Fork) -> int: pytest.param(False, True), ], ) -@pytest.mark.parametrize("zero_byte", [True, False]) +@pytest.mark.parametrize( + "zero_byte", + [ + pytest.param( + True, + marks=pytest.mark.monad_runloop( + pytest.mark.skip( + reason="Filling the tx gas limit cap with zero bytes " + "takes a ~3 MB tx, over the runloop 2 MB proposal " + "byte limit." + ) + ), + ), + False, + ], +) # Osaka originally, but Monad introduces tx gas limit cap differently @pytest.mark.valid_from("MONAD_EIGHT") @pytest.mark.json_loader