Skip to content

fix(ci): retry a failed job-status poll while http e2e jobs wait for the build - #10392

Merged
waleedlatif1 merged 1 commit into
stagingfrom
fix/ci-build-wait-api-hiccup
Nov 25, 2026
Merged

waleedlatif1 merged 1 commit into
stagingfrom
fix/ci-build-wait-api-hiccup

Conversation

@waleedlatif1

Copy link
Copy Markdown
Collaborator

Summary

  • HTTP e2e jobs run wait-for-e2e-build.sh to wait for this run's build (e2e) job, polling the jobs API every 10s
  • Any failed API call exited the script. GitHub occasionally answers with a truncated body (gh reports "unexpected end of JSON input"), so one bad poll failed an e2e job before it tested anything (seen on staging's desktop-inbox job)
  • A failed poll is now retried on the next poll. Three in a row still fail the job, and a failed, cancelled, skipped, missing or duplicated build still exits non-zero as before

Type of Change

  • Bug fix

Testing

  • bash -n and shellcheck
  • Ran the script against a fake gh that fails 1, 2 and 3 times in a row: 1 and 2 recover and exit 0 once the build reports success; 3 exits 1 with "Could not read this run's jobs 3 times in a row."
  • The http e2e jobs on this PR run it for real

Checklist

  • Code follows project style guidelines
  • Self-reviewed my changes
  • Tests added/updated and passing (new tests pass the test-audit authoring gate)
  • No new warnings introduced
  • I confirm that I have read and agree to the terms outlined in the Contributor License Agreement (CLA)

@vercel

vercel Bot commented Nov 25, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
docs Ready Ready Preview Nov 25, 2026 12:45am UTC

Request Review

@greptile-apps

greptile-apps Bot commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Low impact] The PR appears safe to merge.

Summary

Updates .github/scripts/wait-for-e2e-build.sh to tolerate isolated job-status API failures.

  • HTTP end-to-end jobs retry failed build-status polls.

Reviews (1) · Last reviewed commit: "fix(ci): retry a failed job-status poll ..." · Reviewed by Greptile

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 1 file

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

Turn on auto-fix | Re-trigger cubic

@waleedlatif1
waleedlatif1 merged commit f11df48 into staging Nov 25, 2026
76 of 77 checks passed
@waleedlatif1
waleedlatif1 deleted the fix/ci-build-wait-api-hiccup branch November 25, 2026 00:42

This branch was successfully deployed

1 active deployment
Preview — fbc8d848 Deployed Nov 25, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant