hammer-editor/.github/scripts
Adam Brown 66826fdf10
Fix Mac App Store publish hanging forever on build processing (#769)
Fix Mac App Store publish hanging forever on build processing

The Mac App Store release job hung indefinitely on "Publish to App Store",
spinning until Actions' 6h default killed the (10x-billed) macOS runner:

    Waiting for App Store Connect to finish processing the new build
    (3.7.0 - 24) for MAC_OS

Root cause: the release lane ran upload_to_testflight with the build-processing
wait enabled. That wait lives in FastlaneCore::BuildWatcher, which polls each
build's processingState until it reads complete. For macOS builds the App Store
Connect API never reliably reports processingState as VALID, so it polls
forever even though the upload succeeded and the build is usable. iOS is
unaffected because its processingState does flip. deliver's select_build only
avoids the same hang when handed an explicit build number (direct lookup); a
nil/"latest" number routes it back into BuildWatcher.

- Fastfile (mac): skip_waiting_for_build_processing on the upload, and always
  submit by an explicitly resolved build number so deliver takes the
  direct-lookup path and never re-enters BuildWatcher. Widen the submit retry
  budget for the release flow. iOS keeps its working wait-based flow.
- Workflows: add timeout-minutes: 120 to both App Store jobs as a hard cost
  backstop, and a desktop_submit dispatch lane on the Mac workflow (mirrors
  iOS) to submit an already-uploaded build without a rebuild.
- Add an Announce Release workflow plus a shared discord-release-message.sh
  script, so a release's Discord message can be posted for a given tag when the
  automated notify job was skipped (e.g. a cancelled run). notify now builds
  its message from the same script, so the two can't drift.
2026-07-21 15:33:17 -07:00
..
discord-release-message.sh Fix Mac App Store publish hanging forever on build processing (#769) 2026-07-21 15:33:17 -07:00