fix(cd): create 'automated' label before back-merge PR to avoid failure#300
Open
pszymkowiak wants to merge 1 commit into
Open
fix(cd): create 'automated' label before back-merge PR to avoid failure#300pszymkowiak wants to merge 1 commit into
pszymkowiak wants to merge 1 commit into
Conversation
The post-release back-merge job runs `gh pr create --label automated`, but
the label does not exist in the repo. `gh pr create` validates labels before
creating the PR, so the whole step failed ("could not add label: 'automated'
not found") on every release — the back-merge branch was pushed but no PR was
opened, leaving develop behind on version metadata.
Create the label idempotently right before the PR is opened. Keeps the
`automated` label semantics (useful for filtering tooling PRs) while removing
the failure mode; real `gh pr create` errors still surface.
Observed on the icm-v0.10.54 release.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.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.
Problem
The post-release
back-merge-developjob incd.ymlrunsgh pr create … --label automated, but theautomatedlabel does not exist in this repo.gh pr createvalidates labels before creating the PR, so the step fails with:This happened on every release: the back-merge branch was pushed but no PR was opened, so
developsilently fell behind on release-version metadata (manifest + CHANGELOG + Cargo.toml). Observed and recovered manually on icm-v0.10.54 (back-merge completed via #298).Fix
Create the
automatedlabel idempotently right beforegh pr create:automatedlabel semantics (useful for filtering tooling PRs).gh pr createerrors.Test
YAML validated. Functional validation happens on the next release: the back-merge PR should open automatically with the
automatedlabel and no failure.