Skip to content

fix(ci): link only S3-only s9pks in the release body - #4749

Merged
MattDHill merged 1 commit into
masterfrom
fix/ci-release-downloads-s3-only
Nov 16, 2026
Merged

MattDHill merged 1 commit into
masterfrom
fix/ci-release-downloads-s3-only

Conversation

@MattDHill

Copy link
Copy Markdown
Member

The reusable package release.yml wrote a ## Downloads section 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 to AccessDenied while 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 with scripts/generate-forgejo-workflows.cjs.

Verification: make package-ci-test passes (74/74); the S3-only selection was exercised locally with and without .gh_release_files present.

🤖 Generated with Claude Code

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>
@MattDHill MattDHill added the repo Repository maintenance label Nov 16, 2026

@helix-white helix-white left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

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

Labels

repo Repository maintenance

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants