Skip to content

ci: align the release workflow - #572

Merged
uniqueg merged 4 commits into
devfrom
ci/568-release-workflow
Nov 12, 2026
Merged

uniqueg merged 4 commits into
devfrom
ci/568-release-workflow

Conversation

@uniqueg

@uniqueg uniqueg commented Nov 12, 2026 •

Copy link
Copy Markdown
Member

Summary

Aligns the release workflow with the org's pattern:

  • prepare checks that the tag is annotated and has a signature that GitHub verified (via the API), and checks the curated notes docs/releases/<version>.md, the tags and existing releases with the shared action elixir-cloud-aai/.github/actions/publish-release (v1.1.0, check-only), before anything is staged.
  • publish creates the GitHub release with the same action: curated notes, then GitHub's generated notes under ## Commits and the Full Changelog line; --verify-tag, and the tag must point to the built commit.
  • The release docs (Contributing page, "Releases") describe the curated notes (format, example), the new checks and how to re-run.

Note: the issue mentions creating a draft and publishing it at the end. The shared action (v1.1.0) creates the release in one step and refuses to run if a draft exists; with the release created last, after staging, this matches what the org's other repos do through the same action.

Closes #568

Verification

  • actionlint (actionlint-py) on release.yml: no findings.
  • zizmor (offline) on release.yml: no findings.
  • The workflow itself runs only on tags; no fork dry run yet (see open questions).

Review

Full review (release workflow): adversarial and quality reviewers, two rounds. Fixed: wrong description of a draft step, re-run behaviour (use "Re-run failed jobs"), draft releases block prepare, notes example and link to the action's rules, single tag lookup and the reason for an unverified signature, wrapping.

Declined review findings

  • The first API failure in the tag check is reported as "not annotated" (low): the step fails closed either way.

Open questions

None for this PR. Before the next release: the next version needs docs/releases/<version>.md in the version bump PR; a fork dry run on a test tag would exercise the new steps end to end.

🤖 Generated with Claude Code

https://claude.ai/code/session_011FSoqMpmDCfbACLj3uy6xV

Summary by Sourcery

Align the release workflow with the organization’s verified-tag checks and shared release publishing process.

Enhancements:

  • Align the release workflow with the organization’s signed-tag validation and shared release-action process.
  • Validate curated release notes, tags, and existing releases before staging packages, then publish the verified tag with curated and generated changelog notes after staging.
  • Document the curated release-note format, release checks, signing requirements, and release retry procedure.

Documentation:

  • Update release documentation with curated notes requirements, signature verification, shared release publishing, and rerun guidance.

uniqueg and others added 3 commits November 12, 2026 09:10
Check that the release tag is annotated and has a signature that GitHub
verified, check the curated release notes (docs/releases/<version>.md)
in prepare, and create the GitHub release with the shared
publish-release action of elixir-cloud-aai/.github (draft with
--verify-tag, curated notes, then the generated notes under Commits,
published last). Document the notes and the new checks.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_011FSoqMpmDCfbACLj3uy6xV
Address review findings: read the tag ref once and report why a
signature isn't verified, describe the shared action's behaviour
accurately (no draft; re-runs pass only for matching releases; use
"Re-run failed jobs"), add an example of curated notes and link the
action's rules, and re-wrap the workflow header.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_011FSoqMpmDCfbACLj3uy6xV
@sourcery-ai

sourcery-ai Bot commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor

Reviewer's Guide

Configuration

Review the release workflow’s tag-signature verification and pre-staging checks, then the shared action used to create the release after package staging.

  • .github/workflows/release.yml L1-14, L65-85, L292-306 (+2 small edits)

Documentation

Review the Contributing guide updates together: they explain the new release checks, curated-notes format and example, signing procedure, and publication rerun behavior.

  • apps/documentation/pages/docs/contributing.mdx L74-83, L90-119, L127-133 (+1 small edits)

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

@read-the-docs-community

read-the-docs-community Bot commented Nov 12, 2026 •

Copy link
Copy Markdown

Documentation build overview

📚 cloud-components | 🛠️ Build #35834295 | 📁 Comparing 626e36e against latest (8c24d9b)

  🔍 Preview build  

1 file changed
± docs/contributing/index.html

@codecov

codecov Bot commented Nov 12, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 71.40%. Comparing base (8c24d9b) to head (626e36e).

Additional details and impacted files
@@           Coverage Diff           @@
##              dev     #572   +/-   ##
=======================================
  Coverage   71.40%   71.40%           
=======================================
  Files          23       23           
  Lines        5655     5655           
  Branches      199      199           
=======================================
  Hits         4038     4038           
  Misses       1610     1610           
  Partials        7        7           

☔ 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.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@uniqueg
uniqueg marked this pull request as ready for review November 12, 2026 08:50
@uniqueg
uniqueg requested a review from anuragxxd as a code owner November 12, 2026 08:50
@sourcery-ai

sourcery-ai Bot commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor

Linked issues

Checked at commit 626e36e

#568 ci: align the release workflow · 5 of 7 met

# Requirement Status Notes
1 Check that the release tag is annotated and has a signature verified by GitHub. ✅ Met The prepare job checks the tag ref and GitHub's signature verification result through the API.
2 Check that the tag is on main. 🟡 Partly met The workflow checks that the tag is on dev, not main; the docs describe fast-forwarding main only after the release.
3 Check that CI passed for the tagged commit. ✅ Met The prepare job requires a successful CI push run for the release commit.
4 Create the release as a draft with --verify-tag, then publish the draft at the end. 🟡 Partly met The release is created last and the shared action uses --verify-tag, but it creates the release directly rather than as a draft to publish afterward.
5 Put curated notes first, followed by generated notes under ## Commits and the Full Changelog line. ✅ Met The shared action is used for publication, and the docs describe this notes order and format.
6 Use the shared steps from elixir-cloud-aai/.github once they exist. ✅ Met The pinned publish-release action is used for both the prepare check and release creation.
7 Keep curated notes in the repository and update the release docs. ✅ Met The workflow reads docs/releases/.md, and the Contributing page documents the notes format and release procedure.

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Hey - I've found 3 issues

Prompt for AI Agents
Please address the comments from this code review:

## Individual Comments

### Comment 1
<location path=".github/workflows/release.yml" line_range="133-137" />
<code_context>
+      # the Contributing page of the documentation), the tags and the
+      # existing releases, before anything is published
+      - name: Check the release notes
+        uses: elixir-cloud-aai/.github/actions/publish-release@31f22fccc1f3c597ed7c1d1f75b2f85522155348 # v1.1.0
+        with:
+          notes: docs/releases/${{ steps.version.outputs.version }}.md
+          commit: ${{ github.sha }}
+          check-only: "true"
+
       - name: Use Node.js 24.x
</code_context>
<issue_to_address>
**Release check can go stale**

When a maintainer or another workflow creates a draft or mismatched release for the tag after the `prepare` check passes but before `publish` runs, the `npm` job can stage package versions before `publish-release` refuses to create the GitHub release, leaving staged versions without a release for that tag.

Prevent out-of-band release creation for workflow-managed tags during a release run, or add a reservation mechanism that makes the check and subsequent staging/publishing mutually exclusive.

Also at `.github/workflows/release.yml:302-305`.
</issue_to_address>

### Comment 2
<location path=".github/workflows/release.yml" line_range="3" />
<code_context>
-# `dev` and that CI passed for its commit, and lints; `npm` builds the
+# Releases from version tags (see "Releases" in the Contributing page of
+# the documentation): after the version bump pull request, a maintainer pushes a signed `v<version>` on
+# `dev` (tags on other branches fail). `prepare` checks the tag (annotated,
+# with a signature that GitHub verified), the versions of the packages and of
+# the citation metadata (`CITATION.cff`), that the tag is on `dev`, that CI
</code_context>
<issue_to_address>
**Require tags on main**

The issue asks for the release tag to be on main. The workflow still documents and checks dev as the required branch.
</issue_to_address>

### Comment 3
<location path=".github/workflows/release.yml" line_range="302" />
<code_context>
+      # the Contributing page of the documentation), the tags and the
+      # existing releases, before anything is published
+      - name: Check the release notes
+        uses: elixir-cloud-aai/.github/actions/publish-release@31f22fccc1f3c597ed7c1d1f75b2f85522155348 # v1.1.0
+        with:
+          notes: docs/releases/${{ steps.version.outputs.version }}.md
</code_context>
<issue_to_address>
**Create and publish a draft**

The issue asks for a draft release created with --verify-tag and published at the end. This action creates the release directly, without a draft or a later publish step; the PR notes this difference.
</issue_to_address>

Sourcery assessment

Needs a human reviewer. 3 findings to address first, and the new tag-signature check controls which tagged commits can proceed to release, and the pinned shared action creates a public GitHub release. If the check accepts an unverified tag, reverting the workflow would not undo a release already created, although that release can be removed or corrected.

Blocking findings: .github/workflows/release.yml:137, .github/workflows/release.yml:3, .github/workflows/release.yml:302


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

Comment thread .github/workflows/release.yml Resolved
Comment thread .github/workflows/release.yml Resolved
Comment thread .github/workflows/release.yml Resolved
@uniqueg
uniqueg merged commit 1fa86b8 into dev Nov 12, 2026
19 checks passed
@uniqueg
uniqueg deleted the ci/568-release-workflow branch November 12, 2026 10:13
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.

ci: align the release workflow

1 participant