Skip to content

fix: stabilize main CI failures - #1056

Merged
leonidaz merged 2 commits into
mainfrom
fix/main-ci-stability
Sep 11, 2026
Merged

leonidaz merged 2 commits into
mainfrom
fix/main-ci-stability

Conversation

@leonidaz

@leonidaz leonidaz commented Sep 11, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

  • fix the deterministic Three 0.186 compatibility failure by aligning the testing renderer camera option with the root's CameraProps
  • remove redundant timed module loading from the Solana identity test and give the genuinely heavy Volar type-program test a bounded 15-second budget
  • wait for real DOM selection in both Input OTP browser oracles, make the website command-palette geometry case wait for an interactive trigger, and isolate the nested Vitest mock-cleanup assertion from static-import transform timing
  • cap each React-parity CI shard at two workers so four 4-vCPU runners retain headroom for Vite, jsdom, and browser work

Why

Recent main failures split into a deterministic dependency-compatibility break and resource-sensitive test races. The newest main run failed only Three compatibility after @types/[email protected]; earlier failures repeatedly hit the same 5-second Solana/Volar ceilings, stale Input OTP selection in both the pristine and adapted browser lanes, random parity worker loss, and readiness-sensitive website/browser-tooling checks. The broad Playwright-install failure was an external Ubuntu package-mirror outage and is intentionally not encoded as a product workaround.

Validation

  • pnpm format:files:check
  • pnpm format:check (full CI)
  • pnpm typecheck (full CI)
  • pnpm test (full CI)
  • pnpm sync
  • pnpm react-parity:validate (stable 5,345 cases; canary 5,413 cases)
  • node --test scripts/ci-workflow.test.mjs (62 tests)
  • Three r156: tsgo, public type program, and 137 compatibility tests
  • Three r186: tsgo, public type program, and 137 compatibility tests
  • Input OTP parity audit/negative controls and 41 pristine/adapted Chromium cases
  • command-palette dev-SSR/hydration case (pre-fix local failure at interactive readiness; post-fix pass in 1.6s)
  • nested Vitest browser collection, 8 consecutive Chromium passes
  • Solana module re-evaluation, 3 simultaneous default-timeout passes (17–25ms test bodies)
  • Volar host-spread type program under contention (4.8s within explicit 15s budget)

pnpm typecheck:files selects the full pre-existing Volar test module and reports existing errors at lines 11/312/314/365/366; the changed test is at line 981. The package-specific Three type programs above pass, and full CI remains the authoritative aggregate gate.

Risk / follow-ups

  • Full and repeated CI runs are required to assess flake-rate improvement; this PR will remain under observation through multiple complete workflow executions.
  • The binding-audit collector marks the legacy Three status release string incomplete because it combines version and commit identity; provenance itself remains recorded in packages/three/UPSTREAM.md and is outside this CI-fix scope.

Provenance

  • An agent produced this diff (agent-authored)

Note

Low Risk
Changes are limited to test types, timeouts, worker caps, and e2e wait logic; the Three camera option is a typing alignment for the test renderer only.

Overview
Targets flaky and deterministic main CI failures with test-harness and typing fixes rather than product behavior changes.

@octanejs/three: createThreeTestRenderer’s optional camera is typed as root CameraProps (constructed THREE.PerspectiveCamera or declarative { position: [...] }), fixing the break after newer @types/three; typetests and a patch changeset document the contract.

Test stability: React-parity Vitest caps maxWorkers: 2 on CI (config + workflow assertion). Input OTP browser/pristine helpers assert real selectionStart/selectionEnd alongside mirror attributes; adapted selection tests centralize that in expectMirrorSelection. Solana subSlot test drops redundant module churn; Volar’s heavy type-program case gets a 15s budget. Vitest browser collection uses dynamic import after vi.mock so mock cleanup does not race static hoisting.

Website e2e: loadRoute accepts an optional viewport; the constrained command-palette case uses it and polls trigger clicks until the search input is interactive after hydration. Parity audit JSON hashes update from touched test files.

Reviewed by Cursor Bugbot for commit f3a230a. Bugbot is set up for automated code reviews on this repo. Configure here.


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need. Autofix is disabled.

@leonidaz
leonidaz marked this pull request as ready for review September 11, 2026 21:07
@github-actions github-actions Bot added agent-authored Diff or issue body substantially produced by an AI agent fix PR: bug fix labels Sep 11, 2026

@cursor cursor Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.

Fix All in Cursor

Bugbot Autofix prepared a fix for the issue found in the latest run.

  • ✅ Fixed: Command palette poll timeout too short
    • The command-palette expect.poll now uses PLAYWRIGHT_ACTION_TIMEOUT (20s) so hydration can attach the search-trigger handler under concurrent CI load instead of failing at Vitest's 1s default.

Create PR

Or push these changes by commenting:

@cursor push 096c174db9
Preview (096c174db9)
diff --git a/website/tests/ssr-hydration.e2e.test.ts b/website/tests/ssr-hydration.e2e.test.ts
--- a/website/tests/ssr-hydration.e2e.test.ts
+++ b/website/tests/ssr-hydration.e2e.test.ts
@@ -1013,11 +1013,14 @@
 				// SSR exposes the trigger before hydration attaches its event. Opening is
 				// idempotent, so retry the observable interaction until the dialog exists.
 				await expect
-					.poll(async () => {
-						if (await searchInput.isVisible()) return true;
-						await trigger.click();
-						return searchInput.isVisible();
-					})
+					.poll(
+						async () => {
+							if (await searchInput.isVisible()) return true;
+							await trigger.click();
+							return searchInput.isVisible();
+						},
+						{ timeout: PLAYWRIGHT_ACTION_TIMEOUT },
+					)
 					.toBe(true);
 				await searchInput.fill('tanstack');
 				const firstResult = page.locator('.search-entity').first();

You can send follow-ups to the cloud agent here.

Reviewed by Cursor Bugbot for commit 01a3fc6. Configure here.

Comment thread website/tests/ssr-hydration.e2e.test.ts Resolved
@vercel

vercel Bot commented Sep 11, 2026

Copy link
Copy Markdown

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

1 Skipped Deployment
Project Deployment Actions Updated
octane-website-mcp Skipped Skipped Sep 11, 2026 9:26pm UTC

Request Review

This branch was previously deployed

1 inactive deployment
Preview – octane-website-mcp — f3a230a9 Deployed Sep 11, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agent-authored Diff or issue body substantially produced by an AI agent fix PR: bug fix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant