Skip to content

Commit 72500e7

Browse files
committed
foo
1 parent 0700121 commit 72500e7

File tree

1 file changed

+68
-3
lines changed

1 file changed

+68
-3
lines changed

.github/workflows/helm-tests.yml

Lines changed: 68 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -159,13 +159,78 @@ jobs:
159159
echo "Working directory: $(pwd)"
160160
echo "Environment: RELEASE_NAME=${RELEASE_NAME}, PGO_VERSION=${{ env.PGO_VERSION }}"
161161
162-
echo "Setting environment variables..."
162+
echo "=== Prerequisites Check ==="
163+
kubectl version --client
164+
helm version
165+
kubectl cluster-info
166+
kubectl get nodes
167+
168+
echo "=== Initial Helm Repository Check ==="
169+
helm repo list || echo "No repositories configured yet"
170+
171+
echo "=== Setting environment variables ==="
163172
export RELEASE_NAME="${RELEASE_NAME}"
164173
export PGO_VERSION="${{ env.PGO_VERSION }}"
165174
export GITHUB_SHA="${{ github.sha }}"
175+
export CI_MODE=true
176+
export DEBUG_MODE=true
177+
178+
echo "=== Pre-deployment cluster state ==="
179+
kubectl get ns || true
180+
kubectl get deployments --all-namespaces || true
181+
182+
echo "=== Executing deployment script with debug ==="
183+
set -x # Enable verbose debugging
184+
if ! ./scripts/deploy.sh --ci; then
185+
echo "❌ Deployment script failed"
186+
echo "=== Post-failure debugging ==="
187+
echo "Helm repositories after failure:"
188+
helm repo list || true
189+
echo "Helm releases:"
190+
helm list --all-namespaces || true
191+
echo "Namespaces:"
192+
kubectl get ns || true
193+
echo "Events:"
194+
kubectl get events --all-namespaces --sort-by='.lastTimestamp' | tail -30 || true
195+
echo "Pods:"
196+
kubectl get pods --all-namespaces || true
197+
exit 1
198+
fi
199+
set +x # Disable verbose debugging
200+
echo "✅ Deployment completed"
201+
202+
- name: Debug Knative Integration
203+
if: always()
204+
run: |
205+
echo "=== Knative Integration Debug ==="
206+
echo "Checking Knative operator status..."
207+
kubectl get deployments -l app.kubernetes.io/name=knative-operator --all-namespaces || echo "Knative operator not found"
208+
209+
echo "=== Knative CRDs ==="
210+
kubectl get crd | grep knative || echo "No Knative CRDs found"
211+
212+
echo "=== KnativeServing Resources ==="
213+
kubectl get knativeservings --all-namespaces -o wide || echo "No KnativeServing resources"
214+
215+
echo "=== KnativeEventing Resources ==="
216+
kubectl get knativeeventings --all-namespaces -o wide || echo "No KnativeEventing resources"
217+
218+
echo "=== Knative Pods ==="
219+
kubectl get pods -n knative-serving || echo "No knative-serving namespace"
220+
kubectl get pods -n knative-eventing || echo "No knative-eventing namespace"
221+
222+
echo "=== eoapi-notifier Status ==="
223+
kubectl get pods -l app.kubernetes.io/name=eoapi-notifier -n eoapi || echo "No eoapi-notifier pods"
224+
kubectl logs -l app.kubernetes.io/name=eoapi-notifier -n eoapi --tail=10 || echo "No eoapi-notifier logs"
225+
226+
echo "=== CloudEvents Sink ==="
227+
kubectl get ksvc -n eoapi || echo "No Knative services in eoapi namespace"
228+
229+
echo "=== SinkBindings ==="
230+
kubectl get sinkbindings -n eoapi || echo "No SinkBindings in eoapi namespace"
166231
167-
echo "=== Executing deployment script ==="
168-
./scripts/deploy.sh --ci
232+
echo "=== Knative Jobs and Hooks ==="
233+
kubectl get jobs -n eoapi | grep knative || echo "No Knative-related jobs"
169234
170235
- name: Validate Helm dependencies
171236
run: |

0 commit comments

Comments
 (0)