Skip to content

ci: add dedicated helm upgrade workflow for backend-listen - #5152

Merged
beastoin merged 1 commit into
mainfrom
ci/backend-listen-helm-upgrade
Feb 26, 2026
Merged

beastoin merged 1 commit into
mainfrom
ci/backend-listen-helm-upgrade

Conversation

@beastoin

@beastoin beastoin commented Feb 26, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

  • Adds a new manual workflow_dispatch workflow (gcp_backend_listen_helm.yml) that runs helm upgrade --install for backend-listen
  • The existing gcp_backend.yml only does kubectl rollout restart for backend-listen, which does not apply Helm value changes (HPA settings, env vars, resource limits, etc.)
  • Includes a dry-run diff step before applying for visibility on risky changes
  • Includes rollout status verification and pod status on failure

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)

  • Helm dry-run: passed
  • Helm upgrade --install: passed
  • Verify rollout: deployment "dev-omi-backend-listen" successfully rolled out
  • Show pod status: No resources found — expected, dev has 0 backend-listen pods

Greptile review → fixed in #5153

Suggestion Valid? Evidence
Branch input not used YES actions/checkout@v4 without ref: ignores branch input
Wrong pod label selector YES app= matches 0 pods; app.kubernetes.io/instance= matches 26 pods in prod
Missing Helm install step Cosmetic Dev run succeeded without it — ubuntu-latest has Helm pre-installed. Added for consistency

Dev run #22428285184 (post-fix, with #5153 merged)

  • All steps passed, workflow completed successfully

🤖 Generated with Claude Code

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]>
@gemini-code-assist

Copy link
Copy Markdown
Contributor

Note

Gemini is unable to generate a review for this pull request due to the file types involved not being currently supported.

@beastoin
beastoin merged commit 6f16300 into main Feb 26, 2026
2 checks passed
@beastoin
beastoin deleted the ci/backend-listen-helm-upgrade branch February 26, 2026 04:38
@greptile-apps

greptile-apps Bot commented Feb 26, 2026

Copy link
Copy Markdown
Contributor

Greptile Summary

This PR adds a manual workflow to apply Helm chart changes for backend-listen, addressing a gap where kubectl rollout restart doesn't apply value changes. The workflow includes dry-run diff, upgrade, and rollout verification steps.

Key issues found:

  • Branch input parameter is defined but not used in checkout - will always deploy from default branch instead of user-specified branch
  • Pod label selector uses wrong label format (app= instead of app.kubernetes.io/instance=), causing the pod status check to fail
  • Missing explicit Helm installation step (inconsistent with other workflows like gcp_backend_auto_dev.yml)

Confidence Score: 2/5

  • Not safe to merge - contains functional bugs that will prevent workflow from working as intended
  • Two critical logic errors: branch input not being used means wrong code version will be deployed, and incorrect pod label selector will cause the pod status check to always fail. The Helm installation inconsistency is less critical but should be addressed for maintainability.
  • .github/workflows/gcp_backend_listen_helm.yml requires fixes for checkout ref and pod label selector

Important Files Changed

Filename Overview
.github/workflows/gcp_backend_listen_helm.yml New Helm upgrade workflow with branch input bug and incorrect pod label selector

Last reviewed commit: 47d0699

@greptile-apps greptile-apps Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1 file reviewed, 3 comments

Edit Code Review Agent Settings | Greptile

Comment on lines +34 to +35
- name: Checkout
uses: actions/checkout@v4

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Branch input not used - will always checkout default branch instead of user-specified branch

Suggested change
- name: Checkout
uses: actions/checkout@v4
- name: Checkout
uses: actions/checkout@v4
with:
ref: ${{ github.event.inputs.branch }}

Comment on lines +71 to +74
- name: Show pod status
if: always()
run: |
kubectl -n ${{ vars.ENV }}-omi-backend get pods -l app=${{ vars.ENV }}-omi-backend-listen --no-headers

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wrong label selector - Helm uses app.kubernetes.io/instance not app

Suggested change
- 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

Comment on lines +43 to +48
- 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 }}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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!

@github-project-automation github-project-automation Bot moved this from In review to Done in omi TODO / bounties Feb 27, 2026
@beastoin beastoin moved this to In review in omi TODO / bounties Feb 27, 2026
Glucksberg pushed a commit to Glucksberg/omi-local that referenced this pull request Apr 28, 2026
…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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant