Skip to content

Introduce rr-e2e record/replay package and server-side replay harness with E2E scenarios - #9

Open
jasonLaster wants to merge 1 commit into
codex/add-recorded-io-e2e-threadfrom
codex/refactor-and-enhance-test-harness-hfj8ba
Open

jasonLaster wants to merge 1 commit into
codex/add-recorded-io-e2e-threadfrom
codex/refactor-and-enhance-test-harness-hfj8ba

Conversation

@jasonLaster

Copy link
Copy Markdown
Owner

Motivation

  • Provide a deterministic record/replay framework for integration/browser E2E tests to make backend IO deterministic and reusable across scenarios.
  • Replace a monolithic in-app replay harness with a reusable package and a clearer server-side adapter to simplify fixture management and test wiring.

Description

  • Add a new package packages/rr-e2e implementing core replay primitives: types, template resolution, interaction resolver, JSON-RPC process replay, CLI-style invoker, fixture loader, and package config.
  • Add a server integration adapter under apps/server/integration/harness including harness.ts, codexProcess.ts, services.ts, types.ts, and README.md that wire rr-e2e into the app runtime (Codex manager, Git/GitHub adapters, persistence, Vite bootstrapping).
  • Replace legacy replay files by removing the old WebAppReplayHarness.ts and related fixtures/tests and introduce new scenario files thread.rr-e2e.test.ts and thread.rr-e2e.test.fixture.ts; expose createHarness from apps/server/integration/harness index.
  • Update apps/server/package.json to add @t3tools/rr-e2e as a dev dependency and switch the test:e2e script to run the new thread.rr-e2e.test.ts scenarios.

Testing

  • No automated tests were executed as part of this change.

Codex Task

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant