Repository navigation
SCA-550: accept Pusher promotion from an unchanged qualified source closure - #18480
Merged
Merged
Conversation
…kout Keep the qualified digest tied to its dev run while comparing canary and final receipts with this run's checked-out main source. Recheck the Pusher closure and exact run/pod identity before accepting production evidence. Failure-Class: none Verification: backend/test.sh (76 focused tests); actionlint; OMI_PR_BODY_FILE=pr-body-550.md make preflight (42 checks). Generated with [Devin](https://devin.ai) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
The mobile release-note pipeline added mobile-changelog-data to every diff; the docs-only selection contract was still asserting the old global set. Verification: python3 .github/scripts/test_pr_preflight.py (48 tests); OMI_PR_BODY_FILE=pr-body-550.md make preflight (42 checks). Generated with [Devin](https://devin.ai) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
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 changed and why
SCA-550: Production Pusher promotion failed after unrelated merges because it compared this protected run's checked-out
mainSHA with the older, development-qualified Pusher source SHA. All four canary errors in run 35963192878 followed from that identity mix-up. Bind production canary, semantic, and final receipts to the exact protected run's checkout while continuing to bind development qualification to its own source and immutable digest. Fail closed if the qualified source is not an ancestor or if the Dockerfile-derived Pusher source closure or chart changed. Bind the isolated pod, listener, and receipt to this run's ID and image digest.A separate one-line preflight contract correction accounts for the repository-wide
mobile-changelog-datacheck introduced by #18466; the old docs-only selection expectation causedmake preflightto fail on a clean base.Product invariants affected
How it was verified
make setup— installed worktree hooks and the locked Python 3.11 backend environment.backend/test-preflight.sh— 17 passed, 9 optional integration prerequisite warnings.backend/test.shwithBACKEND_UNIT_TEST_FILE_LISTset to the three targeted Pusher test files — 76 passed.backend/.venv/bin/python -m pytest -q backend/tests/unit/test_verify_pusher_promotion_evidence.py backend/tests/unit/test_pusher_deployment_control_workflow.py backend/tests/unit/test_verify_pusher_source_closure.py— 76 passed.actionlint -shellcheck "" .github/workflows/gcp_backend_pusher.yml— passed.OMI_PR_BODY_FILE=pr-body-550.md make preflight— 42 checks passed after both commits;scripts/pr-preflight --lane local --pr-body-file pr-body-550.md --metadata-only— four metadata checks passed.mainmove, rejected a changed source closure and mismatched run, pod, or digest. The real production deploy was intentionally NOT run (coordinator-owned).Tests
backend/tests/unit/test_verify_pusher_promotion_evidence.py: moved-main success; source closure/ancestry failure; exact run/pod/digest refusal; canary and final phase with distinct development and production SHAs.backend/tests/unit/test_pusher_deployment_control_workflow.py: production and final verifier calls pass this run's checked-out SHA while qualification and pre-mutation closure gates remain intact..github/scripts/test_pr_preflight.py: docs-only manifest contract includes the already mandatory mobile changelog data check.Failure class (fixes)
Failure-Class: none
New guards
Run 35963192878 would have been caught by the moved-main and canary-source tests; the validation is Pusher-specific because it derives its comparison set from this service's Dockerfile and verifies its isolated canary receipt format, rather than defining a new generic release primitive.