Skip to content

Commit 001fb1e

Browse files
committed
please work2
1 parent 01282f6 commit 001fb1e

File tree

1 file changed

+27
-1
lines changed

1 file changed

+27
-1
lines changed

.gitlab-ci.yml

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -563,13 +563,39 @@ Helm-Deploy Current dCache build:
563563
- >
564564
helm -n ${K8S_NAMESPACE} upgrade --install store dcache/dcache
565565
--wait
566+
--timeout=20m
566567
--set image.registry=${CI_REGISTRY}
567568
--set image.repository=${CI_PROJECT_PATH}
568569
--set image.tag=${tag}
569570
--set dcache.hsm.enabled=true
570571
--set dcache.qos.enabled=true
571-
--set "dcache.env.JACOCO_OPTS=output=tcpserver\,address=0.0.0.0\,port=6300\,dumponexit=true"
572572
--values .ci/custom-helm-config.yaml
573+
|| {
574+
echo "=== DEPLOYMENT FAILED - Gathering diagnostics ===";
575+
echo "Pod Status:";
576+
kubectl -n ${K8S_NAMESPACE} get pods;
577+
echo "";
578+
echo "Events:";
579+
kubectl -n ${K8S_NAMESPACE} get events --sort-by='.lastTimestamp' | tail -30;
580+
echo "";
581+
echo "Pool-A Pod Details:";
582+
kubectl -n ${K8S_NAMESPACE} describe pod store-pool-a-0 2>&1 | tail -50;
583+
echo "";
584+
echo "Pool-A Logs:";
585+
kubectl -n ${K8S_NAMESPACE} logs store-pool-a-0 --all-containers=true 2>&1 | tail -100;
586+
exit 1;
587+
}
588+
- echo "=== Verifying JaCoCo Configuration ==="
589+
- |
590+
for POD in $(kubectl -n ${K8S_NAMESPACE} get pods -l app.kubernetes.io/instance=store -o jsonpath='{.items[*].metadata.name}'); do
591+
echo "Checking $POD..."
592+
kubectl -n ${K8S_NAMESPACE} exec $POD -- env | grep JACOCO_OPTS || echo " JACOCO_OPTS not found"
593+
if kubectl -n ${K8S_NAMESPACE} exec $POD -- ps -ef 2>/dev/null | grep -q jacocoagent; then
594+
echo " ✓ JaCoCo agent running"
595+
else
596+
echo " ✗ JaCoCo agent NOT running"
597+
fi
598+
done
573599
574600
Helm-Deploy Latest dCache Golden Release:
575601
stage: test_deploy

0 commit comments

Comments
 (0)