@@ -114,14 +114,7 @@ jobs:
114
114
- name : Check if we want additional helm customizations
115
115
id : configurable-extra-values
116
116
run : |
117
- if [ "${{ matrix.values }}" = "values.yaml" ]; then
118
- echo "Enabling clustered tests via auto-scaling: 2 replicas max"
119
- echo "Renditions tests will be skipped because particularly flaky on clustered runs"
120
-
121
- echo "helm_install_params=--values test/autoscaling-hpa-test-values.yaml \
122
- --set dtas.additionalArgs[0]='-k not test_renditions'" >> "$GITHUB_OUTPUT"
123
- fi
124
- if [ "${{ matrix.values }}" = "pre-release_values.yaml" ]; then
117
+ if [ "${{ matrix.values }}" = "pre-release_values.yaml" ] || [ "${{ matrix.values }}" = "values.yaml" ]; then
125
118
echo "Enabling clustered tests with 2 replicas"
126
119
echo "helm_install_params=--set alfresco-repository.replicaCount=2" >> "$GITHUB_OUTPUT"
127
120
fi
@@ -193,31 +186,3 @@ jobs:
193
186
kubectl get all --all-namespaces
194
187
kubectl describe pod
195
188
kubectl events --for deployment/acs-alfresco-repository
196
-
197
- - name : Check HPA behavior during tests
198
- id : hpa_check
199
- if : always() && (matrix.values == 'values.yaml') && steps.helm_test.outcome != 'skipped'
200
- run : |
201
- echo "Checking current repo hpa status"
202
- kubectl get hpa acs-alfresco-repository
203
- echo -n "Repository should have 2 replicas after Helm test... "
204
- SETSIZE=$(kubectl get deployment/acs-alfresco-repository -o jsonpath='{@.spec.replicas}')
205
- if [ "$SETSIZE" -ne 2 ]; then
206
- echo "Got $SETSIZE instead"
207
- exit 1
208
- else
209
- echo "Got $SETSIZE"
210
- echo -n "Now waiting for scale down"
211
- kubectl patch hpa acs-alfresco-repository \
212
- -p '{"spec": {"behavior": {"scaleDown": {"stabilizationWindowSeconds": 20}}}}'
213
- echo -n "(speeding scale down up)... "
214
- kubectl wait --timeout=2m --for=jsonpath='spec.replicas'=1 deployment/acs-alfresco-repository
215
- echo "Scale down completed"
216
- fi
217
-
218
- - name : Spit cluster status after HPA check
219
- if : always() && steps.hpa_check.outcome != 'skipped'
220
- run : |
221
- kubectl get all --all-namespaces
222
- kubectl describe pod
223
- kubectl events --for deployment/acs-alfresco-repository
0 commit comments