Skip to content

Fix fedora-41 workflow failure by hardening host release asset upload - #134

Open
markg-github with Copilot wants to merge 3 commits into
mainfrom
copilot/fix-failing-github-actions-job-fedora-41
Open

Fix fedora-41 workflow failure by hardening host release asset upload#134
markg-github with Copilot wants to merge 3 commits into
mainfrom
copilot/fix-failing-github-actions-job-fedora-41

Conversation

Copilot AI commented May 26, 2026

Copy link
Copy Markdown

The build-images workflow was failing in the fedora-41 matrix job during host asset upload, even though image builds completed successfully. The failure came from a brittle release lookup (gh api .../releases/tags/...) returning 404 in the upload step.

  • What changed

    • Updated .github/workflows/build-and-release.yml in Upload host assets (custom Content-Type).
    • Replaced tag-to-release lookup via gh api repos/.../releases/tags/... with gh release view ... --json databaseId.
    • Added short retry logic when resolving RELEASE_ID to tolerate release API consistency delays.
    • Kept existing host upload behavior intact (delete existing asset if present, then upload with EFI-specific content type).
  • Behavioral impact

    • Removes the failure mode causing fedora-41 (and other matrix jobs) to fail at publish time.
    • Preserves current release semantics and host EFI content-type handling.
for attempt in {1..5}; do
  RELEASE_ID=$(gh release view "${TAG}" --json databaseId --jq '.databaseId' 2>/dev/null || true)
  [[ -n "${RELEASE_ID}" ]] && break
  sleep 2
done

Copilot AI and others added 2 commits May 26, 2026 13:51
Copilot AI changed the title [WIP] Fix failing GitHub Actions job fedora-41 Fix fedora-41 workflow failure by hardening host release asset upload May 26, 2026
Copilot AI requested a review from markg-github May 26, 2026 13:56
@markg-github
markg-github marked this pull request as ready for review May 26, 2026 14:09
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