Skip to content

fix(ci): watch the e2e build through its check run, not the run's job listing - #10756

Merged
waleedlatif1 merged 1 commit into
stagingfrom
fix/e2e-build-wait-check-suite
Dec 4, 2026
Merged

waleedlatif1 merged 1 commit into
stagingfrom
fix/e2e-build-wait-check-suite

Conversation

@waleedlatif1

Copy link
Copy Markdown
Collaborator

Summary

  • Every e2e job polls this run's job listing until build (e2e) finishes. While Actions is degraded, GitHub answers that listing (70+ jobs, per_page=100) with 502 at any page size of 30 or more, so all e2e jobs on every PR fail after 3 polls
  • The wait now looks up the run's check suite once, then asks only for the build (e2e) check run by name: one small row per poll, which still answers during the incident
  • Tolerates 6 failed polls instead of 3, and gives a not-yet-created build check run a few polls to appear before failing with "found 0"
  • Grants checks: read to the e2e job and its two callers (ci.yml, validation.yml)

Type of Change

  • Bug fix

Testing

  • scripts/wait-for-e2e-build.test.ts updated to the new endpoints, with cases for late build check runs and transient API failures: 11/11 pass; 10/11 fail against the old script
  • Checked the check-suite lookup by hand against a current run while the job-listing endpoint was returning 502
  • This PR's own e2e jobs run the new script

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 Dec 4, 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 Dec 4, 2026 1:18am UTC

Request Review

@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 5 files

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 63abb75 into staging Dec 4, 2026
70 checks passed
@waleedlatif1
waleedlatif1 deleted the fix/e2e-build-wait-check-suite branch December 4, 2026 01:20

This branch was successfully deployed

1 active deployment
Preview — 1fba77ab Deployed Dec 4, 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