Activate embedding worker and fix CI image tag drift #155
No reviewers
Labels
No labels
domain:backend
domain:devops
domain:frontend
status:approved
status:in-progress
status:needs-fix
status:qa
type:bug
type:devops
type:feature
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
forgejo_admin/pal-e-api!155
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "154-activate-semantic-search-pipeline-scale"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Scales the embedding worker deployment from 0 to 1 replica, activating the dormant semantic search pipeline. Updates the stale image tag to match the current API image and fixes the CI pipeline so both manifests stay in sync on every build.
Changes
k8s/embedding-worker.yaml-- setreplicas: 1(was 0) to activate the workerk8s/embedding-worker.yaml-- update image tag frombec9a4ec...to9fe5106d...(current API image).woodpecker.yaml-- addk8s/embedding-worker.yamlto path exclusion list so CI skip-ci commits don't trigger rebuild loops.woodpecker.yaml-- updateupdate-deployment-tagstep to sed-replace and git-add bothdeployment.yamlandembedding-worker.yamlTest Plan
kubectl get pods -n pal-e-docs -l app=pal-e-docs-embedding-workerembedding_statuscounts in blocks tablecurl 'http://localhost:8000/notes/search?q=deployment&mode=semantic&limit=3'via port-forwardReview Checklist
Related
plan-pal-e-docsCloses #154
Self-Review: LGTM
Diff reviewed (2 files, +5/-4):
k8s/embedding-worker.yaml--replicas: 0->1(activates worker). Image tag updated from stalebec9a4ecto current9fe5106d(matchesdeployment.yaml)..woodpecker.yaml-- CIupdate-deployment-tagstep now updates both manifests via a singlesedpass.embedding-worker.yamladded to path exclusion to prevent rebuild loops from[skip ci]commits.Verified:
No issues found. Ready for merge.
PR #155 Review
BLOCKERS
None.
NITS
None. This is a clean, minimal change with no unnecessary modifications.
ANALYSIS
k8s/embedding-worker.yamlchanges (2 hunks):replicas: 0toreplicas: 1-- straightforward activation. The worker was previously scaled to zero (PR #143) due to CrashLoopBackOff. The underlying issue (code/infra readiness) has since been resolved through the semantic search pipeline work (PRs #130, #138, #141).bec9a4ec...to9fe5106d...-- verified this matches the currentdeployment.yamlon main (line 24:api:9fe5106d2ef8ceb229aa62721a5551e8f255fab2). The drift occurred because the CIupdate-deployment-tagstep only updateddeployment.yaml, notembedding-worker.yaml. This PR fixes that root cause..woodpecker.yamlchanges (2 hunks):k8s/embedding-worker.yamlalongsidek8s/deployment.yamlandk8s/.argocd-source-*. This prevents the CI[skip ci]image tag commit from triggering a rebuild loop. Correct and necessary.sed -iandgit addcommands in theupdate-deployment-tagstep now target bothk8s/deployment.yamlandk8s/embedding-worker.yaml. Since both manifests use the sameharbor.tail5b443a.ts.net/pal-e-docs/api:image prefix, the single sed pattern correctly applies to both. This eliminates future drift.Verified against codebase:
/home/ldraney/pal-e-docs/src/pal_e_docs/embedding_worker.pyand the manifest command["python", "-m", "pal_e_docs.embedding_worker"]matches the__main__entrypoint.k8s/kustomization.yamlso ArgoCD will pick up the replicas change./healthz) in the manifest match the worker's_HealthHandlerimplementation.SOP COMPLIANCE
154-activate-semantic-search-pipeline-scale)plan-pal-e-docs) and issue (#154)Closes #154present in PR bodyVERDICT: APPROVED