From 74f812eaf00ffb177500a636e200ee1b6fc91b07 Mon Sep 17 00:00:00 2001 From: yetone Date: Sat, 31 Oct 2026 03:42:07 +0800 Subject: [PATCH] release: the mirror waits up to five hours for magpie-releases, not one (#4488) On 10-30, magpie-releases' macOS jobs waited about an hour for a hosted runner while several tags queued. v0.1.2262's build published all 16 assets at 19:36:52, 62 minutes after its tag. mirror-release had given up at 19:35:35 ("never published v0.1.2262 with 16 assets"), so v0.1.2261 and v0.1.2262 never reached this repo's Releases page until their failed jobs were rerun by hand. The wait now runs 600 tries 30 s apart (300 min), and the job's timeout is 330 minutes, under GitHub's 360. A build that really failed still ends in the same error, only later. Following the magpie-releases run's own state would end such a wait sooner; #4488 stays open for it. Run: actionlint .github/workflows/release.yml ok. Not run: a real release through it (the next tag runs it). --- .github/workflows/release.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 5e62995a4..ea35fb2f5 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -59,7 +59,11 @@ jobs: mirror-release: needs: trigger-release runs-on: ubuntu-latest - timeout-minutes: 75 + # magpie-releases' macOS jobs can wait an hour or more for a hosted + # runner when several tags queue: v0.1.2262 published 62 minutes after + # its tag, two minutes after a 60-minute wait here gave up, and it was + # never copied here (#4488) + timeout-minutes: 330 permissions: contents: write issues: write # to say a release went out without Chinese notes @@ -70,7 +74,7 @@ jobs: steps: - name: Wait for magpie-releases to publish every asset run: | - for i in $(seq 1 120); do + for i in $(seq 1 600); do n=$(gh release view "$REF" -R yetone/magpie-releases --json assets -q '.assets | length' 2>/dev/null || echo 0) echo "attempt $i: $n of $ASSETS assets" [ "$n" -ge "$ASSETS" ] && exit 0