Skip to content

Reuse canonical rebuild recovery and environment test fixtures #8353

Closed

Description

@jyaunches

Objective

Remove duplicate recovery-manifest and environment fixtures from the older rebuild harness.

Evidence

  • test/helpers/rebuild-flow-harness.ts duplicates snapshotEnv from test/helpers/rebuild-flow-test-support.ts.
  • The same harness duplicates makePreparedRecoveryManifest from src/lib/actions/sandbox/rebuild-flow-test-fixtures.ts.
  • test/helpers/rebuild-flow-test-harness.ts already consumes the canonical implementations.

Scope

  • Make the older harness import the canonical environment and recovery-manifest fixtures.
  • Delete only the duplicate implementations.
  • Do not alter fixture values, mock behavior, production source, test titles, or assertions.

Relationships

Why this is a good first issue

Both canonical owners and duplicate definitions are named, and the newer harness demonstrates the intended reuse.

Acceptance criteria

  • snapshotEnv has one shared implementation for both rebuild harnesses.
  • makePreparedRecoveryManifest has one implementation.
  • No compatibility wrapper or transitional reimplementation remains.
  • Existing consumers pass unchanged.
  • The change has a negative net LOC delta.

Validation

npx vitest run --project cli src/lib/actions/sandbox/rebuild-dcode-*.test.ts src/lib/actions/sandbox/rebuild-prepared-recovery.test.ts src/lib/actions/sandbox/rebuild-local-provider-recreate.test.ts src/lib/actions/sandbox/rebuild-hermes-post-restore.test.ts
npm run typecheck:cli

Activity

  1. added
    good first issue
    help wanted
    area: sandbox
    area: architecture
    on Aug 5, 2026
  2. added theissue type on Aug 5, 2026
  3. added a commit that references this issue on Aug 7, 2026
    c4f58c4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: architecturearea: sandboxgood first issuehelp wanted

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions