Skip to content

ci: absorb review artifact cleanup into release PRs - #664

Merged
VascoSch92 merged 1 commit into
OpenHands:mainfrom
smolpaws:feat/release-pr-artifact-cleanup
Nov 12, 2026
Merged

VascoSch92 merged 1 commit into
OpenHands:mainfrom
smolpaws:feat/release-pr-artifact-cleanup

Conversation

@smolpaws

@smolpaws smolpaws commented Oct 30, 2026 •

Copy link
Copy Markdown
Contributor

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

  • Opt into cleanup-pr-artifacts: true on the existing Release Please caller.
  • Remove the competing post-merge producer, unused triggers and obsolete cleanup-branch exemption. Keep fork-safe notices for this PR’s own .pr/ additions/changes, not inherited base files.
  • Update existing contributor/agent guidance and guard remediation. Normal tests and release-tree guards remain enabled.

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

  • Docs / chore

Notes

Merge dependency: release-actions must declare and implement cleanup-pr-artifacts on main before 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.

Co-authored-by: openhands <openhands@all-hands.dev>
@github-actions github-actions Bot added the type: ci CI configuration changes label Oct 30, 2026
@enyst
enyst requested a review from all-hands-bot October 30, 2026 05:22

@all-hands-bot all-hands-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.

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.yml opts into cleanup-pr-artifacts: true on the existing release-please.yml caller — matches the issue's first acceptance criterion.
  • pr-artifacts.yml retires the cleanup-after-merge producer, the workflow_dispatch trigger, and the closed trigger 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 via pulls.listFiles instead of head-tree presence, which fixes the inherited-base over-notification the issue targets.
  • pr-description-check.yml drops only the now-obsolete automation/remove-pr-artifacts branch exemption; tests.yml keeps the release-tree guard and rewords remediation to refresh the release PR.
  • Guidance in AGENTS.md, custom-codereview-guide.md, and pr-design-doc/SKILL.md is updated consistently with the new flow.
  • tests/test_pr_artifacts_workflow.py executes 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

@VascoSch92
VascoSch92 marked this pull request as ready for review November 12, 2026 15:23
@VascoSch92
VascoSch92 merged commit b9c1b5d into OpenHands:main Nov 12, 2026
14 checks passed
@openhands-release-bot openhands-release-bot Bot added the released: 1.33.0 Shipped in 1.33.0 label Nov 17, 2026
@openhands-release-bot

Copy link
Copy Markdown
Contributor

🚀 Released in 1.33.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

released: 1.33.0 Shipped in 1.33.0 type: ci CI configuration changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ci: absorb temporary review artifact cleanup into release PRs

4 participants