Repository navigation
fix(deploy): bind Redis env on x-connector-sync-job - #20845
Merged
Merged
Conversation
First dev execution: 39/250 synced, 211 failed on 'Error 111 connecting to None:6379' — the job never received REDIS_DB_HOST/PORT/PASSWORD. Dev binds the same values the notifications job uses; prod reads them from the existing config/secret mounts.
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
3 tasks done
Git-on-my-level
added a commit
that referenced
this pull request
Oct 6, 2026
## Summary - The prod overlay for x-connector-sync-job copied the dev Redis host/port (`redis-10797…:10797`). Prod jobs use the `redis-13151…:13151` cluster (same as notifications-job), so the first prod execution failed every Redis-touching user sync with `invalid username-password pair` (190 of 250 users). - Point the prod overlay at the prod cluster. The `REDIS_DB_PASSWORD` secret already holds the prod password. Live prod job env patched in parallel. Follow-up to #20845. ## Failure class Failure-Class: none ## Product invariants affected - INV-MEM-4 — deployment binding only: corrects which Redis cluster the job binds; no ownership or routing change. ## Test plan - [x] `python3 backend/deploy/compose_runtime_env.py` - [x] `tests/unit/test_render_backend_runtime_env.py` — 49 passed - [x] Live prod job env patched; verification execution running <!-- This is an auto-generated description by cubic. --> <a href="https://cubic.dev/pr/BasedHardware/omi/pull/20852?utm_source=github" target="_blank" rel="noopener noreferrer" data-no-image-dialog="true"><picture><source media="(prefers-color-scheme: dark)" srcset="https://www.cubic.dev/buttons/review-in-cubic-dark.svg"><source media="(prefers-color-scheme: light)" srcset="https://www.cubic.dev/buttons/review-in-cubic-light.svg"><img alt="Review in cubic" src="https://www.cubic.dev/buttons/review-in-cubic-dark.svg"></picture></a> <a href="https://www.cubic.dev/action/auto-fix/pr/BasedHardware/omi/20852?returnTo=https%3A%2F%2Fgithub.com%2FBasedHardware%2Fomi%2Fpull%2F20852&source=description" target="_blank" rel="noopener noreferrer" data-no-image-dialog="true"><picture><source media="(prefers-color-scheme: dark)" srcset="https://www.cubic.dev/buttons/turn-on-auto-fix-dark.svg"><source media="(prefers-color-scheme: light)" srcset="https://www.cubic.dev/buttons/turn-on-auto-fix-light.svg"><img alt="Turn on auto-fix" src="https://www.cubic.dev/buttons/turn-on-auto-fix-dark.svg"></picture></a> <!-- End of auto-generated description by cubic. -->
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
users: 250, synced: 39, failed: 211— every failure wasError 111 connecting to None:6379. The job never received its Redis env.REDIS_DB_HOST/REDIS_DB_PORT(config literals) andREDIS_DB_PASSWORD(secret-classified, so a Cloud Run secret binding) on the job for dev and prod.Follow-up to #11183. The dev Cloud Run job is already patched live with the same values; this PR makes it survive the next workflow deploy.
Failure class
Failure-Class: none
Product invariants affected
Test plan
python3 backend/deploy/compose_runtime_env.py— composed output matches overlays.github/scripts/check_deployment_secret_boundary.py --base main— passestests/unit/test_render_backend_runtime_env.py— 50 passedusers: 250, synced: 43, failed: 91(was 39/211). Remaining failures are per-user provider_5xx/oauth buckets, not infra.