Repository navigation
fix(ci): strip leftover MEMORY_ENABLED_USERS from Cloud Run backend deploys - #11472
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 63855913ee
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
CI red was Backend unit suite pyright on |
…loys The memory-maintenance-job is also a Cloud Run deploy that merges env vars across revisions. Its rendered --remove-env-vars was missing MEMORY_ENABLED_USERS, so the stale per-user binding survived on that job after #11447. Add it to both dev and prod maintenance-job flags and extend the test to cover that deployment path. Addresses Codex review comment on #11472.
a58763a to
035dfe0
Compare
…eploys Cloud Run merges --update-env-vars, so retired MEMORY_ENABLED_USERS survives candidate verification after #11447. Add it to the existing --remove-env-vars lists for backend, backend-sync, backend-sync-backfill, and backend-integration. Failure-Class: FC-runtime-binding-contract
…loys The memory-maintenance-job is also a Cloud Run deploy that merges env vars across revisions. Its rendered --remove-env-vars was missing MEMORY_ENABLED_USERS, so the stale per-user binding survived on that job after #11447. Add it to both dev and prod maintenance-job flags and extend the test to cover that deployment path. Addresses Codex review comment on #11472.
The committed runtime_env.yaml (composed output) had MEMORY_ENABLED_USERS added for the memory-maintenance-job but the declarative source _base.yaml was not updated, breaking the backend-runtime-env-compose check. Also run black on test_render_backend_runtime_env.py.
d7ee50f to
874c93b
Compare
|
Rebased onto latest
|
Summary
Auto Deploy 31667490904 failed candidate verification on leftover
MEMORY_ENABLED_USERSforbackend,backend-sync,backend-sync-backfill, andbackend-integration. Firestore readiness already passed. Cloud Run merges--update-env-vars, so #11447 retiring the per-user inventory left the live name in place.This PR adds
MEMORY_ENABLED_USERSto the existing--remove-env-varslists used by bothgcp_backend.ymlandgcp_backend_auto_dev.yml(viadeploy-backend-stackandsync-backfill-lifecycle). The full verifier-forbidden leftover set is now stripped:MEMORY_ENABLED_USERSMEMORY_CANONICAL_PROMOTION_CRON_ENABLEDMEMORY_CANONICAL_PROMOTION_CRON_INTERVAL_HOURSMEMORY_CANONICAL_PROMOTION_FAST_TRACK_ENABLEDStill-declared memory env (
MEMORY_MODE,MEMORY_V3_GET_ENABLED,MEMORY_TYPESENSE_COLLECTION,MEMORY_CANONICAL_MAINTENANCE_ENABLED) is not removed.Validation
backend/.venv/bin/python -m pytest tests/unit/test_render_backend_runtime_env.py tests/unit/test_backend_runtime_env_validator.py -q— 99 passedRETIRED_CANONICAL_MEMORY_ENVscripts/pr-preflight --pr-body-fileandmake preflightpassedPRE_PUSH_SKIP_BACKEND_TYPECHECK=1andPRE_PUSH_SKIP_BACKEND_UNIT_TESTS=1:provider_requestpossibly-unbound errors inbackend/routers/desktop_proactivity.pyfrom already-merged fix: return structured output from direct proactivity lane #11471 onorigin/main. This PR does not touch that file.test.shfiles all passed assertions; failures were backend fast-unit CPU timing guards (> 0.12s) under a loaded pre-push suite.Product invariants affected
none
Failure-Class: FC-runtime-binding-contract