From b06acddca2f29c8905ce2a65d8741ac33ad687e2 Mon Sep 17 00:00:00 2001 From: omercnet Date: Sat, 16 May 2026 18:20:34 +0000 Subject: [PATCH] ci: increase comment-pr-artifacts polling timeout The Comment PR Artifacts workflow was timing out before the PR Build Validation run could complete. The build typically takes ~14 minutes, but the comment workflow only polled for ~12 minutes (30 attempts with 10-second intervals plus API overhead). Increase the polling budget to 90 attempts at 20-second intervals (~30 minutes effective wait) so the comment job reliably waits for the full build pipeline to finish. Co-authored-by: openhands --- .github/workflows/comment-pr-artifacts.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/comment-pr-artifacts.yml b/.github/workflows/comment-pr-artifacts.yml index b7f0fb2a0..1b308d62d 100644 --- a/.github/workflows/comment-pr-artifacts.yml +++ b/.github/workflows/comment-pr-artifacts.yml @@ -59,8 +59,9 @@ jobs: const sleep = (ms) => new Promise((resolve) => setTimeout(resolve, ms)); + const maxAttempts = 90; let matchedRun = null; - for (let attempt = 1; attempt <= 30; attempt += 1) { + for (let attempt = 1; attempt <= maxAttempts; attempt += 1) { const runs = await github.paginate(github.rest.actions.listWorkflowRuns, { owner, repo, @@ -78,8 +79,8 @@ jobs: break; } - core.info(`Waiting for PR Build Validation run for ${headSha} (attempt ${attempt}/30)`); - await sleep(10000); + core.info(`Waiting for PR Build Validation run for ${headSha} (attempt ${attempt}/${maxAttempts})`); + await sleep(20000); } if (!matchedRun) {