mirror of
https://github.com/logos-messaging/logos-messaging-interop-tests.git
synced 2026-05-18 08:19:32 +00:00
Modify test command to have 16 shards
This commit is contained in:
parent
d8def6f197
commit
7b8477373c
12
.github/workflows/test_common.yml
vendored
12
.github/workflows/test_common.yml
vendored
@ -37,9 +37,7 @@ jobs:
|
|||||||
name: tests
|
name: tests
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
shard: [ 0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,
|
shard: [ 0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15]
|
||||||
24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,
|
|
||||||
49,50,51,52,53,54,55,56,57,58,59,60,61,62]
|
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
timeout-minutes: 120
|
timeout-minutes: 120
|
||||||
@ -59,12 +57,8 @@ jobs:
|
|||||||
|
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: |
|
run: |
|
||||||
if [ "${{ matrix.shard }}" == 7 ]; then
|
pytest -m "not rln and not store2000" --reruns 2 --shard-id=${{ matrix.shard }}
|
||||||
pytest --reruns 2 --dist=loadfile tests/store/test_cursor_many_msgs.py -n 1 --alluredir=allure-results-${{ matrix.shard }}
|
--num-shards=16 --alluredir=allure-results-${{ matrix.shard }}
|
||||||
elif [ "${{ matrix.shard }}" == 1 ]; then
|
|
||||||
pytest --dist=loadfile tests/relay/test_rln.py -n 1 --alluredir=allure-results-${{ matrix.shard }}
|
|
||||||
elif [ "${{ matrix.shard }}" != 1 ]; then
|
|
||||||
pytest --ignore=tests/relay/test_rln.py --ignore=tests/store/test_cursor_many_msgs.py --reruns 2 -n=4 --shard-id=${{ matrix.shard }} --num-shards=63 --alluredir=allure-results-${{ matrix.shard }}
|
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
@ -14,6 +14,7 @@ logger = get_custom_logger(__name__)
|
|||||||
|
|
||||||
|
|
||||||
@pytest.mark.xdist_group(name="RLN serial tests")
|
@pytest.mark.xdist_group(name="RLN serial tests")
|
||||||
|
@pytest.mark.rln
|
||||||
@pytest.mark.skipif("go-waku" in (NODE_1 + NODE_2), reason="Test works only with nwaku")
|
@pytest.mark.skipif("go-waku" in (NODE_1 + NODE_2), reason="Test works only with nwaku")
|
||||||
class TestRelayRLN(StepsRLN, StepsRelay):
|
class TestRelayRLN(StepsRLN, StepsRelay):
|
||||||
SAMPLE_INPUTS_RLN = SAMPLE_INPUTS + SAMPLE_INPUTS + SAMPLE_INPUTS
|
SAMPLE_INPUTS_RLN = SAMPLE_INPUTS + SAMPLE_INPUTS + SAMPLE_INPUTS
|
||||||
|
|||||||
@ -11,6 +11,7 @@ class TestCursorManyMessages(StepsStore):
|
|||||||
# we implicitly test the reusabilty of the cursor for multiple nodes
|
# we implicitly test the reusabilty of the cursor for multiple nodes
|
||||||
|
|
||||||
@pytest.mark.timeout(540)
|
@pytest.mark.timeout(540)
|
||||||
|
@pytest.mark.store2000
|
||||||
def test_get_multiple_2000_store_messages(self):
|
def test_get_multiple_2000_store_messages(self):
|
||||||
expected_message_hash_list = []
|
expected_message_hash_list = []
|
||||||
for i in range(2000):
|
for i in range(2000):
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user