Skip to content

fix(deploy): bind Redis env on x-connector-sync-job - #20845

Merged
Git-on-my-level merged 1 commit into
mainfrom
fix/x-sync-redis-env
Oct 6, 2026
Merged

Git-on-my-level merged 1 commit into
mainfrom
fix/x-sync-redis-env

Conversation

@Git-on-my-level

@Git-on-my-level Git-on-my-level commented Oct 6, 2026 •

Copy link
Copy Markdown
Member

Summary

  • First dev execution of x-connector-sync-job (feat(backend): split X connector sync into its own Cloud Run Job (#9298) #11183): users: 250, synced: 39, failed: 211 — every failure was Error 111 connecting to None:6379. The job never received its Redis env.
  • Bind REDIS_DB_HOST / REDIS_DB_PORT (config literals) and REDIS_DB_PASSWORD (secret-classified, so a Cloud Run secret binding) on the job for dev and prod.
  • Composed runtime_env.yaml regenerated.

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

  • INV-MEM-4 — deployment binding only: the new job gains the same Redis runtime bindings the notifications-job already carries; no canonical-memory ownership or routing change.

Test plan

  • python3 backend/deploy/compose_runtime_env.py — composed output matches overlays
  • .github/scripts/check_deployment_secret_boundary.py --base main — passes
  • tests/unit/test_render_backend_runtime_env.py — 50 passed
  • Live dev verification after applying the same values: second execution users: 250, synced: 43, failed: 91 (was 39/211). Remaining failures are per-user provider_5xx/oauth buckets, not infra.

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.
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, add credits to your account and enable them for code reviews in your settings.

@Git-on-my-level
Git-on-my-level merged commit dfef17b into main Oct 6, 2026
62 of 64 checks passed
@Git-on-my-level
Git-on-my-level deleted the fix/x-sync-redis-env branch October 6, 2026 19:55
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. -->
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.

1 participant