Skip to content

Commit 59b4f36

Browse files
authored
OPSEXP-2938 Drop unreliable HPA test and enable clustered renditions on GA (#1260)
1 parent eae4323 commit 59b4f36

File tree

2 files changed

+1
-44
lines changed

2 files changed

+1
-44
lines changed

.github/workflows/helm-enterprise.yml

+1-36
Original file line numberDiff line numberDiff line change
@@ -114,14 +114,7 @@ jobs:
114114
- name: Check if we want additional helm customizations
115115
id: configurable-extra-values
116116
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
125118
echo "Enabling clustered tests with 2 replicas"
126119
echo "helm_install_params=--set alfresco-repository.replicaCount=2" >> "$GITHUB_OUTPUT"
127120
fi
@@ -193,31 +186,3 @@ jobs:
193186
kubectl get all --all-namespaces
194187
kubectl describe pod
195188
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

test/autoscaling-hpa-test-values.yaml

-8
This file was deleted.

0 commit comments

Comments
 (0)