Skip to content

Commit 6b5bcb6

Browse files
committed
Always make full run for all subjects.
1 parent 248f31b commit 6b5bcb6

File tree

4 files changed

+24
-24
lines changed

4 files changed

+24
-24
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=1
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=1) due to [mutate-full] trigger."
8383
FINAL_MUTANT_MODE="full"
84-
FINAL_NUM_GROUPS=32
84+
FINAL_NUM_GROUPS=1
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=1) for PR."
8989
FINAL_MUTANT_MODE="incremental"
90-
FINAL_NUM_GROUPS=4
90+
FINAL_NUM_GROUPS=1
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=1) for main branch."
9797
FINAL_MUTANT_MODE="full"
98-
FINAL_NUM_GROUPS=32
98+
FINAL_NUM_GROUPS=1
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=1) for branch push."
102102
FINAL_MUTANT_MODE="incremental"
103-
FINAL_NUM_GROUPS=4
103+
FINAL_NUM_GROUPS=1
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=1
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=1
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=1) due to [mutate-full] trigger."
7777
FINAL_MUTANT_MODE="full"
78-
FINAL_NUM_GROUPS=32
78+
FINAL_NUM_GROUPS=1
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=1) for PR."
8383
FINAL_MUTANT_MODE="incremental"
84-
FINAL_NUM_GROUPS=4
84+
FINAL_NUM_GROUPS=1
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=1) for master branch."
9191
FINAL_MUTANT_MODE="full"
92-
FINAL_NUM_GROUPS=32
92+
FINAL_NUM_GROUPS=1
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=1) for branch push."
9696
FINAL_MUTANT_MODE="incremental"
97-
FINAL_NUM_GROUPS=4
97+
FINAL_NUM_GROUPS=1
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=1
213213
echo "Number of parallel groups to create: $NUM_GROUPS"
214214
groups_json_array_content=""
215215

ecommerce/pricing/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ else
3838
endif
3939
@echo "-----------------------------------------------------"
4040

41-
@echo "Executing: bundle exec mutant run $(TEMP_ACTUAL_MUTANT_ARGS) $(SUBJECTS_TO_RUN)"
42-
@bundle exec mutant run $(TEMP_ACTUAL_MUTANT_ARGS) $(SUBJECTS_TO_RUN)
41+
@echo "Executing: bundle exec mutant run"
42+
@bundle exec mutant run
4343

4444
.PHONY: install test mutate

rails_application/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ else
2727
@echo "Subjects: Specific group for CI - '$(SUBJECTS_TO_RUN)'"
2828
endif
2929
@echo "------------------------------------"
30-
@echo "Executing: env RAILS_ENV=test bundle exec mutant run $(ACTUAL_MUTANT_ARGS) $(SUBJECTS_TO_RUN)"
31-
@env RAILS_ENV=test bundle exec mutant run $(ACTUAL_MUTANT_ARGS) $(SUBJECTS_TO_RUN)
30+
@echo "Executing: env RAILS_ENV=test bundle exec mutant run"
31+
@env RAILS_ENV=test bundle exec mutant run
3232

3333
test: ## Run unit tests
3434
@bin/rails tailwindcss:build

0 commit comments

Comments
 (0)