Files
SubMiner/backlog/tasks/task-242 - Fix-stats-server-Bun-fallback-in-coverage-lane.md
sudacode 3502cdc607 chore: archive completed backlog tasks and update ordinals
- Move ~35 completed tasks from backlog/tasks/ to backlog/completed/
- Add ordinal fields to remaining in-progress task files
- Mark task-255 (playlist browser modal) as Done with final notes
2026-03-31 12:38:27 -07:00

1.3 KiB

id, title, status, assignee, created_date, updated_date, labels, milestone, dependencies, references, priority, ordinal
id title status assignee created_date updated_date labels milestone dependencies references priority ordinal
TASK-242 Fix stats server Bun fallback in coverage lane Done
2026-03-29 07:31 2026-03-31 19:37
ci
bug
cleanup
PR #36
high 170500

Description

Coverage CI fails when startStatsServer reaches the Bun server seam under the maintained source lane. Add a runtime fallback that works when Bun.serve is unavailable and keep the stats-server startup path testable.

Acceptance Criteria

  • #1 bun run test:coverage:src passes in GitHub CI
  • #2 startStatsServer uses Bun.serve when present and a Node server fallback otherwise
  • #3 Regression coverage exists for the fallback startup path

Final Summary

Fixed the CI failure in the coverage lane by replacing the Bun-only stats server path with a Bun-or-node/http startup fallback and by normalizing setup window options so undefined BrowserWindow fields are omitted. Verified the exact coverage lane under Bun 1.3.5 and confirmed the GitHub Actions run for PR #36 completed successfully.