Repository navigation
docs: re-run failed releases, tags are protected - #394
Merged
Merged
Conversation
A tag ruleset now blocks updates and deletions of `v*` and `chart-v*` tags, and releases are immutable. Replace the advice to delete the tag of a failed chart release with re-running its workflow, or bumping the version if the tagged commit is wrong, in the chart docs, the release workflow's comment and the README. State that the ruleset exists. Closes #392 Co-Authored-By: Claude Opus 5.5 <[email protected]>
Reviewer's guide (collapsed on small PRs)Reviewer's GuideDocumentation and a workflow comment now reflect the repository’s protected File-Level Changes
Possibly linked issues
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## dev #394 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 27 27
Lines 2510 2510
=========================================
Hits 2510 2510
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
uniqueg
marked this pull request as ready for review
October 22, 2026 16:53
There was a problem hiding this comment.
Hey - I've found 1 issue
Prompt for AI Agents
Please address the comments from this code review:
## Individual Comments
### Comment 1
<location path="README.md" line_range="167-168" />
<code_context>
+A tag ruleset allows only admins to create `v*` and `chart-v*` tags and
+blocks updates and deletions of these tags for everyone, and GitHub
+releases are immutable. If a release fails, re-run its workflow for the
+same tag; if the tagged commit itself is wrong, release a new version.
+
The Helm library chart `foca-common` (`charts/foca-common`) is versioned
</code_context>
<issue_to_address>
**Published releases cannot be retried**
When a release run publishes an immutable GitHub release and then fails before completing, the existing-release path in `release.yml` runs `gh release upload --clobber`, but GitHub rejects changes to the immutable release, so rerunning the workflow cannot complete or repair it.
Change the README recovery guidance and release retry path so recovery does not depend on uploading assets to an immutable release.
</issue_to_address>Sourcery assessment
Approval pending. 1 finding to address first.
Blocking findings: README.md:168
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.
Summary
The repository's tag rulesets now block updates and deletions of
v*andchart-v*tags (creation only by admins), and releases are immutable, so the advice to delete the tag of a failed release no longer works.docs/helm-chart.md, "Releases": on a failed release, re-run its workflow for the same tag (the version check passes while the version is unpublished); if the tagged commit is wrong, bump the chart's version and release a new tag. States that the tag ruleset exists instead of advising to create one..github/workflows/release-chart.yml: the same in the comment above the version check (comment only, no logic change).README.md, "Releasing": the same advice for FOCA'sv*tags.Closes #392
Light lane
Docs and one comment in the release workflow, no logic change: no reviewer subagents, no wait for a posted Sourcery review (CI and Sourcery's check still apply).
Verification
git diffchecked by hand; no other place in the repository advises deleting tags (git grep -i "delete.*tag").chart-v0.1.0) has already succeeded, so the first-release special case of the version check no longer matters for this advice.Declined review findings
gh release createwith assets creates a draft, uploads and only then publishes, and it is the last step ofrelease.yml; a failed run leaves a mutable draft that the rerun path completes, and a published release means the run succeeded. Replied and resolved.🤖 Generated with Claude Code