Repository navigation
ci(release): upload each checksum once; attach experimental archives - #8
Open
secsovereign wants to merge 1 commit into
Open
secsovereign wants to merge 1 commit into
secsovereign wants to merge 1 commit into
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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".SHA256SUMS-blvm-experimental-*files twice: once fromSHA256SUMS-blvm-*and once fromSHA256SUMS-blvm-experimental-*.SHA256SUMS-blvm-experimental-linux-x86_64but notSHA256SUMS-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.shcreatedblvm-experimental-linux-x86_64.tar.gzandblvm-experimental-windows-x86_64.zip.create-release.shrename_archivesonly renamedblvm-<platform>andblvm-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.Changes
release.ymlandprerelease.ymlfiles:: dropblvm/artifacts/SHA256SUMS-blvm-experimental-*.SHA256SUMS-blvm-*already covers it.scripts/create-release.shrename_archives: also renameblvm-experimental-<platform>.{tar.gz,zip}toblvm-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.
release.ymlandprerelease.yml: no duplicates and nothing missed (RELEASE_NOTES.mdisbody_path, not an asset).blvm-<tag>-*.tar.gzvsblvm-*-x86_64.pkg.tar.gz: the Arch pkg has novand needs.pkg.blvm_*.debvsblvm-experimental_*.deb.SHA256SUMS-linux-packages.txtvsSHA256SUMS-blvm-*.prerelease.yml~746 also iteratesSHA256SUMS-blvm-* SHA256SUMS-blvm-experimental-*. That's only an existence check, so I left it.Run locally
main.bash -n scripts/create-release.shpasses.rename_archiveson 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).
version_tag=v0.1.62,use_latest_crates=true, andplatform=both(the original inputs) rebuilds frommain.softprops/action-gh-release@v1deletes 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.