Skip to content

ci: release through the shared release workflows - #16

Merged
furedea merged 2 commits into
mainfrom
ci/shared-release
Nov 9, 2026
Merged

furedea merged 2 commits into
mainfrom
ci/shared-release

Conversation

@furedea-agent

@furedea-agent furedea-agent Bot commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor

概要

release を reusable-workflows v1.2.0 の共有 workflow(release-pr.yml,release-publish.yml)に移行します.

  • release.yml を追加し,release_please.yml と release_artifacts.yml を削除
  • build ジョブは rater 側に残し,cmd/rater/version.txt とタグの一致検査,テスト,4 アーカイブと checksums.txt の作成,smoke test を移した
  • release asset(アーカイブと checksums)はすべて 1 つの workflow artifact で共有側に渡す
  • release PR は PAT(RELEASE_PLEASE_TOKEN)ではなく release GitHub App で作る
  • 共有 workflow は @1a18c887067769099a2ded00f0fe398c7bd371bc # v1.2.0 に固定
  • release-please の設定は変更なし(draft と force-tag-creation は設定済み)

影響

  • asset 名,checksums.txt,証明は従来どおり.証明の builder identity は release-publish.yml(固定 SHA)になる
  • ci.yml と job 名は変更なし.required check への影響なし

前提

  • "Enable release immutability" は有効化済み(ユーザーが確認)

マージ後のフォローアップ(ユーザー作業)

  • RELEASE_PLEASE_TOKEN secret を削除する

Refs furedea/reusable-workflows#11

🤖 Generated with Claude Code

furedea and others added 2 commits November 9, 2026 17:28
Replace release_please.yml and release_artifacts.yml with release.yml, which
calls release-pr.yml and release-publish.yml of reusable-workflows v1.2.0
around rater's own build job. The build job keeps the version.txt check, the
tests, the four archives, checksums.txt and the smoke test, and uploads every
release asset as one workflow artifact. The release PR is opened by the release
GitHub App instead of RELEASE_PLEASE_TOKEN.

Refs furedea/reusable-workflows#11

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@furedea

furedea commented Nov 9, 2026

Copy link
Copy Markdown
Owner

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 9, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-09T08:35:43.434644Z 1806a5c Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.


concurrency:
group: ${{ github.workflow }}-${{ inputs.tag_name }}
group: release-${{ github.repository }}

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2: With one repo-wide concurrency group and cancel-in-progress: false, GitHub keeps only one pending run per group. A newer queued run cancels the older pending one. This PR makes that more likely to cause trouble in two ways:

  • The run that holds the lock is now much longer. A release run now holds the lock for the full build (tests, 4 cross-builds, publish). Before, the release-please job finished in seconds and the artifact build ran in a separate workflow with a per-tag group.
  • A cancelled run is no longer covered by the next one. Suppose the release-PR merge push is pending and gets cancelled by a later push. The later run's release-please can still create the release (release_created=true). But that run's GITHUB_SHA is the later commit, not the tagged merge commit. Under the "tag must point to the commit of the run" check that the README describes, publish fails, and the release stays a draft until someone dispatches manually. Before, the artifact run was always started on the tag ref, so this mismatch could not happen.
  • Recovery dispatches can be dropped. A recovery workflow_dispatch that is waiting behind a push run gets silently cancelled if another push to main arrives.

Suggested fix: scope the group per event/ref, e.g. release-${{ github.ref }}. Push runs on main stay serialized, and a dispatch on a tag gets its own group.

@github-actions

github-actions Bot commented Nov 9, 2026

Copy link
Copy Markdown

Review summary

Blocking findings: 0 (P0: 0, P1: 0, P2: 1)

  • P2: .github/workflows/release.yml:21. The single repo-wide concurrency group has cancel-in-progress: false, so a newer queued run cancels the older pending one. Release runs now hold the lock for the whole build. If the release-PR merge push is cancelled while pending, a later push can create the release with a GITHUB_SHA that is not the tagged commit, which leaves the draft stuck. A recovery dispatch can also be dropped silently. Suggested fix: scope the group by github.ref.

Not verified: I could not read the pinned release-pr.yml and release-publish.yml at 1a18c88; access was not granted in this environment. This PR removes the rater-side checks that the run is on the tag ref, that HEAD equals GITHUB_SHA, and that the release is still a draft. I am trusting the README that release-publish.yml now does these checks before it uploads or publishes. Please confirm it also expects the artifact name release-artifacts, and that release-pr.yml works with permissions: {} (App token only).

The rest looks right to me:

  • The needs / !cancelled() gating works for both push and dispatch runs.
  • On push, the tag name comes from release-pr's tag_name output, and on dispatch it falls back to inputs.tag_name.
  • The build and smoke-test steps are unchanged.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Keep them coming!

Reviewed commit: 1806a5cf2b

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@furedea
furedea merged commit 9af6307 into main Nov 9, 2026
19 checks passed
@furedea
furedea deleted the ci/shared-release branch November 9, 2026 08:54
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