Skip to content

ci(release): open the homebrew-tap PR in the tap's required format and verify checksums - #1384

Merged
ajianaz merged 1 commit into
developfrom
ci/release-homebrew-pr-format
Oct 8, 2026
Merged

ajianaz merged 1 commit into
developfrom
ci/release-homebrew-pr-format

Conversation

@ajianaz

@ajianaz ajianaz commented Oct 8, 2026

Copy link
Copy Markdown
Collaborator

What

In the update-tap job of release.yml:

  • the tap commit message and PR title are chore: update formula for uteke X.Y.Z (Conventional Commits, as the tap's pr-checks.yml requires);
  • the PR body is written to a file and has ## What, ## Why, ## Testing (the old inline string sent a literal \n\n and had none of the headers);
  • new step Verify formula checksums against the release: every url/sha256 pair of the generated formula must point at /download/<tag>/, be listed in the published checksums-sha256.txt and carry the same SHA256, otherwise the job fails before any PR is opened.
    The PR stays human-merged (no auto-merge).

Why

#1383: the automated tap PR failed Conventional Commits and PR Description on every release (v0.19.1: #2 closed and replaced by hand; v0.20.0: homebrew-tap#4 edited manually), and its "checksums verified" sentence was only asserted.

Testing

Not run on a real release (needs a tag), so each step was extracted from the YAML and executed locally:

  • verify step against the real v0.20.0 formula and checksums-sha256.txt: exit 0; with one SHA256 altered: exit 1 with an ::error::; with a wrong tag (v0.21.0): exit 1; with an asset missing from the checksums file: exit 1.
  • create step run against a local bare git remote and a fake gh: commit message and --title are chore: update formula for uteke 0.20.0, branch chore/formula-v0.20.0, --body-file contains the three headers; the title and branch pass the tap's own regexes.
  • YAML parses; both scripts pass bash -n.
  • Not covered: the real gh pr create against the tap, and the tap's Cora check, which fails with "empty result" on formula-only diffs independently of this change (follow-up for homebrew-tap, noted in ci(release): homebrew-tap PR opened by the release workflow fails the tap's own PR checks #1383).

Fixes #1383

🤖 Generated with Claude Code

…d verify checksums

The tap PR created by the release workflow failed the tap's Conventional
Commits and PR Description checks on every release (title 'uteke vX: update
formula', body without ## What/## Why/## Testing and with literal \n). Use
'chore: update formula for uteke X.Y.Z' for commit and title, pass the body
from a file with the three headers, and add a step that fails the job when a
formula URL does not point at the release or a SHA256 differs from the
published checksums-sha256.txt.

Fixes #1383

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@ajianaz ajianaz added bug Something isn't working scope:infra CI/CD, tooling labels Oct 8, 2026
@github-actions

github-actions Bot commented Oct 8, 2026

Copy link
Copy Markdown

🔍 Cora AI Code Review

✅ No issues found. Code looks good!


Review powered by cora-code · BYOK · MIT

@ajianaz
ajianaz merged commit de305c8 into develop Oct 8, 2026
15 checks passed
@ajianaz
ajianaz deleted the ci/release-homebrew-pr-format branch October 8, 2026 07:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working scope:infra CI/CD, tooling

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ci(release): homebrew-tap PR opened by the release workflow fails the tap's own PR checks

1 participant