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).
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user