Skip to content

Unify release asset names under one PumasLibrary_ scheme - #177

Merged
MrScripty merged 9 commits into
mainfrom
ccr-ade5ba26-y6yc5f
Dec 1, 2026
Merged

MrScripty merged 9 commits into
mainfrom
ccr-ade5ba26-y6yc5f

Conversation

@MrScripty

Copy link
Copy Markdown
Owner

Summary

Release assets mixed four naming styles (Pumas.Library-*, Pumas.Library.*, pumas-library-electron_*, pumas-rpc-*), and the inference/no-inference marker sat in a different place in each. This moves every release asset to one scheme, based on v0.7.0's:

PumasLibrary_<version>_<Kind>_<OS>_<arch>[_NoInference].<ext>
  • Kind is Headless, Setup or Portable. OS is Linux, Windows or MacOS. arch is x86_64 or arm64.
  • The inference build is the unsuffixed default; only no-inference builds carry _NoInference.
  • The metadata files share the prefix: PumasLibrary_<version>_Checksums_SHA256.txt, _Provenance.jsonl and _ThirdPartyNotices.txt. LICENSE.txt and the <artifact>.spdx.json SBOMs keep their pattern.

Example: PumasLibrary_0.8.0_Setup_Windows_x86_64_NoInference.exe

Changes

  • Source of truth: artifact-plan.json and headless-inference-plan.json carry the new names. The headless-inference plan gains a per-target platform label, and the new headless_inference.archive_filename() builds archive names from the plan instead of an inline f-string.
  • Electron: the artifactName settings in electron/package.json and electron-builder.no-inference.cjs are updated.
  • Metadata writer and checker: write-release-metadata.py and check-artifacts.mjs now read the metadata filenames from the plan instead of hard-coding them.
  • Bug fix: the checker hard-coded checksums-sha256.txt while the metadata writer excluded only the plan's checksums name. Renaming one without the other would have failed the release-candidate job.
  • New tests: the full-variant Electron names and the headless-inference archive names are pinned to the artifact plan. Before this, only the no-inference Electron config was checked.
  • Attribution inventories regenerated with generate-notices.py for the default and s3 profiles. The notice text is byte-identical; only the input hashes of electron/package.json and artifact-plan.json changed.
  • Also updated: smoke scripts, write-linux-metadata.py, tests, the asset table in docs/release-notes-0.8.0.md, and the CHANGELOG.

The release workflow needs no changes; it collects artifacts by extension.

Relation to the v0.8.0 draft

The v0.8.0 draft release was built before this change and still has the old names. A separate script renames its assets in place: the artifact bytes and hashes are unchanged, and only the SBOMs, provenance and checksums are rewritten for the new filenames. A maintainer has to run it with their own GitHub credentials. The draft's release notes are this branch's docs/release-notes-0.8.0.md.

Testing

