Repository navigation
ops(backend): turn on #26771 settle-older for Nik's owner tag only - #26896
Merged
Merged
Conversation
Bind CONVERSATIONS_V3_SETTLE_OLDER_OWNERS from Secret Manager (version 1, one owner tag) on backend, backend-sync, backend-sync-backfill and backend-integration; the projection pump inherits it from integration. The tag stays out of the public repo, as the flag registry requires.
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.
What turns on
#26771 (merged as 9a944f8): an older stretch of one device's synced files settles on landing behind that device's newer speech. That covers the hold, the off-page sibling lookup, settlement wakes and their task route, and
has_pending's held sources. It turns on for one owner tag: Nik's account. Everyone else stays off, and there is no*.How
CONVERSATIONS_V3_SETTLE_OLDER_OWNERSis bound from Secret Manager (CONVERSATIONS_V3_SETTLE_OLDER_OWNERS, version1, pinned) onbackend,backend-sync,backend-sync-backfillandbackend-integration.backend-projection-pumpinherits it viaderive_from: backend-integration. The pump never runs a builder pass, so the binding does nothing there.backend-runtime@hassecretAccessor, so the revision can mount it at deploy.config/deployment-setting-classification.jsonclassifies the name as a secret. The approved-bindings test pins version 1 on those five services.Widening is Nik's call. That means a new secret version plus a bump of the pinned version here.
Rollback (owner-scoped)
On a regression, shift traffic on
backend,backend-sync,backend-sync-backfillandbackend-integrationback to their pre-enable revisions. Then revert this PR on main so the next deploy keeps it off. Keep secret version 1 and itsbackend-runtime@grant intact while any revision references it. After an owner-only rollback, check the queue forsettlement_deadlineretries still pending.Secret startup risk
Cloud Run resolves an env
secretKeyRefbefore the container starts. A disabled or destroyed version, or a revoked grant, would block startup of every revision that references it. The binding is pinned to version 1 and has an existingsecretAccessorgrant. It uses the same envsecretKeyRefpattern as every other secret in this manifest, for exampleCONVERSATIONS_V3_LIVE_RECAP_COHORT:runtime_env.yamlcarries 114 other secret bindings. Operational rule: never disable or destroy v1 while a revision references it. After deploy, verify that all four services became Ready on the new revision.During the 10% canary split, an enabled revision can enqueue a
settlement_deadlinetask to the service URL. A flag-off incumbent returns 422 for it, and the queue retries up to 10 times with 30-300 s backoff. The 5-minute sweep still wakes pending work at least 10 minutes old. This affects only Nik's tasks, because only his owner tag enqueues settlement wakes.cost-delta-usd-day: 0
That's one owner, and only on a full pending page: at most 32 metadata reads per pass.
Product invariants affected
Failure class (fixes)
No
fix:commits were detected; no declaration is required.Verification
compose_runtime_env.pyrecomposedruntime_env.yaml.backend/scripts/pre-deploy-check.sh: 710 passed.make preflight(see the PR checks).