Repository navigation
ci: add dedicated helm upgrade workflow for backend-listen - #5152
Conversation
The existing gcp_backend.yml only does `kubectl rollout restart` for backend-listen, which doesn't apply Helm value changes (HPA, env vars, resources). This separate workflow runs `helm upgrade --install` with a dry-run diff step for visibility before applying. Needed for PRs that modify backend-listen chart values (e.g. #4931). Co-Authored-By: Claude Opus 4.6 <[email protected]>
|
Note Gemini is unable to generate a review for this pull request due to the file types involved not being currently supported. |
Greptile SummaryThis PR adds a manual workflow to apply Helm chart changes for backend-listen, addressing a gap where Key issues found:
Confidence Score: 2/5
Important Files Changed
Last reviewed commit: 47d0699 |
| - name: Checkout | ||
| uses: actions/checkout@v4 |
There was a problem hiding this comment.
Branch input not used - will always checkout default branch instead of user-specified branch
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| ref: ${{ github.event.inputs.branch }} |
| - name: Show pod status | ||
| if: always() | ||
| run: | | ||
| kubectl -n ${{ vars.ENV }}-omi-backend get pods -l app=${{ vars.ENV }}-omi-backend-listen --no-headers |
There was a problem hiding this comment.
Wrong label selector - Helm uses app.kubernetes.io/instance not app
| - name: Show pod status | |
| if: always() | |
| run: | | |
| kubectl -n ${{ vars.ENV }}-omi-backend get pods -l app=${{ vars.ENV }}-omi-backend-listen --no-headers | |
| - name: Show pod status | |
| if: always() | |
| run: | | |
| kubectl -n ${{ vars.ENV }}-omi-backend get pods -l app.kubernetes.io/instance=${{ vars.ENV }}-omi-backend-listen --no-headers |
| - name: Connect to GKE cluster | ||
| run: | | ||
| curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo gpg --dearmor -o /usr/share/keyrings/cloud.google.gpg | ||
| echo "deb [signed-by=/usr/share/keyrings/cloud.google.gpg] https://packages.cloud.google.com/apt cloud-sdk main" | sudo tee -a /etc/apt/sources.list.d/google-cloud-sdk.list | ||
| sudo apt-get update && sudo apt-get install google-cloud-cli-gke-gcloud-auth-plugin -y | ||
| gcloud container clusters get-credentials ${{ vars.GKE_CLUSTER }} --region ${{ env.REGION }} --project ${{ vars.GCP_PROJECT_ID }} |
There was a problem hiding this comment.
Missing Helm installation step for consistency with other workflows (gcp_backend_auto_dev.yml, gcp_backend_agent_proxy.yml)
Add before connecting to GKE:
- name: Install Helm
uses: azure/setup-helm@v3
Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!
…ware#5152) The existing gcp_backend.yml only does `kubectl rollout restart` for backend-listen, which doesn't apply Helm value changes (HPA, env vars, resources). This separate workflow runs `helm upgrade --install` with a dry-run diff step for visibility before applying. Needed for PRs that modify backend-listen chart values (e.g. BasedHardware#4931). Co-authored-by: mon-agent <[email protected]> Co-authored-by: Claude Opus 4.6 <[email protected]>
Summary
workflow_dispatchworkflow (gcp_backend_listen_helm.yml) that runshelm upgrade --installfor backend-listengcp_backend.ymlonly doeskubectl rollout restartfor backend-listen, which does not apply Helm value changes (HPA settings, env vars, resource limits, etc.)Why
PRs that modify
backend/charts/backend-listen/values (e.g. #4931 VAD gate) need a way to apply those chart changes in prod. Without this, merged chart value changes sit in the repo but never get deployed.Verification
Dev run #22428093337 (pre-Greptile fixes)
deployment "dev-omi-backend-listen" successfully rolled outNo resources found— expected, dev has 0 backend-listen podsGreptile review → fixed in #5153
actions/checkout@v4withoutref:ignoresbranchinputapp=matches 0 pods;app.kubernetes.io/instance=matches 26 pods in produbuntu-latesthas Helm pre-installed. Added for consistencyDev run #22428285184 (post-fix, with #5153 merged)
🤖 Generated with Claude Code