Skip to content

fix(deploy): config-train staging dry run reaches zero diff - #22504

Merged
Git-on-my-level merged 1 commit into
integration/legacy-retirefrom
lr/07-staging-plan
Oct 19, 2026
Merged

Git-on-my-level merged 1 commit into
integration/legacy-retirefrom
lr/07-staging-plan

Conversation

@Git-on-my-level

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

Copy link
Copy Markdown
Member

Summary

First config-train plan --env staging (M2 zero-diff dry run, dev-operator, read-only) surfaced two false differences. (1) template_drift compared container names, and Cloud Run names an unnamed template container (#0) as backend-1 on the revision it creates, so every env change on backend-integration-staging was blocked. Unnamed containers now pair by position; containers with different explicit names still block. (2) deploy/ops/staging.yaml carried prod replica counts. Contract (i) allowlists replica counts and lane 2's deploy.sh sizes staging, so staging.yaml now matches it (backend-sync-staging max 20, no service-level min) and the prod/staging mirror test compares env only. Re-plan result: the only remaining difference is SUMMARY_DEBT_REPAIR_ENABLED: None -> 'true' on backend-integration-staging, the declared value that waits for C4. Queues are zero-diff.

Lane / contract

Lane 07, contracts (h) ops file, (i) staging allowlist; owner sign-offs for edits to other lanes' files: none

Product invariants affected

INV-DATA-1, INV-MEM-4: path match only from integration merges; this diff touches no data or memory path.

Verification

backend/tests/unit/test_config_train.py via test.sh, BACKEND_PYTEST_WORKERS=4: 43 passed, including the new unnamed-container test. Live read-only ops_train.py plan --env staging on dev-operator: 1 set (expected), 0 blockers. No apply. Full suite not run locally (CI).

Rollback

Revert this commit. The plan is read-only, so nothing was written.

Failure-Class: none
Line-Count-Exception: backend/routers/sync.py | 3820 -> 3857 | inherited from integration/legacy-retire (not in this diff); the pre-push gate measures against main

🤖 Generated with Claude Code

View guided diff Turn on auto-fix

First staging plan (M2 dry run, dev-operator, read-only) surfaced two issues:
- template_drift treated an unnamed template container (#0) as a different
  container from the one Cloud Run names on the revision (backend-1), blocking
  every env change on backend-integration-staging. Unnamed containers now pair
  by position; differently named containers still block.
- staging.yaml carried prod's replica counts; contract (i) allowlists replica
  counts and lane 2's deploy.sh sizes staging (backend-sync-staging max 20, no
  service min). staging.yaml now matches; the mirror test compares env only.

Re-plan: the only difference is SUMMARY_DEBT_REPAIR_ENABLED on
backend-integration-staging, the value #22480 declared and that waits for C4.

Failure-Class: none

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ⚠️ Failed 2026-10-19T14:35:10.919605Z d9c0c56 PR opened
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@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 de694ab into integration/legacy-retire Oct 19, 2026
25 checks passed
@Git-on-my-level
Git-on-my-level deleted the lr/07-staging-plan branch October 19, 2026 15:15
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