From 6890ed79a1f809016aa84f9c48e900301e333e6d Mon Sep 17 00:00:00 2001 From: aya Date: Sun, 5 Jan 2025 21:30:55 +0200 Subject: [PATCH] Add comments in workflow for shards --- .github/workflows/test_common.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test_common.yml b/.github/workflows/test_common.yml index 2aee0bd1..08dc1730 100644 --- a/.github/workflows/test_common.yml +++ b/.github/workflows/test_common.yml @@ -39,7 +39,11 @@ jobs: fail-fast: false matrix: shard: [0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17] - + # total number of shards =18 means tests will split into 18 thread and run in parallel to increase execution speed + # command for sharding : + # pytest --shard-id= --num-shards= + # shard 16 for test_rln.py file as they shall run sequentially + # shard 17 for test_cursor_many_msgs.py as it takes time >7 mins runs-on: ubuntu-latest timeout-minutes: 120 steps: @@ -57,6 +61,7 @@ jobs: - run: pip install -r requirements.txt - name: Run tests + run: | if [ "${{ matrix.shard }}" == "16" ]; then pytest tests/relay/test_rln.py --alluredir=allure-results-${{ matrix.shard }}