fix(release): let a successor take over an abandoned version claim #2028
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/version-claim-abandoned-takeover"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The ConfigMap claim and earlierReleaseVersionOwner disagreed and the stricter one won forever: a release that failed before producing durable evidence burned its version permanently. With semver-patch and no tag advance, every retry derives the same version, so the project can never release again.
ory hit this today: first release failed at tag creation with 403, published nothing, kept 0.1.0. An existing envtest case already asserts this must not happen — it passes only because it never creates the claim ConfigMap the real path creates.
Takeover stays narrow (terminal + no items/image/Deployable/Succeeded), an absent holder record stays exclusive, and the takeover is resourceVersion-guarded. Tests verified red without the fix; full envtest suite (125 specs) green.
8cefb5cf6268a8948c3868a8948c3833569a000633569a0006c86d7bf991c86d7bf99116df5a6bff16df5a6bff0c57b26ec60c57b26ec6f546c0c6e5