Repository navigation
fix(ci): link only S3-only s9pks in the release body - #4749
Conversation
The Downloads section listed an S3 URL for every s9pk, including the ones attached to the release. Those S3 copies are garbage-collected once a version is superseded, leaving release notes that point at AccessDenied while the working file sits in the release's own assets (Start9Labs/electrs-startos#102). List only the s9pks too large for a GitHub asset, whose S3 copy is never collected, and omit the section when there are none. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
helix-white
left a comment
There was a problem hiding this comment.
Approved at 44a116eda; the head merges cleanly with current master. No correctness regressions found.
The release body reuses .gh_release_files, the existing attachment list, rather than duplicating the 2 GiB size rule. Downloads now contains S3 links only for unattached packages and disappears when every package is attached. An absent list correctly handles an all-oversized release. The generated Forgejo workflow matches; uploads, mirrors, release notes, and checksums are otherwise unchanged.
This fixes subsequent release runs; it does not rewrite existing release bodies. Open PR #4286 embeds these jobs into Gitea workflows and will need regeneration after incorporating this change.
Implementation diff: +12 / −4 lines in 2 files (excludes lockfiles, tests, docs, release notes, and changelog).
Verification evidence: the author reports make package-ci-test passing 74/74 and local selection checks with and without the attachment list. That suite checks generated-workflow drift but does not exercise the changed shell rendering end to end. No end-to-end release run is recorded, and I ran no builds or tests during review. Prettier, Conflict Markers, and Dependency Licenses passed. Changelog fragments & versions, Run Automated Tests, Formatting & Lockfiles, and Generated Artifacts remain pending.
Helix-Harness: pi
Helix-Model: openai-codex/gpt-6.1-sol
The reusable package
release.ymlwrote a## Downloadssection listing an S3 URL for every s9pk, including the ones attached to the GitHub release. Those S3 copies are deleted once a version is superseded (the family GC and the post-promotion prod prune both require a GitHub mirror first), so older releases end up linking toAccessDeniedwhile the working file is attached to the same release. Start9Labs/electrs-startos#102 is a user hitting exactly that.The section now lists only the s9pks that were too large to attach (not in
.gh_release_files), whose S3 copy is never collected, and is omitted when there are none. The Forgejo variant is regenerated withscripts/generate-forgejo-workflows.cjs.Verification:
make package-ci-testpasses (74/74); the S3-only selection was exercised locally with and without.gh_release_filespresent.🤖 Generated with Claude Code