Skip to content

fix(ci): release step fails with empty version, duplicate artifacts - #81

Merged
alexhraber merged 2 commits into
mainfrom
fix/release-empty-version
Jul 11, 2026
Merged

fix(ci): release step fails with empty version, duplicate artifacts#81
alexhraber merged 2 commits into
mainfrom
fix/release-empty-version

Conversation

@alexhraber

@alexhraber alexhraber commented Jul 11, 2026

Copy link
Copy Markdown
Owner

Problems:

  1. Empty version in release step: buildkite-agent artifact download from --step tag can exit 0 even when no matching artifact exists, leaving an empty/missing file. release.sh "" then fails with "Usage: release.sh ".
  2. Duplicate artifacts: release_build used builddeck* glob which matched builddeck.tag, uploading a duplicate. Same builddeck* glob duplicated builddeck and builddeck.sha256 already uploaded by the snapshot step.

Fixes:

  • release step now reads builddeck.tag from local disk (left by release_build on same agent) with [[ -s builddeck.tag ]] guard — no remote download needed.
  • release_build uploads explicit filenames instead of builddeck* glob.
  • Snapshot step no longer uploads artifacts (build verification only).
  • Same explicit-filename fix in pipeline.release.yml.

PR #80 restored the release steps but the download-from-tag-step approach was fragile.

Both snapshot and release_build uploaded files named builddeck and
builddeck.sha256, creating duplicate artifacts in the Buildkite pane.
Snapshot is build verification only — its binary is never consumed
downstream. Remove its artifact upload so only release_build produces
artifacts.
…lease

Two bugs:

1. release_build used builddeck* glob which matched builddeck.tag,
   uploading a duplicate artifact and potentially confusing downstream
   downloads. Changed to explicit upload of builddeck and builddeck.sha256.

2. release step downloaded builddeck.tag from --step tag, but the
   download can return 0 even when no matching artifact exists, leaving
   an empty/missing file. Changed to check the local builddeck.tag file
   left by release_build on the same agent, with a [[ -s builddeck.tag ]]
   guard to prevent calling release.sh with an empty version.

Same fix applied to pipeline.release.yml for consistency.
@alexhraber
alexhraber merged commit d976c6e into main Jul 11, 2026
2 checks passed
@alexhraber
alexhraber deleted the fix/release-empty-version branch July 11, 2026 06:40
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