Skip to content

Commit 74ba47c

Browse files
spencer-tbdanceratopzmarioevz
authored
refactor(benchmark): rename zkevm tests to benchmark (#1804)
* chore: rename zkevm tests to benchmark. * chore(docs): changelog. * refactor(tests,fw,tox,docs): rename zkevm marker to benchmark * chore(tests): remove zkevm specific nomenclature from docstrings * chore(ci|docs): rename zkevm releases to benchmark. * chore(docs): align changelog docs for future releases. * chore: final tweaks after rebase. * Apply suggestions from code review --------- Co-authored-by: danceratopz <[email protected]> Co-authored-by: Mario Vega <[email protected]>
1 parent d269205 commit 74ba47c

File tree

8 files changed

+18
-20
lines changed

8 files changed

+18
-20
lines changed
File renamed without changes.
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
"""Pytest configuration for zkEVM tests."""
1+
"""Pytest configuration for benchmark tests."""
22

33
from pathlib import Path
44

55
import pytest
66

77

88
def pytest_collection_modifyitems(config, items):
9-
"""Add the `zkevm` marker to all tests under `./tests/zkevm`."""
9+
"""Add the `benchmark` marker to all tests under `./tests/benchmark`."""
1010
for item in items:
1111
if Path(__file__).parent in Path(item.fspath).parents:
12-
item.add_marker(pytest.mark.zkevm)
12+
item.add_marker(pytest.mark.benchmark)
File renamed without changes.
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
"""
2-
abstract: Tests zkEVMs worst-case block scenarios.
3-
Tests zkEVMs worst-case block scenarios.
2+
abstract: Tests that benchmark EVMs in worst-case block scenarios.
3+
Tests that benchmark EVMs in worst-case block scenarios.
44
5-
Tests running worst-case block scenarios for zkEVMs.
5+
Tests running worst-case block scenarios for EVMs.
66
"""
77

88
import pytest
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
"""
2-
abstract: Tests for zkEVMs
3-
Tests for zkEVMs.
2+
abstract: Tests that benchmark EVMs in worst-case opcode scenarios.
3+
Tests that benchmark EVMs in worst-case opcode scenarios.
44
5-
Tests for zkEVMs worst-cases scenarios.
5+
Tests that benchmark EVMs in worst-case opcode scenarios.
66
"""
77

88
import math
Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
"""
2-
abstract: Tests zkEVMs worst-case compute scenarios.
3-
Tests zkEVMs worst-case compute scenarios.
2+
abstract: Tests that benchmark EVMs in worst-case compute scenarios.
3+
Tests that benchmark EVMs in worst-case compute scenarios.
44
5-
Tests running worst-case compute opcodes and precompile scenarios for zkEVMs.
5+
Tests that benchmark EVMs when running worst-case compute opcodes and precompile scenarios.
66
"""
77

88
import math
@@ -1136,7 +1136,6 @@ def test_worst_precompile_fixed_cost(
11361136
)
11371137

11381138

1139-
@pytest.mark.zkevm
11401139
@pytest.mark.valid_from("Cancun")
11411140
@pytest.mark.slow
11421141
def test_worst_jumps(state_test: StateTestFiller, pre: Alloc):
@@ -1160,7 +1159,6 @@ def test_worst_jumps(state_test: StateTestFiller, pre: Alloc):
11601159
)
11611160

11621161

1163-
@pytest.mark.zkevm
11641162
@pytest.mark.valid_from("Cancun")
11651163
@pytest.mark.slow
11661164
def test_worst_jumpdests(state_test: StateTestFiller, pre: Alloc, fork: Fork):
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
"""
2-
abstract: Tests zkEVMs worst-case opcode scenarios.
3-
Tests zkEVMs worst-case opcode scenarios.
2+
abstract: Tests benchmark worst-case opcode scenarios.
3+
Tests benchmark worst-case opcode scenarios.
44
5-
Tests running worst-case opcodes scenarios for zkEVMs.
5+
Tests running worst-case opcodes scenarios for benchmarking purposes.
66
"""
77

88
import pytest
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
"""
2-
abstract: Tests zkEVMs worst-case stateful opcodes.
3-
Tests zkEVMs worst-case stateful opcodes.
2+
abstract: Tests that benchmark EVMs for worst-case stateful opcodes.
3+
Tests that benchmark EVMs for worst-case stateful opcodes.
44
5-
Tests running worst-case stateful opcodes for zkEVMs.
5+
Tests that benchmark EVMs for worst-case stateful opcodes.
66
"""
77

88
import math

0 commit comments

Comments
 (0)