Skip to content

fix: increase Monaco waitFor timeout for CI reliability#2088

Merged
nick-inkeep merged 1 commit intomainfrom
fix/increase-monaco-waitfor-timeout
Feb 17, 2026
Merged

fix: increase Monaco waitFor timeout for CI reliability#2088
nick-inkeep merged 1 commit intomainfrom
fix/increase-monaco-waitfor-timeout

Conversation

@nick-inkeep
Copy link
Collaborator

Summary

  • Bump waitFor timeout from 20s to 30s for Monaco editor initialization in browser screenshot tests
  • Bump test timeout from 45s to 60s to accommodate

Context

PRs with Turbo cache misses on ubuntu-16gb runners cause parallel build/test jobs to compete for CPU/memory. Under this resource contention, Monaco editor's dynamic imports take longer than 20s to complete, causing waitFor to timeout before .monaco-editor appears in DOM.

This was observed consistently (3/3 attempts) on PRs #2054, #2037, and #2033 after merging main. The ubuntu-latest runner passed every time.

Test plan

  • CI passes on both ubuntu-16gb and ubuntu-latest runners
  • Browser screenshot test still captures correct state

🤖 Generated with Claude Code

The 20s waitFor timeout for Monaco editor initialization is insufficient on
ubuntu-16gb runners when Turbo cache misses cause parallel build jobs to
compete for resources. Bump to 30s (with 60s test timeout) to accommodate.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@vercel
Copy link

vercel bot commented Feb 17, 2026

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

Project Deployment Actions Updated (UTC)
agents-api Ready Ready Preview, Comment Feb 17, 2026 9:17pm
agents-manage-ui Ready Ready Preview, Comment Feb 17, 2026 9:17pm
1 Skipped Deployment
Project Deployment Actions Updated (UTC)
agents-docs Skipped Skipped Feb 17, 2026 9:17pm

Request Review

@changeset-bot
Copy link

changeset-bot bot commented Feb 17, 2026

⚠️ No Changeset found

Latest commit: e3e48a4

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Copy link
Contributor

@claude claude bot left a comment

Choose a reason for hiding this comment

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

PR Review Summary

(0) Total Issues | Risk: Low


This PR makes a targeted, well-justified change to address CI flakiness on resource-constrained runners.

What Was Reviewed

  • Test coverage (pr-review-tests): Confirmed no test coverage gaps — this is a test reliability improvement, not code requiring tests
  • DevOps/Infrastructure (pr-review-devops): Validated timeout adjustments are reasonable and consistent with existing patterns

Why This Change Is Appropriate

  1. Proportional timeout increase: The waitFor timeout (20s → 30s) and test timeout (45s → 60s) maintain a consistent ~15s buffer for the screenshot assertion
  2. Consistent with existing patterns: The vitest config already acknowledges Monaco requires extended timeouts on CI, and other browser tests use similar timeout values
  3. Clear root cause: The PR description documents the flakiness occurring specifically on ubuntu-16gb runners during Turbo cache misses when parallel jobs compete for resources
  4. No side effects: No changes to CI workflows, dependencies, or infrastructure — purely test code adjustments

No Issues Found

Both specialized reviewers and the orchestrator's own analysis found no issues with this change.


✅ APPROVE

Summary: Clean, minimal fix for CI reliability. The timeout increases are justified by documented flakiness, proportional to each other, and consistent with existing patterns in the codebase. Ship it! 🚀

Reviewers (2)
Reviewer Returned Main Findings Consider While You're Here Inline Comments Pending Recs Discarded
pr-review-tests 0 0 0 0 0 0 0
pr-review-devops 0 0 0 0 0 0 0
Total 0 0 0 0 0 0 0

@github-actions github-actions bot deleted a comment from claude bot Feb 17, 2026
@nick-inkeep nick-inkeep merged commit 88e5cf3 into main Feb 17, 2026
11 checks passed
@nick-inkeep nick-inkeep deleted the fix/increase-monaco-waitfor-timeout branch February 17, 2026 21:21
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