Skip to content

action: leave torrent URLs empty in per-image asset manifests#9792

Merged
igorpecovnik merged 1 commit into
mainfrom
action-empty-torrent-urls
May 9, 2026
Merged

action: leave torrent URLs empty in per-image asset manifests#9792
igorpecovnik merged 1 commit into
mainfrom
action-empty-torrent-urls

Conversation

@igorpecovnik
Copy link
Copy Markdown
Member

@igorpecovnik igorpecovnik commented May 8, 2026

Summary

The composite action publishes images plus their .asc and .sha siblings, but it never produces a .torrent for any artefact it ships. Despite that, the per-image <image>.assets.json manifest emitted by the manifest step always wrote constructed URLs into file_url_torrent and redi_url_torrent by appending .torrent to the file URL — so consumers of the manifest were greeted with URLs that 404.

This PR makes those two fields empty strings in manifests produced by this action, while keeping the field names present so the schema still matches the canonical armbian-images.json index that armbian.github.io publishes.

Ref: armbian/website#21

Change

action.ymlsignature_urls() returns (base, base.asc, base.sha, "") instead of (base, base.asc, base.sha, base.torrent). Both file_url_torrent and redi_url_torrent flow from this single helper, so they both become "". Docstrings updated to spell out the convention.

If/when torrents ever start being produced by the action, only this helper needs to change.

Test plan

  • Re-run a producer workflow (e.g. armbian/sdk) on its armbian/build@main pin.
  • Inspect any <image>.assets.json from the resulting release: file_url_torrent and redi_url_torrent are "" (still present).
  • file_url_asc, file_url_sha, redi_url_asc, redi_url_sha are unchanged in shape.

Summary by CodeRabbit

  • Changes
    • Torrent URLs are no longer included in release asset manifests.

The build action ships images, .asc and .sha files alongside its
artefacts but never produces a .torrent. Until now the manifest's
file_url_torrent and redi_url_torrent fields still got constructed by
appending '.torrent' to the file URL, so consumers of the manifest
saw URLs that always 404.

Return an empty string from signature_urls() for the torrent slot so
both file_url_torrent and redi_url_torrent are empty in the per-image
`<image>.assets.json`. The fields stay present for schema parity
with the canonical armbian-images.json index — if torrents ever start
being produced upstream, only the helper needs to change.
@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented May 8, 2026

📝 Walkthrough

Walkthrough

The release assets manifest generation in action.yml is updated to no longer produce torrent URLs. The signature_urls() helper now always returns an empty value for the torrent slot, and the build_urls() docstring is updated to document this behavior and the empty torrent field in the manifest schema.

Changes

Release Assets Manifest URL Handling

Layer / File(s) Summary
Signature URL Generation
action.yml
signature_urls() now returns an empty string for the torrent URL component, alongside .asc and .sha signatures.
URL Contract Documentation
action.yml
build_urls() docstring is updated to clarify that torrent URLs are never produced and the manifest schema keeps an empty torrent field for parity.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~5 minutes

Poem

🐰 A torrent once danced in the URL streams,
But now it rests in the manifest's dreams,
With .asc and .sha standing proud and true,
An empty field marks the change anew!

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly and concisely describes the main change: making torrent URLs empty in the per-image asset manifests, which is the primary purpose of the pull request.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch action-empty-torrent-urls

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@github-actions github-actions Bot added 05 Milestone: Second quarter release size/small PR with less then 50 lines Needs review Seeking for review labels May 8, 2026
@igorpecovnik igorpecovnik merged commit 31d8f40 into main May 9, 2026
12 checks passed
@igorpecovnik igorpecovnik deleted the action-empty-torrent-urls branch May 9, 2026 07:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

05 Milestone: Second quarter release Needs review Seeking for review size/small PR with less then 50 lines

Development

Successfully merging this pull request may close these issues.

1 participant