ci(pods): recover the missing ConvertSwiftSDK 2.0.0 pod — no version bump - #50
Merged
Conversation
…ecovery
v2.0.0 published to SPM and GitHub Releases, and ConvertSwiftSDKCore 2.0.0
reached CocoaPods Trunk, but the umbrella ConvertSwiftSDK push failed validation
with a transient `[!] Calling the GitHub commit API timed out.` (run
30115531359). That leaves the release half-published on CocoaPods with no way to
repair it in place:
- release.yml pushes core then the umbrella in one `-e` step, so re-running the
job aborts on the already-published core version (Trunk rejects duplicate
name+version) and never reaches the umbrella; and
- a `push: tags:` workflow always runs the workflow file AT THE TAG's commit, so
fixing release.yml on main does not change what a re-run of v2.0.0 executes.
Add a `workflow_dispatch`-only workflow that publishes ONE podspec from an
EXISTING tag, at the same version — no re-tagging, no version bump, no second
Release. It checks out the tag (so the uploaded spec is the one the release
blessed), asserts the podspec's s.version equals the tag using release.yml's own
grep/sed, skips a version already on Trunk (making it idempotent and immune to
the duplicate-rejection trap), pushes with release.yml's exact flags
(`--synchronous` for the umbrella only, since it alone declares a dependency),
and polls Trunk afterwards so a green run means the version is actually
resolvable.
Scoped to `contents: read` — it cannot create a Release, push a tag, or write to
the repo, so it can never become a second release path. release.yml keeps its
tag-only trigger and no workflow_dispatch (RELEASE.md safeguard #1 is about never
releasing on a branch merge, which this does not do).
Also correct the RELEASE.md troubleshooting entry that advised re-running the
release job, which cannot work for this failure mode, and document the recovery.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
|
Caution The consumer version of Gemini Code Assist on GitHub has been sunset. All code review activity has officially ceased. |
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.
The problem
v2.0.0is published on every channel except one:v2.0.0→b8b89b7ConvertSwiftSDKCore1.0.0, 1.0.1, 2.0.0ConvertSwiftSDK1.0.0, 1.0.1Run 30115531359 failed at the last step only:
Transient — not the token, not a version mismatch, not push ordering. Core had already published; the umbrella died in CocoaPods' podspec validation.
Why it can't be repaired with what's in the repo today
release.ymlpushes core then the umbrella in one step under-e. Core2.0.0is now on Trunk, and Trunk rejects a duplicate name+version — so re-running the job aborts on the first push and never reaches the umbrella.push: tags:workflow runs the workflow file as it exists at the tag's commit. Fixingrelease.ymlonmaindoes nothing for a re-run ofv2.0.0.Manual
pod trunk pushisn't a clean path either: pod-name ownership sits with the account that first pushed, and repository secrets can't be read back out.The fix — publish at 2.0.0, change no versions
A
workflow_dispatch-only Publish Pod workflow that publishes one podspec from an existing tag:mainholds later.s.versionequals the tag, reusingrelease.yml's exactgrep/sed.release.yml's exact flags —--synchronousfor the umbrella only, since it alone declaress.dependency 'ConvertSwiftSDKCore', s.version.to_s.No re-tagging. No version bump. No second GitHub Release. The podspecs are untouched — this PR contains zero changes to either
.podspec.Deliberately constrained
permissions: contents: read. It cannot create a Release, push a tag, or write to the repo, so it can never become a second release path.release.ymlkeeps its tag-only trigger and noworkflow_dispatch— RELEASE.md safeguard #1 is about never releasing on a branch merge, which this doesn't do.Verification
YAML parses; both shell paths exercised under
bash(what Actions uses) against live Trunk data:Version assert against the tagged tree: both podspecs
s.version=2.0.0== tag2.0.0✓After merge
Actions → Publish Pod → Run workflow with
tag: v2.0.0,podspec: ConvertSwiftSDK. (workflow_dispatchonly becomes available once the file is on the default branch.)