Skip to content

Add AWF installer fallback when pinned firewall release is missing#33088

Closed
Copilot wants to merge 3 commits into
mainfrom
copilot/fix-install-awf-binary-shell-error
Closed

Add AWF installer fallback when pinned firewall release is missing#33088
Copilot wants to merge 3 commits into
mainfrom
copilot/fix-install-awf-binary-shell-error

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented May 18, 2026

Compiled workflows can pin an awf version that later disappears from github/gh-aw-firewall releases; install_awf_binary.sh currently hard-fails on checksums.txt 404, aborting before agent execution. This change makes installation recover by falling back to the latest available AWF release when the pinned release is missing.

  • Installer resilience for missing pinned releases

    • In actions/setup/sh/install_awf_binary.sh, added version/url indirection via set_release_urls.
    • Added download_checksums_with_fallback:
      • probes pinned checksums.txt with HTTP status handling,
      • on 404, resolves releases/latest,
      • rewrites install URLs to the latest tag and retries checksum download.
    • Preserves checksum verification and existing install paths (bundle-first, then platform binary).
  • Operator-visible diagnostics

    • Emits explicit messages when pinned version is unavailable and when fallback version is selected.
    • Clarifies terminal error when pinned version is also latest but still lacks checksums.
  • Focused shell coverage

    • Added actions/setup/sh/install_awf_binary_test.sh to simulate pinned-release 404 and assert fallback-to-latest behavior.
# New behavior in install_awf_binary.sh
status=$(curl ... -w '%{http_code}' "${CHECKSUMS_URL}")
case "$status" in
  404)
    latest_version=$(resolve_latest_version)
    set_release_urls "$latest_version"
    curl ... -o "${TEMP_DIR}/checksums.txt" "${CHECKSUMS_URL}"
    ;;
esac

Copilot AI and others added 2 commits May 18, 2026 16:45
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix install_awf_binary.sh failing with missing gh-aw-firewall release Add AWF installer fallback when pinned firewall release is missing May 18, 2026
Copilot AI requested a review from pelikhan May 18, 2026 16:48
@pelikhan pelikhan closed this May 18, 2026
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.

install_awf_binary.sh fails permanently when pinned gh-aw-firewall release does not exist (404); v0.25.21–v0.25.39 are missing

2 participants