Repository navigation
ci: adopt release-please via shared release-actions - #1496
Conversation
Standardize agent-canvas releases on the org-wide release-please
automation (OpenHands/release-actions), matching typescript-client and
OpenHands/OpenHands.
Adds the three caller workflows:
- release.yml release-please on push to main / release/**
- pr.yml Conventional-Commit title lint + type: labels
- release-ready.yml draft release PR -> "Ready for review" gate
(Slack alert to #proj-agent-canvas + optional tests)
Adds the release-please state files: release-please-config.json
(node, draft PRs, extra-files), .release-please-manifest.json,
.github/release.yml (changelog categories), version.txt. Manifest is
seeded at 1.0.0 (the current GA release, v1.0.0 shipped 2026-06-15).
extra-files keeps the non-package.json version pins in lockstep:
config/defaults.json ($.versions.agentCanvas) and the README docker
example. The node release-type already bumps package.json and
package-lock.json.
Corrects stale on-main version refs (package.json rc.6,
config/defaults.json + README rc.11) to the real released 1.0.0, so all
pins share a single source of truth.
Removes create-release.yml: release-please now owns tag + GitHub Release
creation. npm-publish.yml and docker.yml are unchanged - they trigger on
the v* tags release-please still produces (pushed with the release App
token so tag-triggered workflows fire).
Co-authored-by: smolpaws <engel@enyst.org>
The docs-version-sync test also checks README.windows.md, which still pinned 1.0.0-rc.11. Update both its docker image refs to the released 1.0.0 and add it to release-please extra-files (with the x-release-please-version annotation) so future bumps keep it in lockstep alongside README.md and config/defaults.json. Co-authored-by: smolpaws <engel@enyst.org>
Two robustness fixes after confirming agent-canvas's release conventions: - include-v-in-tag: true (explicit). agent-canvas tags are vX.Y.Z (v1.0.0, v1.0.0-rc.12), and npm-publish.yml + docker.yml trigger on push tags 'v*'. release-please's node default already adds the v, but pin it explicitly so a default change can't silently drop the prefix and break tag-triggered publishing. (Matches typescript-client, which also ships v-prefixed tags; differs from OpenHands/OpenHands, which sets include-v-in-tag:false for its no-v scheme.) - last-release-sha pinned to the v1.0.0 release commit (7b9c17e). v1.0.0 is a real, published release (2026-06-15; npm latest). This tells release-please the first managed release starts from there, so its first run scans only post-1.0.0 commits instead of walking the whole history. Co-authored-by: smolpaws <engel@enyst.org>
Per AI review: version.txt would never be updated and nothing consumes it. The README's "four state files" guidance assumes the `simple` release-type (which release-actions itself uses, where version.txt is the canonical version source). agent-canvas uses `release-type: node`, where package.json is the source of truth — so version.txt is redundant and not auto-bumped. The other node adopters (typescript-client, OpenHands/OpenHands) ship no version.txt either. Remove it rather than keep a file that silently goes stale. Co-authored-by: smolpaws <engel@enyst.org>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
PR Artifacts Notice This PR contains a
|
|
✅ Review complete. This review was performed through OpenHands Cloud Automation. You can log in and view the conversation here. |
all-hands-bot
left a comment
There was a problem hiding this comment.
🟡 Taste Rating: Acceptable — the release-please adoption mostly follows the shared pattern, but one new workflow currently points at a reusable workflow that does not exist on the referenced branch.
[CRITICAL ISSUES]
- [.github/workflows/release-ready.yml, Line 15] Broken reusable workflow dependency:
OpenHands/release-actions/.github/workflows/release-ready.yml@mainis currently not present inOpenHands/release-actions(.github/workflowsonly haspr-title.yml,pr.yml,release-please.yml, andrelease.yml). The referenced upstream PROpenHands/release-actions#13is still open, so merging this first would leave the release-ready gate unable to start.
[TESTING GAPS]
- [PR description / CI] The PR Description Check is currently failing because the
HUMAN:section has no short human-written note and the "A human has tested these changes" checkbox is still unchecked. That needs to be fixed before merge independently of the workflow issue above.
[RISK ASSESSMENT]
- [Overall PR]
⚠️ Risk Assessment: 🔴 HIGH
This changes the release/publish control plane, introducespull_request_targetworkflow callers, and inherits release/Slack secrets for the ready-for-review gate. Those are appropriate areas for human release-owner scrutiny even when the YAML is small. The immediate blocker is mechanical: the reusable workflow reference must exist on the referenced ref before this can safely merge.
Recommendation: Do not auto-merge. Have a human release maintainer verify the ordering with OpenHands/release-actions#13 and the first release-please run after this lands.
VERDICT:
❌ Needs rework: the release-ready workflow target must be available on OpenHands/release-actions@main (or this caller should be removed/deferred) before merging.
KEY INSIGHT:
The release-please configuration is simple, but the new ready-for-review gate has an external workflow dependency that is not merged yet.
Improve this review? If any feedback above seems incorrect or irrelevant to this repository, you can teach the reviewer to do better:
- Add a
.agents/skills/custom-codereview-guide.mdfile to your branch (or edit it if one already exists) with the/codereviewtrigger and the context the reviewer is missing (e.g., "Security concerns about X do not apply here because Y"). See the customization docs for the required frontmatter format.- Re-request a review - the reviewer reads guidelines from the PR branch, so your changes take effect immediately.
- When your PR is merged, the guideline file goes through normal code review by repository maintainers.
Resolve with AI? Install the iterate skill in your agent and run
/iterateto automatically drive this PR through CI, review, and QA until it's merge-ready.Was this review helpful? React with 👍 or 👎 to give feedback.
This review was generated by an AI agent (OpenHands) on behalf of the user through OpenHands Automation. View conversation
all-hands-bot
left a comment
There was a problem hiding this comment.
❌ QA Report: FAIL
Release-please itself starts up and would draft a release PR with the expected version file updates, but the new release-ready gate is wired to a reusable workflow that does not exist on OpenHands/release-actions@main.
Does this PR achieve its stated goal?
Partially, but not fully. The PR does add release-please configuration and the release-please CLI can consume it: a dry-run against the PR branch would create a draft release PR and update package.json, package-lock.json, config/defaults.json, both README files, and the manifest. However, the PR also explicitly claims to add a Ready-for-review release gate with Slack notification, and that workflow cannot run because its reusable workflow path returns GitHub API 404.
| Phase | Result |
|---|---|
| Environment Setup | ✅ Node/GitHub CLI available; changed JSON/YAML parsed successfully |
| CI Status | |
| Functional Verification | ❌ Release-please config exercised successfully, but release-ready workflow resolution fails |
Functional Verification
Test 1: Version drift reset points users at the real GA release
Step 1 — Establish baseline on origin/main:
Ran git show origin/main:... checks:
Base branch values:
package.json=1.0.0-rc.6
config.defaults.agentCanvas=1.0.0-rc.11
README image=ghcr.io/openhands/agent-canvas:1.0.0-rc.11
This confirms the documented/configured versions were drifted across stale RC values.
Step 2 — Apply the PR's changes:
Checked the PR worktree at 5a36d950097fb4d0b3a5691e249b0ae6628d19d9.
Step 3 — Re-run with the PR in place and verify external artifacts:
Ran the same local checks plus registry/release lookups:
PR branch values:
package.json=1.0.0
config.defaults.agentCanvas=1.0.0
README image=ghcr.io/openhands/agent-canvas:1.0.0
npm package: 1.0.0
npm latest: 1.0.0
GitHub release: v1.0.0 false false
Docker manifest:
docker_manifest_exit=0
mediaType=application/vnd.oci.image.index.v1+json
manifests=4
architectures=amd64,arm64,unknown
This shows the PR resets the stale values to the existing non-draft/non-prerelease v1.0.0, which exists on npm and GHCR.
Test 2: Release-please can consume the new manifest/config and plan a release PR
Step 1 — Establish baseline:
Ran presence checks against origin/main:
Base release-please files:
release-please-config.json=absent
.release-please-manifest.json=absent
.github/workflows/release.yml=absent
.github/workflows/pr.yml=absent
.github/workflows/release-ready.yml=absent
This confirms the release-please automation entrypoints did not exist on the base branch.
Step 2 — Apply the PR's changes:
Used the PR branch configuration files.
Step 3 — Exercise release-please against the PR branch:
Ran:
npx --yes release-please@latest release-pr --repo-url OpenHands/agent-canvas --target-branch feat/adopt-release-please --token "$GITHUB_TOKEN" --config-file release-please-config.json --manifest-file .release-please-manifest.json --dry-runObserved the release-please engine complete with exit code 0 and plan a draft release PR:
Would open 1 pull requests
fork: false
title: chore(feat/adopt-release-please): release 2.0.0
branch: release-please--branches--feat/adopt-release-please--components--agent-canvas
draft: true
updates: 8
✔ updating from 1.0.0 to 2.0.0
package-lock.json
package.json
config/defaults.json
README.md
README.windows.md
.release-please-manifest.json
This confirms the release-please config is syntactically usable and that extra-files are recognized by the actual release-please CLI. I used dry-run because creating the PR/tag/release for real would mutate the upstream repository.
Test 3: Reusable workflow references resolve on OpenHands/release-actions@main
Step 1 — Establish baseline:
The base branch has no release-ready.yml caller, so there was no Ready-for-review gate to resolve.
Step 2 — Apply the PR's changes:
The PR adds .github/workflows/release-ready.yml pointing at OpenHands/release-actions/.github/workflows/release-ready.yml@main.
Step 3 — Verify the referenced reusable workflows via GitHub API:
Ran:
for wf in pr-title.yml release-please.yml release-ready.yml; do
gh api "repos/OpenHands/release-actions/contents/.github/workflows/$wf" --jq '.name'
doneObserved:
pr-title.yml: pr-title.yml
release-please.yml: release-please.yml
release-ready.yml: {
"message": "Not Found",
"documentation_url": "https://docs.github.com/rest/repos/contents#get-repository-content",
"status": "404"
}
missing (exit 1) gh: Not Found (HTTP 404)
This means the PR title and release-please callers resolve, but the new release-ready workflow will fail when GitHub tries to load the called workflow.
Unable to Verify
I did not run a real end-to-end release because that would require merging to main/release/**, minting the release App token, pushing a real tag, creating a GitHub Release, and potentially triggering npm/GHCR publishing. Instead, I exercised the release-please engine in dry-run mode and verified reusable workflow resolution with the GitHub API.
Issues Found
- 🟠 Issue:
.github/workflows/release-ready.ymlreferencesOpenHands/release-actions/.github/workflows/release-ready.yml@main, but that reusable workflow does not exist onOpenHands/release-actions@main(GitHub API returns 404). The Ready-for-review gate and Slack alert claimed by the PR will not run until this reference points at an existing workflow or the shared workflow is merged first.
This QA review was created by an AI agent (OpenHands) on behalf of the user.
✅ Mock-LLM E2E Tests60/60 passed Commit: Details
Posted by the Mock-LLM E2E workflow · results are deterministic (scripted LLM responses) |
|
(HUMAN: this is smolpaws below, undercover 🫠) Thanks QA bot — solid run, and the dry-run is genuinely reassuring. Two findings, addressed: 1.
So the ordering is: merge release-actions#13 first, then the three consumer PRs. That matches your own recommendation ("have a human release maintainer verify the ordering with release-actions#13"). Removing the caller from only agent-canvas would make it inconsistent with the other two, so I'm keeping it and flagging the ordering for @jlav / @enyst rather than changing code. Note GitHub only resolves the 2. The dry-run planned 3. PR-description gate. Yep — that's a deliberate human attestation (note + "human tested" checkbox) left for @enyst; I won't self-tick it. Net: no code change from this review. The one real blocker is cross-repo merge ordering (release-actions#13 first), which is a maintainer coordination point. |
✅ Mock-LLM Docker E2E Test Results60/60 passed Commit: Details
Posted by the Mock-LLM E2E workflow · results are deterministic (scripted LLM responses) |
|
@OpenHands Merge main and fix conflicts. Then take a step back, clone yourself typescript-client, and take a look in its history when it added this similar adoption. Compare that commit with this PR. Do you think this is improved, similar, improvable? Respond on github. |
|
I'm on it! enyst can track my progress at all-hands.dev |
Co-authored-by: openhands <openhands@all-hands.dev>
|
@enyst done.
I also cloned
My read: this PR is similar in the core design and slightly improved for this repo.
The one small thing I would still call “improvable” is mostly documentation hygiene now that This comment was created by an AI agent (OpenHands) on behalf of @enyst. |
The pull request looks good to me. Thank you very much!
|
🚀 Released in v1.2.0. |
HUMAN:
This PR proposes a little more step to release standardization.
Sorry for the noise! My agent discovered my credentials and went off to babysit to completion, and in the meantime it knew it had to ask you for review so it… kept asking. 😓
AGENT:
I cannot run agent-canvas's release end-to-end from a PR (it would require merging to
mainand cutting a real release). Instead I validated the configuration statically and by cross-checking against the two repos that already run this exact automation in production:mainmerge); both JSON files parse (python3 -m json.tool).release.ymlandpr.ymlare byte-for-byte the typescript-client callers;release-ready.ymlmatches the consumer pattern documented inrelease-actionsPR [Phase 3] i18n namespace scoping for library consumption #13, withproduct-name: Agent Canvas/slack-channel: #proj-agent-canvas.extra-filestargets verified against the real files:config/defaults.jsonhas$.versions.agentCanvas; the README docker line carries the# x-release-please-versionannotation; thenoderelease-type coverspackage.json+package-lock.json.npm-publish.ymlvalidatespackage.json== release tag, anddocker.ymlreadsnode -p "require('./package.json').version". release-please keepspackage.jsonin lockstep with the tag it pushes, so both keep working untouched. The tag is pushed with the org release App token, sov*-tag-triggered workflows still fire (aGITHUB_TOKENpush would be suppressed).npm view+ the fetched Git tags confirmv1.1.0is now the current GA / npmlatest. After mergingmain, the manifest is seeded at1.1.0andlast-release-shapoints at thev1.1.0tag commit.Why
agent-canvas releases are currently manual — a human hand-pushes a
v*tag to arel-X.Y.Zbranch to firecreate-release.yml,npm-publish.yml, anddocker.yml. The org is standardizing every active repo onto the shared release-please automation inOpenHands/release-actions(already adopted bytypescript-client#234 andOpenHands/OpenHands#14987). This PR brings agent-canvas onto that standard. It also prevents the real version-drift problem this repo already hit: release state lived acrosspackage.json,config/defaults.json, README Docker examples, npm, GitHub releases, and Docker tags. After merging currentmain, this PR now starts release-please from the actually shippedv1.1.0release.Summary
release.yml(release-please on push tomain/release/**),pr.yml(Conventional-Commit title lint +type:labels),release-ready.yml(draft release PR → Ready for review gate → Slack alert to#proj-agent-canvas+ optional release tests).release-please-config.json(node,draft-pull-request: true,extra-files,last-release-sha),.release-please-manifest.json(seeded1.1.0), and.github/release.yml(changelog categories).extra-fileskeeps the non-package.jsonpins in lockstep:config/defaults.json($.versions.agentCanvas) and the README docker example.1.1.0, after mergingmain:package.json,package-lock.json,config/defaults.json, README Docker examples,.release-please-manifest.json, andlast-release-sha.create-release.yml— release-please now owns tag + GitHub Release creation (matching the other adopters).npm-publish.yml/docker.ymlare unchanged.How to Test
This can't be exercised before merge (release-please only acts on the real
main/release branches). To verify after merge:python3 -m json.tool release-please-config.jsonand confirmextra-filespaths exist (config/defaults.json→$.versions.agentCanvas; README annotations present). Confirm release-please is seeded at the current shipped release (1.1.0).mainshould open a draftchore(main): release X.Y.ZPR. Confirm it's a draft.#proj-agent-canvasand the PR getsrelease: ready.vX.Y.Z, create the GitHub Release, and triggernpm-publish.yml+docker.ymlas before.Issue Number
N/A — part of the #proj-release standardization effort.
Type
Notes
One-time repo settings (needs a maintainer — not in this PR). release-please reads the squash-merge commit title:
Review: @jlav — you own the release-actions design; two judgment calls I'd value your take on: (1) removing
create-release.ymlvs keeping it as a guarded no-op, and (2) seeding the manifest at the current shipped release (1.1.0after themainmerge) while lettingextra-filesown the non-package.jsonversion surfaces going forward.Opened by smolpaws 🐾 on behalf of @enyst.
🐳 Docker images for this PR
• GHCR package: https://github.com/OpenHands/agent-canvas/pkgs/container/agent-canvas
ghcr.io/openhands/agent-canvasghcr.io/openhands/agent-server:1.33.0-pythonopenhands-automation==1.1.43d0edaa0d7e33c8f772805f7b9e06e42ada6ef8bPull (multi-arch manifest)
# Multi-arch manifest — Docker automatically pulls the correct architecture docker pull ghcr.io/openhands/agent-canvas:sha-3d0edaaRun
All tags pushed for this build
About Multi-Architecture Support
sha-3d0edaa) is a multi-arch manifest supporting both amd64 and arm64sha-3d0edaa-amd64) are also available if needed