Skip to content

fix(deploy): guard dev pusher config rollout - #9691

Merged
Git-on-my-level merged 2 commits into
mainfrom
fix/dev-pusher-config-contract
Jul 14, 2026
Merged

Git-on-my-level merged 2 commits into
mainfrom
fix/dev-pusher-config-contract

Conversation

@Git-on-my-level

@Git-on-my-level Git-on-my-level commented Jul 14, 2026 •

Copy link
Copy Markdown
Member

Summary

  • fail pusher auto-deploys before Helm when the shared backend runtime ConfigMap is missing
  • enforce the ConfigMap preflight across every pusher Helm workflow
  • preserve the existing dev pusher replica during failed rollouts

Root cause

PR #9670 made pusher depend on dev-omi-backend-config, but the push-triggered pusher workflow omitted the preflight added to the manual workflow. A concurrent backend deploy failed before creating the ConfigMap, while pusher Helm replaced the only healthy replica.

Durable guard

  • repository deployment policy rejects any pusher Helm workflow lacking a pre-Helm ConfigMap check
  • self-test covers valid, missing, and incorrectly ordered preflights
  • rendered Helm test requires dev pusher maxUnavailable: 0 and maxSurge: 1

Validation

  • python3 .github/scripts/check-deployment-concurrency.py --self-test
  • python3 .github/scripts/check-deployment-concurrency.py
  • python3 .github/scripts/check_deployment_secret_boundary.py --base origin/main
  • /Users/dazheng/workspace/omi/backend/.venv/bin/python -m pytest backend/tests/unit/test_rendered_deployment_contract.py -q (9 passed)
  • OMI_PR_BODY_FILE=/tmp/omi-dev-pusher-config-pr.md scripts/pre-push (Fast pre-push checks passed)

Operational verification

  • context-pinned rollback restored dev pusher revision 110's template as deployment revision 112
  • deployment is 1/1 ready and available with one ready EndpointSlice endpoint
  • in-cluster /health via port-forward returned 200 {"status":"healthy"}
  • migrated all 18 required non-secret values from the existing dev Kubernetes Secret to GitHub development environment variables and dev-omi-backend-config; values were never printed
  • retained the old secret keys until the ConfigMap-backed current pusher revision is deployed and verified

Deployment note

Landing this PR changes the dev pusher chart and triggers its auto-deploy. The new workflow preflights the now-provisioned ConfigMap before Helm, and the rollout preserves the healthy replica if the candidate cannot start.

Review in cubic

@Git-on-my-level
Git-on-my-level force-pushed the fix/dev-pusher-config-contract branch from 1c66278 to 2277b49 Compare July 14, 2026 09:01
@Git-on-my-level

Copy link
Copy Markdown
Member Author

Monitor update:

  • Rebased the PR branch onto current upstream origin/main and force-pushed the refreshed branch so the cancelled Repo Checks were replaced by fresh runs.
  • No review threads were present in the trusted post-push re-scan.

Verification passed:

  • python3 .github/scripts/check-deployment-concurrency.py --self-test
  • python3 .github/scripts/check-deployment-concurrency.py
  • python3 .github/scripts/check_deployment_secret_boundary.py --base origin/main
  • cd backend && ./scripts/sync-python-deps.sh && .venv/bin/python -m pytest tests/unit/test_rendered_deployment_contract.py -q (9 passed)
  • env -u VIRTUAL_ENV OMI_PR_BODY_FILE=/tmp/omi-pr-9691-body.md scripts/pre-push (Fast pre-push checks passed)
  • GitHub checks after push: all required jobs completed successfully; non-applicable jobs skipped.

@Git-on-my-level

Copy link
Copy Markdown
Member Author

@cursor address conflict

@cursor

cursor Bot commented Jul 14, 2026 •

Copy link
Copy Markdown

Resolved the merge conflict with origin/main and pushed the updated branch.

Conflict: .github/workflows/gcp_backend_pusher_auto_deploy.yml — our branch added a kubectl ConfigMap check; main added verify_pusher_config_references.py.

Resolution:

  • Kept the stronger upstream preflight (verify_pusher_config_references.py) in the auto-deploy workflow — it already verifies the ConfigMap exists and also checks Secret references.
  • Updated .github/scripts/check-deployment-concurrency.py so the deployment guard accepts either the kubectl check or the verify script, with a self-test for the new path.

Verification:

  • python3 .github/scripts/check-deployment-concurrency.py --self-test — passed
  • python3 .github/scripts/check-deployment-concurrency.py — passed

Pushed to fix/dev-pusher-config-contract; PR #9691 CI is running on the new commit.

Open in Web Open in Cursor 

Keep upstream verify_pusher_config_references.py preflight in the auto-deploy
workflow and extend the deployment concurrency guard to accept that script as
a valid ConfigMap preflight alongside the kubectl check.

Co-authored-by: David Zhang <[email protected]>
@Git-on-my-level
Git-on-my-level merged commit f6e7862 into main Jul 14, 2026
21 checks passed
@Git-on-my-level
Git-on-my-level deleted the fix/dev-pusher-config-contract branch July 14, 2026 18:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants