Skip to content

Commit 11b96b8

Browse files
authored
chore(tests): group mem-heavy tests together in xdist (#2153)
1 parent d7d6251 commit 11b96b8

File tree

7 files changed

+20
-0
lines changed

7 files changed

+20
-0
lines changed

tests/osaka/eip7825_transaction_gas_limit_cap/test_tx_gas_limit.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,7 @@ def total_cost_floor_per_token(fork: Fork):
271271
return gas_costs.G_TX_DATA_FLOOR_TOKEN_COST
272272

273273

274+
@pytest.mark.xdist_group(name="bigmem")
274275
@pytest.mark.parametrize(
275276
"exceed_tx_gas_limit,correct_intrinsic_cost_in_transaction_gas_limit",
276277
[

tests/osaka/eip7934_block_rlp_limit/test_max_block_rlp_size.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -381,6 +381,7 @@ def _exact_size_transactions_impl(
381381
return transactions, final_gas
382382

383383

384+
@pytest.mark.xdist_group(name="bigmem")
384385
@pytest.mark.parametrize(
385386
"delta",
386387
[
@@ -440,6 +441,7 @@ def test_block_at_rlp_size_limit_boundary(
440441
)
441442

442443

444+
@pytest.mark.xdist_group(name="bigmem")
443445
@pytest.mark.with_all_typed_transactions
444446
@pytest.mark.verify_sync
445447
def test_block_rlp_size_at_limit_with_all_typed_transactions(
@@ -479,6 +481,7 @@ def test_block_rlp_size_at_limit_with_all_typed_transactions(
479481
)
480482

481483

484+
@pytest.mark.xdist_group(name="bigmem")
482485
@pytest.mark.verify_sync
483486
def test_block_at_rlp_limit_with_logs(
484487
blockchain_test: BlockchainTestFiller,

tests/prague/eip7702_set_code_tx/test_set_code_txs.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1812,6 +1812,7 @@ def test_set_code_to_self_destructing_account_deployed_in_same_tx(
18121812
)
18131813

18141814

1815+
@pytest.mark.xdist_group(name="bigmem")
18151816
def test_set_code_multiple_first_valid_authorization_tuples_same_signer(
18161817
state_test: StateTestFiller,
18171818
pre: Alloc,
@@ -1859,6 +1860,7 @@ def test_set_code_multiple_first_valid_authorization_tuples_same_signer(
18591860
)
18601861

18611862

1863+
@pytest.mark.xdist_group(name="bigmem")
18621864
def test_set_code_multiple_valid_authorization_tuples_same_signer_increasing_nonce(
18631865
state_test: StateTestFiller,
18641866
pre: Alloc,
@@ -1906,6 +1908,7 @@ def test_set_code_multiple_valid_authorization_tuples_same_signer_increasing_non
19061908
)
19071909

19081910

1911+
@pytest.mark.xdist_group(name="bigmem")
19091912
def test_set_code_multiple_valid_authorization_tuples_same_signer_increasing_nonce_self_sponsored(
19101913
state_test: StateTestFiller,
19111914
pre: Alloc,
@@ -2001,6 +2004,7 @@ def test_set_code_multiple_valid_authorization_tuples_first_invalid_same_signer(
20012004
)
20022005

20032006

2007+
@pytest.mark.xdist_group(name="bigmem")
20042008
def test_set_code_all_invalid_authorization_tuples(
20052009
state_test: StateTestFiller,
20062010
pre: Alloc,
@@ -2040,6 +2044,7 @@ def test_set_code_all_invalid_authorization_tuples(
20402044
)
20412045

20422046

2047+
@pytest.mark.xdist_group(name="bigmem")
20432048
def test_set_code_using_chain_specific_id(
20442049
state_test: StateTestFiller,
20452050
pre: Alloc,
@@ -2088,6 +2093,7 @@ def test_set_code_using_chain_specific_id(
20882093
SECP256K1N_OVER_2 = SECP256K1N // 2
20892094

20902095

2096+
@pytest.mark.xdist_group(name="bigmem")
20912097
@pytest.mark.parametrize(
20922098
"v,r,s",
20932099
[
@@ -2148,6 +2154,7 @@ def test_set_code_using_valid_synthetic_signatures(
21482154
)
21492155

21502156

2157+
@pytest.mark.xdist_group(name="bigmem")
21512158
@pytest.mark.parametrize(
21522159
"v,r,s",
21532160
[

tests/prague/eip7702_set_code_tx/test_set_code_txs_2.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1441,6 +1441,7 @@ class DelegationTo(Enum):
14411441
RESET = 3
14421442

14431443

1444+
@pytest.mark.xdist_group(name="bigmem")
14441445
@pytest.mark.valid_from("Prague")
14451446
@pytest.mark.parametrize(
14461447
"first_delegation", [DelegationTo.CONTRACT_A, DelegationTo.CONTRACT_B, DelegationTo.RESET]
@@ -1536,6 +1537,7 @@ def test_double_auth(
15361537
)
15371538

15381539

1540+
@pytest.mark.xdist_group(name="bigmem")
15391541
@pytest.mark.valid_from("Prague")
15401542
def test_pointer_resets_an_empty_code_account_with_storage(
15411543
blockchain_test: BlockchainTestFiller,
@@ -1754,6 +1756,7 @@ def test_set_code_type_tx_pre_fork(
17541756

17551757

17561758
@pytest.mark.valid_from("Prague")
1759+
@pytest.mark.xdist_group(name="bigmem")
17571760
def test_delegation_replacement_call_previous_contract(
17581761
state_test: StateTestFiller,
17591762
pre: Alloc,

tests/shanghai/eip3855_push0/test_push0.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
pytestmark = pytest.mark.valid_from("Shanghai")
3030

3131

32+
@pytest.mark.xdist_group(name="bigmem")
3233
@pytest.mark.parametrize(
3334
"contract_code,expected_storage",
3435
[
@@ -120,6 +121,7 @@ def push0_contract_caller(
120121
)
121122
return pre.deploy_contract(call_code)
122123

124+
@pytest.mark.xdist_group(name="bigmem")
123125
@pytest.mark.parametrize(
124126
"call_opcode",
125127
[

tests/shanghai/eip3860_initcode/test_initcode.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,7 @@
117117
"""
118118

119119

120+
@pytest.mark.xdist_group(name="bigmem")
120121
@pytest.mark.parametrize(
121122
"initcode",
122123
[
@@ -481,6 +482,7 @@ def create2_word_cost(self, opcode: Op, fork: Fork, initcode: Initcode) -> int:
481482
gas_costs = fork.gas_costs()
482483
return ceiling_division(len(initcode), 32) * gas_costs.G_KECCAK_256_WORD
483484

485+
@pytest.mark.xdist_group(name="bigmem")
484486
def test_create_opcode_initcode(
485487
self,
486488
state_test: StateTestFiller,

tests/shanghai/eip4895_withdrawals/test_withdrawals.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -651,6 +651,7 @@ def test_zero_amount(
651651
)
652652

653653

654+
@pytest.mark.xdist_group(name="bigmem")
654655
def test_large_amount(
655656
blockchain_test: BlockchainTestFiller,
656657
pre: Alloc,
@@ -690,6 +691,7 @@ def test_large_amount(
690691
blockchain_test(pre=pre, post=post, blocks=blocks)
691692

692693

694+
@pytest.mark.xdist_group(name="bigmem")
693695
@pytest.mark.parametrize("amount", [0, 1])
694696
@pytest.mark.with_all_precompiles
695697
def test_withdrawing_to_precompiles(

0 commit comments

Comments
 (0)