Skip to content

Commit 392a846

Browse files
committed
ci(e2e): restart job service after DB setup completes
The knative-job-service container boots in parallel with the kind cluster and uses async-retry (factor: 2) to wait for app_jobs.jobs to exist. When an early retry lands while the schema is still being seeded by the constructive-db Job, the next retry is scheduled ~70s later - longer than the e2e test's 30s waitForJobComplete window, causing flakes (most recently E2E simple-email on PR #38). Force-replace the pod after the DB setup Job completes so the new pod's first prereqs check succeeds immediately. Adds ~3-8s per matrix entry and removes the race.
1 parent 3105b22 commit 392a846

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

.github/workflows/test-k8s-deployment.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,11 @@ jobs:
139139
kubectl wait --for=condition=complete job/constructive-db \
140140
-n constructive-functions --timeout=180s
141141
142+
- name: Restart job service after DB ready
143+
run: |
144+
kubectl rollout restart deploy/knative-job-service -n constructive-functions
145+
kubectl rollout status deploy/knative-job-service -n constructive-functions --timeout=120s
146+
142147
- name: Port-forward postgres and run e2e tests
143148
env:
144149
PGHOST: localhost

0 commit comments

Comments
 (0)