Skip to content

ci: migrate releases to the shared release workflows - #206

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

furedea merged 4 commits into
mainfrom
ci/shared-release

Conversation

@furedea-agent

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

Copy link
Copy Markdown
Contributor

概要

release を furedea/reusable-workflows v1.2.0(1a18c887067769099a2ded00f0fe398c7bd371bc)の共有 workflow(release-pr.yml,release-publish.yml)に移します.release PR の token は PAT(RELEASE_PLEASE_TOKEN)から release GitHub App に切り替わります.

Refs furedea/reusable-workflows#11

変更

  • release.yml を追加:release-pr → build(この repo の cargo-dist ビルド,cargo test,smoke test)→ release-publish
  • release_please.yml と release_artifacts.yml を削除
  • codex_conformance.yml を codex-conformance.yml に rename(workflow 名は変更なし)
  • .ls-lint.yml:.github/workflows の .yml に kebab-case を許可
  • テスト,CONTRIBUTING.md,docs/DESIGN*.md,flake.nix のコメントを新しい構成に更新

利用者への影響

  • release asset(アーカイブ,checksum,shell installer)の名前は変わりません.
  • 証明(attestation)の builder identity は release-publish.yml(固定 SHA)になります.
  • release-please の config は draft: true と force-tag-creation: true を既に設定済みです.

前提とフォローアップ

  • variable RELEASE_APP_CLIENT_ID と secret RELEASE_APP_PRIVATE_KEY は,ユーザーが登録済みです.
  • "Enable release immutability" は,ユーザーが全 repository で有効化済みです.
  • マージ後,ユーザーが RELEASE_PLEASE_TOKEN を削除してください.

🤖 Generated with Claude Code

furedea and others added 3 commits November 9, 2026 17:29
Replace release_please.yml and release_artifacts.yml with release.yml.

release.yml calls release-pr.yml and release-publish.yml from
furedea/reusable-workflows v1.2.0 around the repository's own cargo-dist
build job. The release PR is opened with the release GitHub App instead of
RELEASE_PLEASE_TOKEN.

Also rename codex_conformance.yml to codex-conformance.yml (kebab-case).
Workflow names are unchanged.

Refs furedea/reusable-workflows#11

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Point the release distribution tests, the cargo-dist version comment, CONTRIBUTING and
DESIGN at release.yml and codex-conformance.yml.

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-09T09:10:12.783859Z 9129820 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.

Comment thread CONTRIBUTING.md Outdated
```bash
tag=agent-harness-v0.9.5
gh workflow run release_artifacts.yml --ref "$tag" -f tag_name="$tag"
tag=v0.9.10

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.

P2: This example tag doesn't match the tags Release Please actually creates. release-please-config.json sets package-name: agent-harness and leaves include-component-in-tag at its default, and CHANGELOG.md links to tags like agent-harness-v0.9.9...agent-harness-v0.9.10. If a maintainer copies this to recover a stuck draft, gh workflow run release.yml --ref v0.9.10 fails because that ref doesn't exist. The old example (agent-harness-v0.9.5) had the right format.

Suggested change
tag=v0.9.10
tag=agent-harness-v0.9.10

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Fixed in 9129820: the example now uses tag=agent-harness-v0.9.10, matching the tags Release Please creates (package-name with the default include-component-in-tag).

@github-actions

github-actions Bot commented Nov 9, 2026

Copy link
Copy Markdown
Contributor

Review summary

No blocking findings. 1 inline comment, P2 (0 P0, 0 P1).

  • P2, CONTRIBUTING.md:75: the recovery example uses tag=v0.9.10. Release Please creates tags with the component prefix (agent-harness-v0.9.10, per CHANGELOG.md and the config), so the documented gh workflow run ... --ref command would fail.

Checked, no problems found:

  • Job wiring in release.yml:
    • On a push to main, build runs only when release_created is true.
    • On workflow_dispatch, the skipped release-pr job does not block build, because of !cancelled().
    • release-publish runs only after build succeeds.
  • TAG_NAME falls back to the dispatch input when release-pr doesn't run.
  • Permissions are narrowed: build now only needs contents: read.
  • Tests are updated to match the new file names and pinned SHAs.

Not verified: I couldn't read the shared release-pr.yml and release-publish.yml at 1a18c88 from this environment. These points rely on the PR description and still need checking:

  • the artifact name it expects (release-artifacts)
  • that permissions: {} is enough for release-pr
  • that the tag-vs-commit and draft guards (which replace the removed Verify release target step) are really there

🤖 Generated with Claude Code

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Swish!

Reviewed commit: cebf6556a5

ℹ️ 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".

Release Please tags releases as agent-harness-vX.Y.Z, so the recovery command needs that ref.

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

@github-actions

github-actions Bot commented Nov 9, 2026

Copy link
Copy Markdown
Contributor

Review summary

No blocking findings. I found no P0–P3 issues that I could confirm.

What I checked in .github/workflows/release.yml:

  • Push path: release-pr sets tag_name. build checks out that tag, which is the release merge commit and therefore GITHUB_SHA. release-publish gets the same tag.
  • Recovery path (workflow_dispatch): release-pr is skipped. The !cancelled() guards still let build and release-publish run, and both fall back to inputs.tag_name.
  • Permissions: build now has only contents: read. Write, id-token and attestation permissions are limited to the pinned release-publish call.
  • Leftover references: none remain to release_artifacts.yml, release_please.yml, codex_conformance.yml or RELEASE_PLEASE_TOKEN. The workflow name: of codex-conformance is unchanged, so required-check names are unaffected.

Not verified, because I could not read furedea/reusable-workflows@1a18c88 from this environment:

  • The ref and published-release guards that this PR removes are now assumed to run in release-publish.yml, as CONTRIBUTING.md says. Please confirm that the shared workflow rejects a dispatch whose ref is not the tag, and rejects a release that is already published, before it uploads anything.
  • The artifact name release-artifacts must match the name release-publish.yml downloads.
  • release-pr is called with permissions: {}. This only works if the nested jobs request no GITHUB_TOKEN permissions; otherwise the run fails at startup.

🤖 Generated with Claude Code

@furedea

furedea commented Nov 9, 2026

Copy link
Copy Markdown
Owner

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Can't wait for the next one!

Reviewed commit: 912982003a

ℹ️ 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 5b28083 into main Nov 9, 2026
34 of 36 checks passed
@furedea
furedea deleted the ci/shared-release branch November 9, 2026 09:43
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