mirror of
https://github.com/outbackdingo/optimclaw.git
synced 2026-08-25 14:53:34 +00:00
fix(ci): 20-min polling + timeout-minutes on gate job [skip-regression-check]
- Set polling timeout to 20 min (down from 30) - Add timeout-minutes: 25 on gate job for hard kill on cancel - Revert 1s sleep loop to sleep $INTERVAL (1s loop doesn't help with cancellation — GitHub only cancels between steps) Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
This commit is contained in:
co-authored by
Claude Sonnet 4.6
parent
6685f2ca9d
commit
8a3f0c0870
@@ -218,6 +218,7 @@ jobs:
|
||||
needs.e2e.result == 'success' &&
|
||||
needs.create-promotion-pr.result == 'success'
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 25
|
||||
outputs:
|
||||
gate_passed: ${{ steps.evaluate.outputs.passed }}
|
||||
steps:
|
||||
@@ -261,7 +262,7 @@ jobs:
|
||||
fi
|
||||
|
||||
echo "Polling for Claude Code Review job on PR #${PR_NUMBER} (SHA: ${PR_SHA})..."
|
||||
TIMEOUT=1800 # 30 minutes
|
||||
TIMEOUT=1200 # 20 minutes
|
||||
ELAPSED=0
|
||||
INTERVAL=30
|
||||
|
||||
@@ -275,8 +276,7 @@ jobs:
|
||||
fi
|
||||
|
||||
echo "Claude review status: ${STATUS} (${ELAPSED}s elapsed)"
|
||||
# Sleep in 1s increments so GitHub can cancel between iterations
|
||||
for _i in $(seq 1 "$INTERVAL"); do sleep 1; done
|
||||
sleep "$INTERVAL"
|
||||
ELAPSED=$((ELAPSED + INTERVAL))
|
||||
done
|
||||
|
||||
|
||||
Reference in New Issue
Block a user