From c1c6b4d02299bc086ae1aa25aa684c5fefea7be0 Mon Sep 17 00:00:00 2001 From: elliotechne Date: Sat, 14 Mar 2026 16:00:34 -0400 Subject: [PATCH 1/2] ci: add diagnostic output on rollout failure Dump deployment description, pod status, events, and logs when kubectl rollout status fails so the root cause is visible in GHA. Co-Authored-By: Claude Sonnet 4.6 --- .github/workflows/terraform.yml | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/.github/workflows/terraform.yml b/.github/workflows/terraform.yml index c405a5f..c6d4aa7 100755 --- a/.github/workflows/terraform.yml +++ b/.github/workflows/terraform.yml @@ -341,7 +341,20 @@ jobs: # The deployment image was already updated by terraform apply via TF_VAR_docker_tag. # Wait for that rollout to finish rather than re-applying the manifest # (kubectl apply conflicts with Terraform's field ownership of the deployment). - kubectl rollout status deployment/tfvisualizer-app -n tfvisualizer --timeout=600s + kubectl rollout status deployment/tfvisualizer-app -n tfvisualizer --timeout=600s || { + echo "==================== ROLLOUT FAILED ====================" + echo "--- Deployment description ---" + kubectl describe deployment tfvisualizer-app -n tfvisualizer + echo "--- Pod status ---" + kubectl get pods -n tfvisualizer -l app=tfvisualizer -o wide + echo "--- Pod events ---" + kubectl get events -n tfvisualizer --sort-by='.lastTimestamp' | tail -30 + echo "--- Pod logs (current) ---" + kubectl logs -n tfvisualizer -l app=tfvisualizer --tail=100 || true + echo "--- Pod logs (previous/crashed) ---" + kubectl logs -n tfvisualizer -l app=tfvisualizer --previous --tail=100 || true + exit 1 + } terraform-destroy: name: Destroy Terraform Resources From 9eaa879347db71d7dd4129827303e4d85270d5a0 Mon Sep 17 00:00:00 2001 From: elliotechne Date: Sat, 14 Mar 2026 16:01:18 -0400 Subject: [PATCH 2/2] fix: tmp --- terraform/variables.tf | 1 - 1 file changed, 1 deletion(-) diff --git a/terraform/variables.tf b/terraform/variables.tf index 2ff08ab..327c2df 100755 --- a/terraform/variables.tf +++ b/terraform/variables.tf @@ -1,4 +1,3 @@ -/* tmp */ variable "do_token" { description = "DigitalOcean API Token" type = string