Skip to content

Fix CI compatibility after the Vitest 5 upgrade - #4906

Merged
calebporzio merged 3 commits into
mainfrom
codex/fix-alpine-main-ci
Sep 14, 2026
Merged

calebporzio merged 3 commits into
mainfrom
codex/fix-alpine-main-ci

Conversation

@calebporzio

@calebporzio calebporzio commented Sep 14, 2026

Copy link
Copy Markdown
Collaborator

Main fails during dependency installation after the Vitest 5 upgrade because Vite 8's esbuild peer conflicts with the version used by Alpine's build script. Select the supported Vite 7 line and regenerate the lockfile, preserving the existing package build tooling.

Run CI on Node 24, which satisfies Vitest 5's engine requirement and matches the release workflows, and install with npm ci. Limit Vitest discovery to tests/vitest so it does not execute the Cypress specs.

The real-browser dwell tests now scroll slightly beyond the half-visible threshold. At the exact boundary, the local browser reports 0.4999999701976776, preventing the dwell timer from starting. The tests still exercise threshold exit, re-entry, and once-only behavior using the native IntersectionObserver.

The popover focus-away test explicitly focuses the visible panel link before pressing Tab, establishing its intended precondition without relying on asynchronous autofocus. Its five-attempt retry setting is removed.

Validation: reproduced the original install failure; fresh npm ci and package builds pass; full Cypress suite passes 623 tests with 26 existing skips; Vitest passes 204 tests with one existing skip. Both GitHub Actions runs pass on d9a3a32e.

@calebporzio
calebporzio marked this pull request as ready for review September 14, 2026 17:55
@calebporzio
calebporzio merged commit e2e5412 into main Sep 14, 2026
2 checks passed
@calebporzio
calebporzio deleted the codex/fix-alpine-main-ci branch September 14, 2026 17:56
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