Skip to content

[PR Feedback] Copilot Test Infrastructure #14

Description

@tinkermonkey

Based on consolidated PR review, address the following in Copilot Test Infrastructure:

  • fake-copilot.mjs fixture entirely absent (FR-4): The spec requires src/__tests__/fixtures/fake-copilot.mjs covering five scenarios (golden-path, stall, ignore-sigterm, nonzero-exit, permission-request), consuming ACP JSON-RPC from stdin and producing ACP-compliant NDJSON on stdout. This file does not appear in the PR. CliProcess.copilot.test.ts (FR-5) injects fake-copilot.mjs into PATH in beforeAll, but the fixture it depends on is never created — making the entire offline Copilot test suite non-functional as committed.
  • Module-level copilot auth check swallows all error types as "not authenticated": At /workspace/src/__tests__/live/copilot.live.test.ts:15-23, the auth probe treats ANY error (crash, timeout, rate limit, parse error) as "not authenticated" and silently skips the entire test suite. Developers seeing "6 skipped" cannot distinguish missing copilot from broken auth, CLI crashes, or rate limits. Should log the actual error when the auth check fails.

Created by PR Review Stage - Consolidation Phase


Concurrent Fix Issues (Same Review Cycle)

The following issues are being fixed simultaneously in this review cycle. Check these issues for any files they modify before making your own changes to avoid introducing conflicts:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions