Skip to content

Commit dc19cfb

Browse files
committed
New parallel group counts for mutation tests.
- based on CI run times 32 jobs is too many and in fact total run time is higher than for 16 - a larger number of workers leads to faster saturation of the available number of free workers, which may block other tasks.
1 parent 248f31b commit dc19cfb

File tree

2 files changed

+20
-20
lines changed

2 files changed

+20
-20
lines changed

.github/workflows/pricing.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ jobs:
6565
echo "---------------------------------------------"
6666
6767
FINAL_MUTANT_MODE="full"
68-
FINAL_NUM_GROUPS=32
68+
FINAL_NUM_GROUPS=16
6969
FINAL_SINCE_TARGET=""
7070
7171
IS_MUTATE_FULL_TRIGGERED="false"
@@ -79,28 +79,28 @@ jobs:
7979
fi
8080
8181
if [[ "$IS_MUTATE_FULL_TRIGGERED" == "true" ]]; then
82-
echo "Action: Mode set to 'full' (NUM_GROUPS=32) due to [mutate-full] trigger."
82+
echo "Action: Mode set to 'full' (NUM_GROUPS=16) due to [mutate-full] trigger."
8383
FINAL_MUTANT_MODE="full"
84-
FINAL_NUM_GROUPS=32
84+
FINAL_NUM_GROUPS=16
8585
else
8686
if [[ "$EVENT_NAME" == "pull_request" ]]; then
8787
echo "Logic path: Pull request event (no [mutate-full] trigger)."
88-
echo "Action: Mode set to 'incremental' (NUM_GROUPS=4) for PR."
88+
echo "Action: Mode set to 'incremental' (NUM_GROUPS=2) for PR."
8989
FINAL_MUTANT_MODE="incremental"
90-
FINAL_NUM_GROUPS=4
90+
FINAL_NUM_GROUPS=2
9191
FINAL_SINCE_TARGET="origin/$PR_BASE_REF"
9292
echo "Incremental target: $FINAL_SINCE_TARGET"
9393
elif [[ "$EVENT_NAME" == "push" ]]; then
9494
if [[ "$REF_NAME" == "master" || "$REF_NAME" == "main" ]]; then
9595
echo "Logic path: Push event to main branch (no [mutate-full] trigger)."
96-
echo "Action: Mode set to 'full' (NUM_GROUPS=32) for main branch."
96+
echo "Action: Mode set to 'full' (NUM_GROUPS=16) for main branch."
9797
FINAL_MUTANT_MODE="full"
98-
FINAL_NUM_GROUPS=32
98+
FINAL_NUM_GROUPS=16
9999
else
100100
echo "Logic path: Push event to non-main branch ('$REF_NAME') (no [mutate-full] trigger)."
101-
echo "Action: Mode set to 'incremental' (NUM_GROUPS=4) for branch push."
101+
echo "Action: Mode set to 'incremental' (NUM_GROUPS=2) for branch push."
102102
FINAL_MUTANT_MODE="incremental"
103-
FINAL_NUM_GROUPS=4
103+
FINAL_NUM_GROUPS=2
104104
FINAL_SINCE_TARGET="origin/master"
105105
echo "Incremental target: $FINAL_SINCE_TARGET"
106106
fi
@@ -192,7 +192,7 @@ jobs:
192192
fi
193193
194194
total_subjects=${#subjects_array[@]}
195-
NUM_GROUPS=${NUM_GROUPS_FROM_CI:-4}
195+
NUM_GROUPS=${NUM_GROUPS_FROM_CI:-2}
196196
echo "Total subjects found: $total_subjects"
197197
echo "Number of parallel groups to create: $NUM_GROUPS"
198198
groups_json_array_content=""

.github/workflows/rails_application.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ jobs:
5959
echo "---------------------------------------------"
6060
6161
FINAL_MUTANT_MODE="full"
62-
FINAL_NUM_GROUPS=32
62+
FINAL_NUM_GROUPS=16
6363
FINAL_SINCE_TARGET=""
6464
6565
IS_MUTATE_FULL_TRIGGERED="false"
@@ -73,28 +73,28 @@ jobs:
7373
fi
7474
7575
if [[ "$IS_MUTATE_FULL_TRIGGERED" == "true" ]]; then
76-
echo "Action: Mode set to 'full' (NUM_GROUPS=32) due to [mutate-full] trigger."
76+
echo "Action: Mode set to 'full' (NUM_GROUPS=16) due to [mutate-full] trigger."
7777
FINAL_MUTANT_MODE="full"
78-
FINAL_NUM_GROUPS=32
78+
FINAL_NUM_GROUPS=16
7979
else
8080
if [[ "$EVENT_NAME" == "pull_request" ]]; then
8181
echo "Logic path: Pull request event (no [mutate-full] trigger)."
82-
echo "Action: Mode set to 'incremental' (NUM_GROUPS=4) for PR."
82+
echo "Action: Mode set to 'incremental' (NUM_GROUPS=2) for PR."
8383
FINAL_MUTANT_MODE="incremental"
84-
FINAL_NUM_GROUPS=4
84+
FINAL_NUM_GROUPS=2
8585
FINAL_SINCE_TARGET="origin/$PR_BASE_REF"
8686
echo "Incremental target: $FINAL_SINCE_TARGET"
8787
elif [[ "$EVENT_NAME" == "push" ]]; then
8888
if [[ "$REF_NAME" == "master" ]]; then # UWAGA: W oryginalnym pliku było "master", a nie "master" || "main". Dostosuj jeśli trzeba.
8989
echo "Logic path: Push event to master branch (no [mutate-full] trigger)."
90-
echo "Action: Mode set to 'full' (NUM_GROUPS=32) for master branch."
90+
echo "Action: Mode set to 'full' (NUM_GROUPS=16) for master branch."
9191
FINAL_MUTANT_MODE="full"
92-
FINAL_NUM_GROUPS=32
92+
FINAL_NUM_GROUPS=16
9393
else
9494
echo "Logic path: Push event to non-master branch ('$REF_NAME') (no [mutate-full] trigger)."
95-
echo "Action: Mode set to 'incremental' (NUM_GROUPS=4) for branch push."
95+
echo "Action: Mode set to 'incremental' (NUM_GROUPS=2) for branch push."
9696
FINAL_MUTANT_MODE="incremental"
97-
FINAL_NUM_GROUPS=4
97+
FINAL_NUM_GROUPS=2
9898
FINAL_SINCE_TARGET="origin/master"
9999
echo "Incremental target: $FINAL_SINCE_TARGET"
100100
fi
@@ -209,7 +209,7 @@ jobs:
209209
fi
210210
211211
total_subjects=${#subjects_array[@]}
212-
NUM_GROUPS=${NUM_GROUPS_FROM_CI:-32}
212+
NUM_GROUPS=${NUM_GROUPS_FROM_CI:-16}
213213
echo "Number of parallel groups to create: $NUM_GROUPS"
214214
groups_json_array_content=""
215215

0 commit comments

Comments
 (0)