Repository navigation
fix(deploy-gate): base is the newest deployed ancestor; base_sha only as a first-deploy fallback - #24
Merged
Merged
Conversation
cerebral-work
Bot
force-pushed
the
fix/deploy-gate-base
branch
from
November 20, 2026 13:35
8cda2fb to
7802b95
Compare
Contributor
|
Train batch |
Contributor
|
Landed in train batch |
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.
Problem
The assurance re-check of #23 (comment 7040523492) broke two things, and I found a third while working through them:
base_shaoverrode the deployment history. It was checked only for existence. Withbase_shaset to the commit being deployed, or to a later one, the range is empty and an uncited claim passes. A caller that wiresbase_shafrom a dispatch input would have no claims check.deployments: writecan create a success deployment and move the base. This is from the REST documentation and was not run live.base...sharange, so a commit that was never deployed shipped unchecked.Change
base_sha:if: always()or!cancelled()on the deploy job;.jury-toolspath clash.Verification
b5e6902adds 6 tests and widens a seventh. On main4233b65, 7 cases in 6 tests fail: base_sha ignored when a deployment exists, base_sha strict ancestor (2 cases), base_sha never skips the API, rollback from the newest deployed ancestor, rollback to a deployed commit, and no deployed ancestor failing closed.8cda2fb.-S warningare clean.8cda2fb, with an environment that had no deployments. The branch and the environment are deleted.base_shawas a local GitButler workspace commit that was never pushed. It failed closed: "input base_sha ... is not an ancestor of ...".base_sha= mainc2d0a6d. Success, deployment 7942821279 at12b7c636.base_shastill set, plus an uncited claim.cad69a61over the older70443e1d.per_page=1returnssuccess, the latest of waiting, queued, in_progress and success.References
no XERJ hit (queries in #23).
Linear
CER-4034.