Skip to content

docs: re-run failed releases, tags are protected - #394

Merged
uniqueg merged 1 commit into
devfrom
docs/chart-release-tags
Oct 22, 2026
Merged

uniqueg merged 1 commit into
devfrom
docs/chart-release-tags

Conversation

@uniqueg

@uniqueg uniqueg commented Oct 22, 2026 •

Copy link
Copy Markdown
Member

Summary

The repository's tag rulesets now block updates and deletions of v* and chart-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's v* 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 diff checked by hand; no other place in the repository advises deleting tags (git grep -i "delete.*tag").
  • The first chart release (chart-v0.1.0) has already succeeded, so the first-release special case of the version check no longer matters for this advice.
  • CI: all checks pass.

Declined review findings

  • Sourcery (medium, "Published releases cannot be retried"): gh release create with assets creates a draft, uploads and only then publishes, and it is the last step of release.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

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]>
@sourcery-ai

sourcery-ai Bot commented Oct 22, 2026 •

Copy link
Copy Markdown
Reviewer's guide (collapsed on small PRs)

Reviewer's Guide

Documentation and a workflow comment now reflect the repository’s protected v*/chart-v* tags and immutable releases: failed releases should be rerun with the same tag, while incorrect tagged commits require a new version and tag; no workflow logic changes were made.

File-Level Changes

Change Details Files
Updated release recovery guidance to account for protected tags and immutable GitHub releases.
  • Replace tag-deletion instructions with rerunning the failed workflow for the same tag.
  • Direct maintainers to bump the version and create a new tag when the tagged commit is incorrect.
  • Document that the repository tag ruleset restricts creation and blocks updates or deletions of release tags.
docs/helm-chart.md
README.md
.github/workflows/release-chart.yml

Possibly linked issues


Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

@codecov

codecov Bot commented Oct 22, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (66beb4c) to head (6e7fdcb).

Additional details and impacted files
@@            Coverage Diff            @@
##               dev      #394   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           27        27           
  Lines         2510      2510           
=========================================
  Hits          2510      2510           
Flag Coverage Δ
test_unit 100.00% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@uniqueg
uniqueg marked this pull request as ready for review October 22, 2026 16:53

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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


Sourcery is free for open source - if you like our reviews please consider sharing them ✨

Comment thread README.md Resolved
@uniqueg
uniqueg merged commit ec846ac into dev Oct 22, 2026
15 checks passed
@uniqueg
uniqueg deleted the docs/chart-release-tags branch October 22, 2026 16:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant