Repository navigation
ci: absorb review artifact cleanup into release PRs - #664
Conversation
Co-authored-by: openhands <openhands@all-hands.dev>
all-hands-bot
left a comment
There was a problem hiding this comment.
This review was posted by an AI agent (OpenHands).
Reviewed the exact head 7778ba7a16d3367dee0a525beb8c16f0700cb585 against main and the repository guidance (AGENTS.md, .agents/skills/custom-codereview-guide.md). The change is this repository's adoption of the shared release-PR artifact cleanup (issue #663) and belongs here.
What I verified on this head:
.github/workflows/release.ymlopts intocleanup-pr-artifacts: trueon the existingrelease-please.ymlcaller — matches the issue's first acceptance criterion.pr-artifacts.ymlretires thecleanup-after-mergeproducer, theworkflow_dispatchtrigger, and theclosedtrigger type; the remaining notice job keeps the same API-only, no-checkout trust profile as before. The new notice keys on the PR's own added/modified/renamed-in.pr/files viapulls.listFilesinstead of head-tree presence, which fixes the inherited-base over-notification the issue targets.pr-description-check.ymldrops only the now-obsoleteautomation/remove-pr-artifactsbranch exemption;tests.ymlkeeps the release-tree guard and rewords remediation to refresh the release PR.- Guidance in
AGENTS.md,custom-codereview-guide.md, andpr-design-doc/SKILL.mdis updated consistently with the new flow. tests/test_pr_artifacts_workflow.pyexecutes the workflow's real embedded JavaScript (only REST transport replaced) and passes locally; all 8 CI checks are green on this head, and all four changed workflow YAMLs parse cleanly.
One non-blocking verification note: the shared workflow on OpenHands/release-actions@main does not yet declare the cleanup-pr-artifacts input (issue #22 is open), so merging this caller before that lands would fail release-please runs with an unexpected-input error. The PR body documents exactly this merge dependency and holds the change in draft; it is sequenced, not a defect on this head, and requires no change here. GitHub Actions evaluates pull_request_target checks against the base workflow file, so the skipped cleanup-after-merge check on this PR is expected and will disappear once merged.
No material correctness, security, or compatibility findings.
✅ APPROVED
|
🚀 Released in 1.33.0. |
HUMAN:
clean up the temporary .pr/ artefacts in the release PR
AGENT:
Shared implementation: OpenHands/release-actions#23. Merge that PR first.
Why
Closes #663. Adopt shared release-PR cleanup instead of opening a standalone cleanup PR after each product merge.
Summary
cleanup-pr-artifacts: trueon the existing Release Please caller..pr/additions/changes, not inherited base files.Issue Number
Closes #663. Shared implementation: OpenHands/release-actions#22.
How to Test
Local checks passed: 3 notice tests against the workflow’s actual embedded JavaScript, Ruff format/lint, actionlint and bash syntax checks.
Notice tests execute the real workflow JavaScript; only external GitHub REST transport is replaced. They cover added/modified/renamed-in evidence, removals/renames-out/lookalike paths, inherited base evidence, and updating an existing comment. No dependency versions changed. Live hosted release execution is not reproduced locally; shared-engine tests exercise the real release-please library and Git fixtures in release-actions.
Video/Screenshots
Nonvisual CI workflow migration. Regression commands/results above provide evidence; no application behavior changes.
Type
Notes
Merge dependency: release-actions must declare and implement
cleanup-pr-artifactsonmainbefore this caller merges. Until then, an unknown reusable-workflow input can fail validation. This PR remains draft pending that rollout dependency and the local issue’s readiness gate.Required tests, artifact uploads, release-tree checks and branch protections remain. No skip-CI markers or auto-merge. Existing cleanup PRs must be reconciled by a human once the replacement release PR is verified; this change does not merge/close those PRs or delete branches.
This PR was created by an AI agent (OpenHands/SmolPaws), using Claude Code for implementation and Codex for review, on behalf of Engel Nyst. The HUMAN text above is Engel’s supplied instruction.