Skip to content

fix: resolve release workflow wasm artifact lookup across runs#438

Merged
doron050 merged 2 commits into
mainfrom
fix/release-artifact-lookup
Jul 25, 2026
Merged

fix: resolve release workflow wasm artifact lookup across runs#438
doron050 merged 2 commits into
mainfrom
fix/release-artifact-lookup

Conversation

@doron050

Copy link
Copy Markdown
Collaborator

Problem

The release workflow (release.yml) failed to download the wasm artifact because it searched for wasm-<version> in the latest successful run of gen-release-pr.yml. After the release-prep PR merges, gen-release-pr.yml detects the release commit and skips all steps — including uploading the artifact.

If other PRs merge between the release-prep PR creation and its merge, HEAD~1-based approaches also break.

Solution

Use the GitHub API (gh api /repos/.../actions/artifacts) to search all artifacts across all workflow runs for the uniquely-named wasm-<version> artifact, then download from the exact run that produced it. The artifact name includes the version, making it a unique identifier regardless of intervening runs.

Also pinned the wasm download in gen-release-pr.yml to the specific triggering Build run via run_id to avoid race conditions.

Changes

  • release.yml: Replace dawidd6/action-download-artifact with workflow filter + GitHub API search for the artifact by name across all runs. Add actions: read permission.
  • gen-release-pr.yml: Pin wasm download to the triggering Build run via run_id: ${{ github.event.workflow_run.id }}.

The release.yml tried to download wasm-<version> from gen-release-pr.yml
by finding the latest successful run, but after the release-prep PR merges,
gen-release-pr.yml skips all steps (detecting the release commit) and
uploads no artifact.

Fix: search all artifacts across all workflow runs via the GitHub API
for the uniquely-named wasm-<version> artifact, then download from the
exact run that produced it. Also pin the download in gen-release-pr.yml
to the specific triggering Build run via run_id to avoid race conditions.
@doron050 doron050 added the patch Backward-compatible bug fixes, performance improvements, documentation updates. label Jul 25, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Release Assistant - Passed

No version-worthy changes detected. Only non-functional, doc, or test changes.

1 similar comment
@github-actions

Copy link
Copy Markdown
Contributor

Release Assistant - Passed

No version-worthy changes detected. Only non-functional, doc, or test changes.

--paginate with --jq applies the query per-page, not to the
merged result. Use per_page=100 (max) to get all artifacts
in one request instead.
@doron050
doron050 merged commit 27988a6 into main Jul 25, 2026
7 checks passed
@github-actions github-actions Bot mentioned this pull request Jul 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

patch Backward-compatible bug fixes, performance improvements, documentation updates.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant