Skip to content

fix: CI Error Fix Retry#12

Closed
atkaksoy501 wants to merge 3 commits into
mdemirhan:mainfrom
atkaksoy501:main
Closed

fix: CI Error Fix Retry#12
atkaksoy501 wants to merge 3 commits into
mdemirhan:mainfrom
atkaksoy501:main

Conversation

@atkaksoy501
Copy link
Copy Markdown

Fix: Restore CI stability and resolve cross-platform failures

Summary

This PR fixes pre-existing CI failures across all three matrix runners (Windows, macOS, Ubuntu) and resolves type/lint drift that accumulated after recent upstream changes. CI has never passed on this repository — these fixes aim to make it green for the first time.

Commits

1. fix: restore main CI stability

Fixes type errors, lint violations, and test flakiness that prevented bun run ci from passing:

  • Replace inline providerCounts objects with the shared EMPTY_PROVIDER_COUNTS spread pattern to satisfy the ProviderCounts type after the OpenCode provider was added
  • Add satisfies StoredBookmark[] typing to queryService.test.ts bookmark fixtures
  • Introduce createSessionMessageFixture helper in appTestFixtures.ts to centralize SessionMessage construction
  • Add act() wrappers and readiness waits in App.test.tsx to eliminate CI-only timing races
  • Update copilotCliRoot path in discoverSessionFiles.test.ts

2. fix: stabilize rebased CI

Post-rebase cleanup after merging with upstream's OpenCode provider changes:

  • Apply Biome formatting fixes to upstream files (appStateStore.ts, opencode.ts, test files)
  • Fix import ordering (appTestFixtures.ts, discoverSessionFiles.test.ts)
  • Convert letconst in OpenCode adapter
  • Restore a dropped act() wrapper in App.test.tsx turn navigation test

3. fix: resolve cross-platform CI failures (Windows CRLF, test races, E2E selectors)

Fixes failures that affected all three CI runners:

Platform Issue Fix
Windows .gitattributes didn't enforce LF — Biome rejected 363 files with CRLF Added * text=auto eol=lf to .gitattributes
Ubuntu App.test.tsx pagination test timed out — waitFor default 1s too short for CI Increased waitFor timeout to 5000ms
macOS E2E: .history-focus-pane matched 3 elements (strict mode violation) Changed to section.history-focus-pane to uniquely target the message pane
macOS E2E: Search results focus asserted on unfocusable <div> Wait for results, then assert focus on the first result button
macOS E2E: .help-group-label selector doesn't exist in codebase Changed to .help-section-title (the actual class)

Testing

  • bun run ci passes locally (lint → platform-boundaries → typecheck → 982 tests → coverage)
  • All E2E test file changes validated against actual component selectors and behavior

Atakan Aksoy and others added 3 commits April 16, 2026 11:12
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…E selectors)

- Add `* text=auto eol=lf` to .gitattributes to enforce LF on Windows checkouts
- Increase waitFor timeout in pagination test for slower CI environments
- Fix Playwright strict mode: use `section.history-focus-pane` selector to
  uniquely target the message pane (avoids 3-element ambiguity)
- Fix search E2E: wait for results before asserting focus on first result button
- Fix help view E2E: use correct `.help-section-title` class (was .help-group-label)

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
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