Skip to content

Commit 9ee027c

Browse files
committed
Windows GitHub workers are way too flaky due to lag
1 parent d2fab34 commit 9ee027c

File tree

18 files changed

+3
-39
lines changed

18 files changed

+3
-39
lines changed

.github/workflows/check.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ jobs:
1515
uses: ./.github/workflows/.hatch-run.yml
1616
with:
1717
job-name: "python-{0}"
18-
run-cmd: "hatch test --parallel --cover"
18+
# Retries needed because GitHub workers sometimes lag enough to crash parallel workers
19+
run-cmd: "hatch test --parallel --cover --retries 10"
1920
lint-python:
2021
uses: ./.github/workflows/.hatch-run.yml
2122
with:
@@ -25,7 +26,7 @@ jobs:
2526
uses: ./.github/workflows/.hatch-run.yml
2627
with:
2728
job-name: "python-{0} {1}"
28-
run-cmd: "hatch test --parallel"
29+
run-cmd: "hatch test --parallel --retries 10"
2930
runs-on: '["ubuntu-latest", "macos-latest", "windows-latest"]'
3031
python-version: '["3.11", "3.12", "3.13", "3.14"]'
3132
test-documentation:

tests/__init__.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +0,0 @@
1-
import pytest
2-
3-
from reactpy.testing import GITHUB_ACTIONS
4-
5-
pytestmark = [pytest.mark.flaky(reruns=10 if GITHUB_ACTIONS else 1)]

tests/conftest.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@
1515
)
1616
from reactpy.testing.display import _playwright_visible
1717

18-
from . import pytestmark # noqa: F401
19-
2018
REACTPY_ASYNC_RENDERING.set_current(True)
2119
REACTPY_DEBUG.set_current(True)
2220

tests/test_asgi/test_middleware.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@
1515
from reactpy.executors.asgi.middleware import ReactPyMiddleware
1616
from reactpy.testing import BackendFixture, DisplayFixture
1717

18-
from .. import pytestmark # noqa: F401
19-
2018

2119
@pytest.fixture(scope="module")
2220
async def display(browser):

tests/test_asgi/test_pyscript.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@
1212
from reactpy.executors.asgi.pyscript import ReactPyCsr
1313
from reactpy.testing import BackendFixture, DisplayFixture
1414

15-
from .. import pytestmark # noqa: F401
16-
1715

1816
@pytest.fixture(scope="module")
1917
async def display(browser):

tests/test_asgi/test_standalone.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@
1313
from reactpy.testing.common import REACTPY_TESTS_DEFAULT_TIMEOUT
1414
from reactpy.types import Connection, Location
1515

16-
from .. import pytestmark # noqa: F401
17-
1816

1917
async def test_display_simple_hello_world(display: DisplayFixture):
2018
@reactpy.component

tests/test_client.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@
66
from tests.tooling.common import DEFAULT_TYPE_DELAY
77
from tests.tooling.hooks import use_counter
88

9-
from . import pytestmark # noqa: F401
10-
119
JS_DIR = Path(__file__).parent / "js"
1210

1311

tests/test_core/test_component.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
import reactpy
22
from reactpy.testing import DisplayFixture
33

4-
from .. import pytestmark # noqa: F401
5-
64

75
def test_component_repr():
86
@reactpy.component

tests/test_core/test_events.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@
1616
from reactpy.types import Event
1717
from tests.tooling.common import DEFAULT_TYPE_DELAY
1818

19-
from .. import pytestmark # noqa: F401
20-
2119

2220
def test_event_handler_repr():
2321
handler = EventHandler(lambda: None)

tests/test_core/test_hooks.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@
1313
from reactpy.utils import Ref
1414
from tests.tooling.common import DEFAULT_TYPE_DELAY, update_message
1515

16-
from .. import pytestmark # noqa: F401
17-
1816

1917
async def test_must_be_rendering_in_layout_to_use_hooks():
2018
@reactpy.component

0 commit comments

Comments
 (0)