CI was deliberately not run ([skip ci] on the commit). Run locally:

  • node --test scripts/release/*.test.mjs scripts/launcher/*.test.mjs: 111 tests pass
  • Every scripts/release/test_*.py passes
  • check-attribution.cjs and check-attribution.cjs --features s3: attribution matches current inputs
  • Electron beforePack attribution check passes
  • End-to-end simulation of the release-candidate job: a placeholder file per planned artifact goes through check-artifacts.mjs … required and then write-release-metadata. Result: 36 correctly named files, and sha256sum -c passes on the generated checksums.
  • ruff check and ruff format --check are clean on scripts/release

Not verified: real electron-builder output names on each OS. These come straight from the artifactName templates, which the new tests pin.

Known issue, not changed here

The in-app updater (launcher/updater.rs::select_download_asset) chooses the first asset whose name contains appimage, .exe, .dmg and so on. With inference and no-inference builds side by side, it can pick either variant. This happens with both the old and the new names.


Generated by Claude Code

Release assets mixed four naming styles (Pumas.Library-*, Pumas.Library.*,
pumas-library-electron_*, pumas-rpc-*). Adopt the v0.7.0-style scheme
PumasLibrary_<version>_<Kind>_<OS>_<arch>[_NoInference].<ext>, with the
inference build as the unsuffixed default, and prefix release metadata the
same way.

- artifact-plan.json and headless-inference-plan.json carry the new names;
  headless_inference.archive_filename() derives inference archive names
  from the plan instead of an inline f-string.
- write-release-metadata.py and check-artifacts.mjs read metadata filenames
  from the plan. Previously the checker's hard-coded checksums name would
  have collided with a renamed one during candidate assembly.
- New tests pin the full-variant Electron artifactNames and the
  headless-inference archive names to the artifact plan.
- Regenerate both attribution inventories: notice text is unchanged; only
  the input hashes of electron/package.json and artifact-plan.json moved.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VkfbGShE8Z6nkAb9osKDNA
@coderabbitai

coderabbitai Bot commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

Important

  • Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 9ea507a7-bdd0-4538-85b4-81e4d136c17e
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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

@greptile-apps

greptile-apps Bot commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

Confidence Score: 5/5 · The PR appears safe to merge; no actionable issues were found.RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The PR appears safe to merge; no actionable issues were found.

Summary

Release assets now use the PumasLibrary_ naming scheme.

  • Release downloads identify their kind, platform, and inference variant in one name.
  • Release notices, provenance, and checksums use the names in the artifact plan.

Reviews (1) · Last reviewed commit: "Unify release asset names under one Puma..." · Reviewed by Greptile

Promote the root, frontend, Electron and desktop-contract manifests and
the Rust workspace package from 0.8.0 to 0.8.1, updating only the five
workspace entries in Cargo.lock. Generate the 0.8.1 and 0.8.1-s3
attribution sets (identical to 0.8.0 apart from the version and input
hashes) and point the packaged notices and RELEASING at them.

Close the CHANGELOG's [0.8.1] section and add short release notes. The
raw-device receipt and Windows Torch fixes were already in the 0.8.0
downloads (the v0.8.0 tag is 5175306) but missing from its notes; both
documents say so. No tag or release is created by this commit.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VkfbGSuzL9SpH8epTy2hMe
MrScripty and others added 3 commits December 1, 2026 00:47
The artifact plan listed the Torch sidecar as a non-shipped output
"until a real runtime/platform/device tuple is accepted". That mixed two
things: the sidecar source is an inference plugin and is compiled into
pumas-rpc, while Torch itself (wheels and Python), llama.cpp and ONNX
Runtime are managed downloads that no artifact bundles.

The excluded output is now "inference-runtimes" with that reason, and
RELEASING says what "inference" means for the sixteen artifacts and
replaces the "if shipping a Torch runtime" gate with the same rule.
The artifact-plan hash in the attribution inventories is refreshed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VkfbGSuzL9SpH8epTy2hMe
Resolve against release/0.8.1-prep: the CHANGELOG entry joins [0.8.1];
0.8.0's release notes and attribution inventories keep the names v0.8.0
was published with; the 0.8.1 attribution is regenerated for the renamed
artifact plan and Electron artifactName settings.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VkfbGSuzL9SpH8epTy2hMe
Follow-up to the unified asset names, rebased onto the 0.8.1 release
preparation:

- draft-release.yml verified a candidate against checksums-sha256.txt,
  which the artifact plan now names PumasLibrary_{version}_Checksums_SHA256.txt.
  It now derives that name from the tag, and the release-gating test
  reads the name from the plan.
- The 0.8.1 release notes list the new download names. 0.8.0's notes
  and attribution inventories keep the names v0.8.0 was published with;
  the rebase restored them and regenerated the 0.8.1 inventories instead.
- The CHANGELOG entry moves to [0.8.1] and says the scheme restores
  v0.7.0's names.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VkfbGSuzL9SpH8epTy2hMe
@MrScripty

Copy link
Copy Markdown
Owner Author

The owner decided this goes into 0.8.1, because v0.7.0 already used the PumasLibrary_ scheme. I merged the 0.8.1 release preparation (#178) into this branch. Merging, not force-pushing, keeps your commit. I also changed a few things:

  • 0.8.0 records kept as published. docs/release-notes-0.8.0.md and the 0.8.0 attribution inventories keep the names v0.8.0 was actually published with. The new names apply from 0.8.1. The 0.8.1 and 0.8.1-s3 inventories are regenerated for the renamed plan and artifactName settings.
  • Draft release workflow. draft-release.yml (ci(release): attach a successful tag build's candidate to its draft release #160) checked checksums-sha256.txt, which this PR renames. It now verifies PumasLibrary_${TAG#v}_Checksums_SHA256.txt, and the release-gating test reads that name from artifact-plan.json.
  • CHANGELOG and notes. The entry is in [0.8.1] and says the scheme restores v0.7.0's names. The 0.8.1 release notes list the new download names.
  • CI. The head commit no longer carries [skip ci], so CI runs here.

I did not run the in-place rename script on the published v0.8.0 assets; the owner hasn't decided that. Before tagging, I'll run a build_candidates rehearsal to check the real electron-builder output names on each OS.

Local checks: 67 release/packaging Node tests and 49 launcher tests pass. 131 Python release tests pass. Both attribution profiles pass, as do ruff and check:release-versions -- v0.8.1.

Copy link
Copy Markdown
Owner Author

CI: "Review Linux inference candidate" is failing, but this PR doesn't cause it.

On 251eaf44 the job fails in verify_synthetic_packaged_onnx.py with ValueError: synthetic lifecycle or shutdown failed; log preserved, about 2 seconds after the step starts. Earlier in the job, check-artifacts.mjs … headless-inference-linux passed with the renamed archive.

The same job fails the same way without this PR's changes:

Run Commit Contains this PR's rename? Job
46601309385 9bf90b56 (release/0.8.1-prep, #178) no ❌ same error
46598359063 9b7f6c82 (main, merge of #159) no ❌
46598368884 7b775aa0 (main, merge of #160) no ❌
43524620868 b5f31c5c (main, 2026-11-13) no ✅

It started failing on main with the merges of #159 (PUMAS_GITHUB_TOKEN) and #160. Those added PUMAS_GITHUB_TOKEN: ${{ github.token }} to this step. The fix belongs on main, and this branch can then pick it up with a merge.

I couldn't root-cause it from here: the lifecycle log is only in the review-inference-evidence-linux-x86_64 artifact, and this session's network can't reach the artifact storage host.

What this means for the release: every packaging job depends on this one. "Desktop package", "Desktop package without inference", "Headless archive" and "Assemble release candidate" are all skipped on both main and this PR. So the real electron-builder output names haven't been exercised in CI yet, which the planned build_candidates rehearsal would also run into.


Generated by Claude Code

MrScripty and others added 4 commits December 1, 2026 01:27
The checksum-pinned actionlint download failed on several PR runs with
an HTTP 618 from GitHub release storage. curl's --retry covers only
timeouts and 5xx, so one bad response failed the contracts job.
Retry any failure five times with a delay; the pinned SHA-256 still
decides whether the bytes are accepted.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VkfbGSuzL9SpH8epTy2hMe

Copy link
Copy Markdown
Owner Author

CI is green on eebb5fe3 now that #186 is merged in: 22 checks pass, including "Review Linux inference candidate". The PR is mergeable with no conflicts.

Correction to my earlier comment: I said the packaging jobs were skipped because the review job failed. That's wrong. "Desktop package", "Desktop package without inference", "Windows release", "Headless archive" and "Assemble release candidate" only run on v* tags or on workflow_dispatch with build_candidates (build.yml lines 605, 753, 917). They skip on every PR, pass or fail. So the planned build_candidates rehearsal is still the first run that will produce real electron-builder output under the new names. The review job no longer blocks it.


Generated by Claude Code

@MrScripty
MrScripty merged commit b6b08a5 into main Dec 1, 2026
33 checks passed
MrScripty added a commit that referenced this pull request Dec 1, 2026
… claim

- SF-18 keeps the two unexplained test failures that the retired
  frontend issue list still had open: FE-I28 (admitted-ID download wait
  timeout) and FE-I29 (safetensors preflight readiness). Each row has
  its owner, history reference and revisit trigger.
- SF-01 no longer says api-conversion.ts field casing has drifted;
  ConversionProgress aliases the generated ConversionProgressOutcome,
  and PRG-I14/FE-I14 is recorded as closed.
- SF-05 and SF-06(b) reflect what 0.8.1 merged: the draft-release
  upload (#160), the unified asset names (#177), and the artifact plan
  naming every runtime a managed download.

Addresses the Greptile review on #179.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VkfbGSuzL9SpH8epTy2hMe
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants