Skip to content

ci(release): upload each checksum once; attach experimental archives - #8

Open
secsovereign wants to merge 1 commit into
mainfrom
fix/release-checksum-globs
Open

secsovereign wants to merge 1 commit into
mainfrom
fix/release-checksum-globs

Conversation

@secsovereign

@secsovereign secsovereign commented Oct 19, 2026 •

Copy link
Copy Markdown
Member

Fixes the asset upload failure in the v0.1.62 Official Release (run 39185005040, job 117845486301). It also fixes the experimental archives, which have never been attached to a release.

Log evidence

  • ##[error]Failed to upload release asset SHA256SUMS-blvm-experimental-linux-x86_64. received status code 422 … "code":"already_exists".
  • The uploader listed both SHA256SUMS-blvm-experimental-* files twice: once from SHA256SUMS-blvm-* and once from SHA256SUMS-blvm-experimental-*.
  • The second upload failed and aborted the step. v0.1.62 has SHA256SUMS-blvm-experimental-linux-x86_64 but not SHA256SUMS-blvm-experimental-windows-x86_64.
  • 🤔 Pattern 'blvm/artifacts/blvm-experimental-v0.1.62-*.tar.gz' does not match any files. (the same for .zip).
    • collect-artifacts.sh created blvm-experimental-linux-x86_64.tar.gz and blvm-experimental-windows-x86_64.zip.
    • create-release.sh rename_archives only renamed blvm-<platform> and blvm-governance-<platform> (log: Renamed: blvm-linux-x86_64.tar.gz -> blvm-v0.1.62-linux-x86_64.tar.gz), so the experimental names never matched.
    • None of v0.1.57–v0.1.62 has an experimental tar.gz or zip.

Changes

  1. release.yml and prerelease.yml files:: drop blvm/artifacts/SHA256SUMS-blvm-experimental-*. SHA256SUMS-blvm-* already covers it.
  2. scripts/create-release.sh rename_archives: also rename blvm-experimental-<platform>.{tar.gz,zip} to blvm-experimental-<tag>-<platform>.…. That's the name the release/prerelease globs and prerelease's verify step (prerelease.yml ~715/734) already expect. ci.yml's nightly path only builds base archives, so this is a no-op there.

Overlap check (other globs in the same lists)
I built a fixture of every artifact name the run produces, plus aarch64 and an experimental Arch pkg/rpm, and expanded each list's globs over it.

  • With this change, 16 files match 16 times in both release.yml and prerelease.yml: no duplicates and nothing missed (RELEASE_NOTES.md is body_path, not an asset).
  • The other pairs don't overlap:
    • blvm-<tag>-*.tar.gz vs blvm-*-x86_64.pkg.tar.gz: the Arch pkg has no v and needs .pkg.
    • blvm_*.deb vs blvm-experimental_*.deb.
    • SHA256SUMS-linux-packages.txt vs SHA256SUMS-blvm-*.
  • prerelease.yml ~746 also iterates SHA256SUMS-blvm-* SHA256SUMS-blvm-experimental-*. That's only an existence check, so I left it.

Run locally

  • actionlint finds nothing new in either workflow compared with main.
  • bash -n scripts/create-release.sh passes.
  • I ran rename_archives on a fixture: base and experimental archives were both renamed to …-v9.9.9-….

Restoring v0.1.62's missing assets (post-merge, not done here).

  • Re-running Official Release with version_tag=v0.1.62, use_latest_crates=true, and platform=both (the original inputs) rebuilds from main.
  • softprops/action-gh-release@v1 deletes and re-uploads any asset with the same name, so the re-run replaces every v0.1.62 asset with a fresh build. The base tar/zip/deb would get new hashes.
  • It also locks to the newest crates.io blvm-node. The experimental Windows zip gets the blvm-sdk experimental binaries only if a blvm-node with blvm-node#28 has been published first.

SHA256SUMS-blvm-* already matches SHA256SUMS-blvm-experimental-*, so the
release and prerelease files lists uploaded both experimental checksum
files twice. The second upload got 422 already_exists and failed v0.1.62
(run 39185005040), leaving SHA256SUMS-blvm-experimental-windows-x86_64 off
the release. Drop the redundant line; the broad glob still covers them.

create-release.sh renamed base and governance archives to include the
version tag but not the experimental ones, so the
blvm-experimental-<tag>-* patterns never matched and the experimental
tar.gz/zip were never attached. Rename them the same way.
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.

1 participant