Repository navigation
fix(deploy): config-train staging dry run reaches zero diff - #22504
Merged
Merged
Conversation
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]>
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
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
First config-train
plan --env staging(M2 zero-diff dry run, dev-operator, read-only) surfaced two false differences. (1)template_driftcompared container names, and Cloud Run names an unnamed template container (#0) asbackend-1on 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.yamlcarried 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 isSUMMARY_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 stagingon 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